@wordpress/block-library 7.3.5 → 7.5.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 +4 -0
  2. package/build/archives/edit.js +1 -1
  3. package/build/archives/edit.js.map +1 -1
  4. package/build/audio/edit.js +4 -16
  5. package/build/audio/edit.js.map +1 -1
  6. package/build/audio/edit.native.js +1 -1
  7. package/build/audio/edit.native.js.map +1 -1
  8. package/build/button/edit.native.js +7 -3
  9. package/build/button/edit.native.js.map +1 -1
  10. package/build/categories/edit.js +8 -3
  11. package/build/categories/edit.js.map +1 -1
  12. package/build/categories/index.js +4 -0
  13. package/build/categories/index.js.map +1 -1
  14. package/build/column/index.js +10 -0
  15. package/build/column/index.js.map +1 -1
  16. package/build/comment-template/edit.js +1 -3
  17. package/build/comment-template/edit.js.map +1 -1
  18. package/build/{comments-query-loop → comments}/edit/comments-inspector-controls.js +0 -0
  19. package/{build-module/comments-query-loop → build/comments}/edit/comments-inspector-controls.js.map +1 -1
  20. package/build/{comments-query-loop → comments}/edit.js +2 -2
  21. package/build/comments/edit.js.map +1 -0
  22. package/build/{comments-query-loop → comments}/index.js +1 -1
  23. package/build/comments/index.js.map +1 -0
  24. package/build/{comments-query-loop → comments}/save.js +2 -2
  25. package/build/comments/save.js.map +1 -0
  26. package/build/cover/edit.js +4 -71
  27. package/build/cover/edit.js.map +1 -1
  28. package/build/cover/edit.native.js +36 -15
  29. package/build/cover/edit.native.js.map +1 -1
  30. package/build/cover/transforms.js +77 -6
  31. package/build/cover/transforms.js.map +1 -1
  32. package/build/cover/use-cover-is-dark.js +81 -0
  33. package/build/cover/use-cover-is-dark.js.map +1 -0
  34. package/build/cover/use-cover-is-dark.native.js +60 -0
  35. package/build/cover/use-cover-is-dark.native.js.map +1 -0
  36. package/build/embed/edit.js +12 -18
  37. package/build/embed/edit.js.map +1 -1
  38. package/build/embed/edit.native.js +1 -7
  39. package/build/embed/edit.native.js.map +1 -1
  40. package/build/embed/util.js +29 -4
  41. package/build/embed/util.js.map +1 -1
  42. package/build/file/inspector.js +2 -4
  43. package/build/file/inspector.js.map +1 -1
  44. package/build/gallery/edit.js +1 -1
  45. package/build/gallery/edit.js.map +1 -1
  46. package/build/gallery/v1/edit.js +1 -1
  47. package/build/gallery/v1/edit.js.map +1 -1
  48. package/build/group/index.js +1 -0
  49. package/build/group/index.js.map +1 -1
  50. package/build/heading/transforms.js +8 -4
  51. package/build/heading/transforms.js.map +1 -1
  52. package/build/html/edit.js +2 -2
  53. package/build/html/edit.js.map +1 -1
  54. package/build/image/edit.js +4 -6
  55. package/build/image/edit.js.map +1 -1
  56. package/build/image/edit.native.js +1 -1
  57. package/build/image/edit.native.js.map +1 -1
  58. package/build/image/image.js +1 -1
  59. package/build/image/image.js.map +1 -1
  60. package/build/index.js +4 -6
  61. package/build/index.js.map +1 -1
  62. package/build/index.native.js +14 -3
  63. package/build/index.native.js.map +1 -1
  64. package/build/latest-comments/edit.js +1 -1
  65. package/build/latest-comments/edit.js.map +1 -1
  66. package/build/latest-posts/edit.native.js +49 -0
  67. package/build/latest-posts/edit.native.js.map +1 -1
  68. package/build/loginout/edit.js +1 -1
  69. package/build/loginout/edit.js.map +1 -1
  70. package/build/media-text/edit.js +1 -2
  71. package/build/media-text/edit.js.map +1 -1
  72. package/build/media-text/edit.native.js +1 -1
  73. package/build/media-text/edit.native.js.map +1 -1
  74. package/build/navigation/edit/index.js +5 -28
  75. package/build/navigation/edit/index.js.map +1 -1
  76. package/build/navigation/edit/unsaved-inner-blocks.js +5 -4
  77. package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  78. package/build/navigation/index.js +1 -2
  79. package/build/navigation/index.js.map +1 -1
  80. package/build/navigation/view-modal.js +62 -0
  81. package/build/navigation/view-modal.js.map +1 -0
  82. package/build/navigation/view.js +1 -34
  83. package/build/navigation/view.js.map +1 -1
  84. package/build/navigation-link/edit.js +1 -1
  85. package/build/navigation-link/edit.js.map +1 -1
  86. package/build/paragraph/edit.js +10 -0
  87. package/build/paragraph/edit.js.map +1 -1
  88. package/build/paragraph/edit.native.js +6 -2
  89. package/build/paragraph/edit.native.js.map +1 -1
  90. package/build/paragraph/use-enter.js +94 -0
  91. package/build/paragraph/use-enter.js.map +1 -0
  92. package/build/post-author/edit.js +1 -1
  93. package/build/post-author/edit.js.map +1 -1
  94. package/build/post-comment/index.js +1 -1
  95. package/build/post-comments/edit.js +13 -34
  96. package/build/post-comments/edit.js.map +1 -1
  97. package/build/post-comments/index.js +1 -1
  98. package/build/post-comments-form/edit.js +37 -24
  99. package/build/post-comments-form/edit.js.map +1 -1
  100. package/build/post-comments-form/form.js +48 -0
  101. package/build/post-comments-form/form.js.map +1 -0
  102. package/build/post-excerpt/edit.js +1 -1
  103. package/build/post-excerpt/edit.js.map +1 -1
  104. package/build/post-terms/edit.js +25 -3
  105. package/build/post-terms/edit.js.map +1 -1
  106. package/build/post-terms/index.js +8 -0
  107. package/build/post-terms/index.js.map +1 -1
  108. package/build/quote/index.js +7 -0
  109. package/build/quote/index.js.map +1 -1
  110. package/build/quote/v2/edit.js +11 -3
  111. package/build/quote/v2/edit.js.map +1 -1
  112. package/build/rss/edit.js +1 -1
  113. package/build/rss/edit.js.map +1 -1
  114. package/build/search/edit.js +11 -9
  115. package/build/search/edit.js.map +1 -1
  116. package/build/separator/index.js +3 -0
  117. package/build/separator/index.js.map +1 -1
  118. package/build/spacer/constants.js +9 -0
  119. package/build/spacer/constants.js.map +1 -0
  120. package/build/spacer/controls.js +3 -3
  121. package/build/spacer/controls.js.map +1 -1
  122. package/build/spacer/controls.native.js +2 -2
  123. package/build/spacer/controls.native.js.map +1 -1
  124. package/build/spacer/edit.js +5 -6
  125. package/build/spacer/edit.js.map +1 -1
  126. package/build/table/edit.js +8 -2
  127. package/build/table/edit.js.map +1 -1
  128. package/build/tag-cloud/edit.js +1 -1
  129. package/build/tag-cloud/edit.js.map +1 -1
  130. package/build/video/edit.js +4 -8
  131. package/build/video/edit.js.map +1 -1
  132. package/build/video/edit.native.js +1 -1
  133. package/build/video/edit.native.js.map +1 -1
  134. package/build-module/archives/edit.js +1 -1
  135. package/build-module/archives/edit.js.map +1 -1
  136. package/build-module/audio/edit.js +4 -16
  137. package/build-module/audio/edit.js.map +1 -1
  138. package/build-module/audio/edit.native.js +1 -1
  139. package/build-module/audio/edit.native.js.map +1 -1
  140. package/build-module/button/edit.native.js +7 -3
  141. package/build-module/button/edit.native.js.map +1 -1
  142. package/build-module/categories/edit.js +8 -3
  143. package/build-module/categories/edit.js.map +1 -1
  144. package/build-module/categories/index.js +4 -0
  145. package/build-module/categories/index.js.map +1 -1
  146. package/build-module/column/index.js +10 -0
  147. package/build-module/column/index.js.map +1 -1
  148. package/build-module/comment-template/edit.js +1 -3
  149. package/build-module/comment-template/edit.js.map +1 -1
  150. package/build-module/{comments-query-loop → comments}/edit/comments-inspector-controls.js +0 -0
  151. package/build-module/comments/edit/comments-inspector-controls.js.map +1 -0
  152. package/build-module/{comments-query-loop → comments}/edit.js +1 -1
  153. package/build-module/comments/edit.js.map +1 -0
  154. package/build-module/{comments-query-loop → comments}/index.js +1 -1
  155. package/build-module/comments/index.js.map +1 -0
  156. package/build-module/{comments-query-loop → comments}/save.js +1 -1
  157. package/build-module/comments/save.js.map +1 -0
  158. package/build-module/cover/edit.js +4 -71
  159. package/build-module/cover/edit.js.map +1 -1
  160. package/build-module/cover/edit.native.js +35 -16
  161. package/build-module/cover/edit.native.js.map +1 -1
  162. package/build-module/cover/transforms.js +74 -6
  163. package/build-module/cover/transforms.js.map +1 -1
  164. package/build-module/cover/use-cover-is-dark.js +70 -0
  165. package/build-module/cover/use-cover-is-dark.js.map +1 -0
  166. package/build-module/cover/use-cover-is-dark.native.js +51 -0
  167. package/build-module/cover/use-cover-is-dark.native.js.map +1 -0
  168. package/build-module/embed/edit.js +13 -19
  169. package/build-module/embed/edit.js.map +1 -1
  170. package/build-module/embed/edit.native.js +2 -8
  171. package/build-module/embed/edit.native.js.map +1 -1
  172. package/build-module/embed/util.js +25 -3
  173. package/build-module/embed/util.js.map +1 -1
  174. package/build-module/file/inspector.js +2 -4
  175. package/build-module/file/inspector.js.map +1 -1
  176. package/build-module/gallery/edit.js +1 -1
  177. package/build-module/gallery/edit.js.map +1 -1
  178. package/build-module/gallery/v1/edit.js +1 -1
  179. package/build-module/gallery/v1/edit.js.map +1 -1
  180. package/build-module/group/index.js +1 -0
  181. package/build-module/group/index.js.map +1 -1
  182. package/build-module/heading/transforms.js +8 -4
  183. package/build-module/heading/transforms.js.map +1 -1
  184. package/build-module/html/edit.js +2 -2
  185. package/build-module/html/edit.js.map +1 -1
  186. package/build-module/image/edit.js +4 -6
  187. package/build-module/image/edit.js.map +1 -1
  188. package/build-module/image/edit.native.js +1 -1
  189. package/build-module/image/edit.native.js.map +1 -1
  190. package/build-module/image/image.js +1 -1
  191. package/build-module/image/image.js.map +1 -1
  192. package/build-module/index.js +3 -4
  193. package/build-module/index.js.map +1 -1
  194. package/build-module/index.native.js +14 -3
  195. package/build-module/index.native.js.map +1 -1
  196. package/build-module/latest-comments/edit.js +1 -1
  197. package/build-module/latest-comments/edit.js.map +1 -1
  198. package/build-module/latest-posts/edit.native.js +51 -2
  199. package/build-module/latest-posts/edit.native.js.map +1 -1
  200. package/build-module/loginout/edit.js +1 -1
  201. package/build-module/loginout/edit.js.map +1 -1
  202. package/build-module/media-text/edit.js +1 -2
  203. package/build-module/media-text/edit.js.map +1 -1
  204. package/build-module/media-text/edit.native.js +1 -1
  205. package/build-module/media-text/edit.native.js.map +1 -1
  206. package/build-module/navigation/edit/index.js +6 -28
  207. package/build-module/navigation/edit/index.js.map +1 -1
  208. package/build-module/navigation/edit/unsaved-inner-blocks.js +5 -4
  209. package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  210. package/build-module/navigation/index.js +1 -2
  211. package/build-module/navigation/index.js.map +1 -1
  212. package/build-module/navigation/view-modal.js +56 -0
  213. package/build-module/navigation/view-modal.js.map +1 -0
  214. package/build-module/navigation/view.js +1 -30
  215. package/build-module/navigation/view.js.map +1 -1
  216. package/build-module/navigation-link/edit.js +1 -1
  217. package/build-module/navigation-link/edit.js.map +1 -1
  218. package/build-module/paragraph/edit.js +9 -0
  219. package/build-module/paragraph/edit.js.map +1 -1
  220. package/build-module/paragraph/edit.native.js +6 -2
  221. package/build-module/paragraph/edit.native.js.map +1 -1
  222. package/build-module/paragraph/use-enter.js +81 -0
  223. package/build-module/paragraph/use-enter.js.map +1 -0
  224. package/build-module/post-author/edit.js +1 -1
  225. package/build-module/post-author/edit.js.map +1 -1
  226. package/build-module/post-comment/index.js +1 -1
  227. package/build-module/post-comments/edit.js +13 -35
  228. package/build-module/post-comments/edit.js.map +1 -1
  229. package/build-module/post-comments/index.js +1 -1
  230. package/build-module/post-comments-form/edit.js +38 -26
  231. package/build-module/post-comments-form/edit.js.map +1 -1
  232. package/build-module/post-comments-form/form.js +39 -0
  233. package/build-module/post-comments-form/form.js.map +1 -0
  234. package/build-module/post-excerpt/edit.js +1 -1
  235. package/build-module/post-excerpt/edit.js.map +1 -1
  236. package/build-module/post-terms/edit.js +26 -4
  237. package/build-module/post-terms/edit.js.map +1 -1
  238. package/build-module/post-terms/index.js +8 -0
  239. package/build-module/post-terms/index.js.map +1 -1
  240. package/build-module/quote/index.js +2 -1
  241. package/build-module/quote/index.js.map +1 -1
  242. package/build-module/quote/v2/edit.js +10 -3
  243. package/build-module/quote/v2/edit.js.map +1 -1
  244. package/build-module/rss/edit.js +1 -1
  245. package/build-module/rss/edit.js.map +1 -1
  246. package/build-module/search/edit.js +11 -9
  247. package/build-module/search/edit.js.map +1 -1
  248. package/build-module/separator/index.js +3 -0
  249. package/build-module/separator/index.js.map +1 -1
  250. package/build-module/spacer/constants.js +2 -0
  251. package/build-module/spacer/constants.js.map +1 -0
  252. package/build-module/spacer/controls.js +2 -2
  253. package/build-module/spacer/controls.js.map +1 -1
  254. package/build-module/spacer/controls.native.js +1 -1
  255. package/build-module/spacer/controls.native.js.map +1 -1
  256. package/build-module/spacer/edit.js +1 -1
  257. package/build-module/spacer/edit.js.map +1 -1
  258. package/build-module/table/edit.js +9 -3
  259. package/build-module/table/edit.js.map +1 -1
  260. package/build-module/tag-cloud/edit.js +1 -1
  261. package/build-module/tag-cloud/edit.js.map +1 -1
  262. package/build-module/video/edit.js +4 -8
  263. package/build-module/video/edit.js.map +1 -1
  264. package/build-module/video/edit.native.js +1 -1
  265. package/build-module/video/edit.native.js.map +1 -1
  266. package/build-style/{comments-query-loop → comments}/editor-rtl.css +0 -0
  267. package/build-style/{comments-query-loop → comments}/editor.css +0 -0
  268. package/build-style/common-rtl.css +32 -0
  269. package/build-style/common.css +32 -0
  270. package/build-style/cover/style-rtl.css +0 -4
  271. package/build-style/cover/style.css +0 -4
  272. package/build-style/editor-rtl.css +12 -4
  273. package/build-style/editor.css +12 -4
  274. package/build-style/navigation/style-rtl.css +3 -0
  275. package/build-style/navigation/style.css +3 -0
  276. package/build-style/style-rtl.css +73 -4
  277. package/build-style/style.css +73 -4
  278. package/build-style/table/editor-rtl.css +8 -0
  279. package/build-style/table/editor.css +8 -0
  280. package/build-style/table/style-rtl.css +38 -0
  281. package/build-style/table/style.css +38 -0
  282. package/package.json +28 -28
  283. package/src/archives/edit.js +1 -1
  284. package/src/audio/edit.js +3 -8
  285. package/src/audio/edit.native.js +1 -1
  286. package/src/button/edit.native.js +6 -3
  287. package/src/categories/block.json +4 -0
  288. package/src/categories/edit.js +8 -2
  289. package/src/categories/index.php +1 -0
  290. package/src/column/block.json +10 -0
  291. package/src/comment-template/edit.js +1 -5
  292. package/src/comment-template/index.php +4 -0
  293. package/src/{comments-query-loop → comments}/block.json +1 -1
  294. package/src/{comments-query-loop → comments}/edit/comments-inspector-controls.js +0 -0
  295. package/src/{comments-query-loop → comments}/edit.js +1 -1
  296. package/src/{comments-query-loop → comments}/editor.scss +0 -0
  297. package/src/{comments-query-loop → comments}/index.js +0 -0
  298. package/src/{comments-query-loop → comments}/save.js +1 -3
  299. package/src/comments-pagination/index.php +4 -0
  300. package/src/comments-title/index.php +4 -0
  301. package/src/common.scss +24 -1
  302. package/src/cover/edit.js +2 -67
  303. package/src/cover/edit.native.js +40 -13
  304. package/src/cover/style.native.scss +4 -0
  305. package/src/cover/style.scss +0 -4
  306. package/src/cover/test/__snapshots__/edit.native.js.snap +6 -6
  307. package/src/cover/test/transforms.js +301 -0
  308. package/src/cover/transforms.js +112 -7
  309. package/src/cover/use-cover-is-dark.js +71 -0
  310. package/src/cover/use-cover-is-dark.native.js +51 -0
  311. package/src/editor.scss +1 -1
  312. package/src/embed/edit.js +19 -24
  313. package/src/embed/edit.native.js +9 -14
  314. package/src/embed/util.js +34 -2
  315. package/src/file/inspector.js +1 -3
  316. package/src/gallery/edit.js +1 -1
  317. package/src/gallery/v1/edit.js +1 -1
  318. package/src/group/block.json +1 -0
  319. package/src/heading/transforms.js +4 -3
  320. package/src/html/edit.js +2 -2
  321. package/src/image/edit.js +2 -4
  322. package/src/image/edit.native.js +1 -1
  323. package/src/image/image.js +1 -1
  324. package/src/index.js +2 -5
  325. package/src/index.native.js +12 -2
  326. package/src/latest-comments/edit.js +1 -1
  327. package/src/latest-posts/edit.native.js +56 -1
  328. package/src/loginout/edit.js +1 -1
  329. package/src/media-text/edit.js +1 -2
  330. package/src/media-text/edit.native.js +1 -1
  331. package/src/navigation/block.json +1 -2
  332. package/src/navigation/edit/index.js +6 -36
  333. package/src/navigation/edit/unsaved-inner-blocks.js +5 -4
  334. package/src/navigation/index.php +5 -0
  335. package/src/navigation/style.scss +3 -0
  336. package/src/navigation/view-modal.js +68 -0
  337. package/src/navigation/view.js +0 -35
  338. package/src/navigation-link/edit.js +1 -1
  339. package/src/paragraph/edit.js +6 -0
  340. package/src/paragraph/edit.native.js +13 -1
  341. package/src/paragraph/use-enter.js +103 -0
  342. package/src/post-author/edit.js +1 -1
  343. package/src/post-author/index.php +1 -1
  344. package/src/post-comment/block.json +1 -1
  345. package/src/post-comments/block.json +1 -1
  346. package/src/post-comments/edit.js +13 -43
  347. package/src/post-comments/index.php +2 -0
  348. package/src/post-comments-form/edit.js +50 -58
  349. package/src/post-comments-form/form.js +43 -0
  350. package/src/post-comments-form/index.php +5 -1
  351. package/src/post-excerpt/edit.js +1 -1
  352. package/src/post-terms/block.json +8 -0
  353. package/src/post-terms/edit.js +28 -1
  354. package/src/post-terms/index.php +12 -2
  355. package/src/quote/block.json +1 -0
  356. package/src/quote/index.js +1 -1
  357. package/src/quote/v2/edit.js +3 -0
  358. package/src/rss/edit.js +1 -1
  359. package/src/search/edit.js +13 -7
  360. package/src/search/index.php +84 -33
  361. package/src/separator/block.json +3 -0
  362. package/src/spacer/constants.js +1 -0
  363. package/src/spacer/controls.js +2 -2
  364. package/src/spacer/controls.native.js +1 -1
  365. package/src/spacer/edit.js +1 -2
  366. package/src/table/edit.js +11 -2
  367. package/src/table/editor.scss +13 -0
  368. package/src/table/style.scss +52 -0
  369. package/src/tag-cloud/edit.js +1 -1
  370. package/src/video/edit.js +4 -5
  371. package/src/video/edit.native.js +1 -1
  372. package/build/comments-query-loop/edit/comments-inspector-controls.js.map +0 -1
  373. package/build/comments-query-loop/edit.js.map +0 -1
  374. package/build/comments-query-loop/index.js.map +0 -1
  375. package/build/comments-query-loop/save.js.map +0 -1
  376. package/build/navigation-area/edit.js +0 -110
  377. package/build/navigation-area/edit.js.map +0 -1
  378. package/build/navigation-area/index.js +0 -62
  379. package/build/navigation-area/index.js.map +0 -1
  380. package/build/navigation-area/inner-blocks.js +0 -34
  381. package/build/navigation-area/inner-blocks.js.map +0 -1
  382. package/build/navigation-area/save.js +0 -18
  383. package/build/navigation-area/save.js.map +0 -1
  384. package/build-module/comments-query-loop/edit.js.map +0 -1
  385. package/build-module/comments-query-loop/index.js.map +0 -1
  386. package/build-module/comments-query-loop/save.js.map +0 -1
  387. package/build-module/navigation-area/edit.js +0 -94
  388. package/build-module/navigation-area/edit.js.map +0 -1
  389. package/build-module/navigation-area/index.js +0 -48
  390. package/build-module/navigation-area/index.js.map +0 -1
  391. package/build-module/navigation-area/inner-blocks.js +0 -26
  392. package/build-module/navigation-area/inner-blocks.js.map +0 -1
  393. package/build-module/navigation-area/save.js +0 -10
  394. package/build-module/navigation-area/save.js.map +0 -1
  395. package/src/navigation-area/block.json +0 -23
  396. package/src/navigation-area/edit.js +0 -111
  397. package/src/navigation-area/index.js +0 -26
  398. package/src/navigation-area/index.php +0 -22
  399. package/src/navigation-area/inner-blocks.js +0 -24
  400. package/src/navigation-area/save.js +0 -8
@@ -241,6 +241,10 @@ html :where(.wp-block-column) {
241
241
  margin-bottom: 0;
242
242
  }
243
243
 
244
+ .block-library-comments-toolbar__popover .components-popover__content {
245
+ min-width: 230px;
246
+ }
247
+
244
248
  .wp-block-comment-author-avatar__placeholder {
245
249
  border: currentColor 1px dashed;
246
250
  width: 100%;
@@ -249,10 +253,6 @@ html :where(.wp-block-column) {
249
253
  stroke-dasharray: 3;
250
254
  }
251
255
 
252
- .block-library-comments-toolbar__popover .components-popover__content {
253
- min-width: 230px;
254
- }
255
-
256
256
  .wp-block[data-align=center] > .wp-block-comments-pagination {
257
257
  justify-content: center;
258
258
  }
@@ -2355,6 +2355,14 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2355
2355
  .is-dark-theme .wp-block-table figcaption {
2356
2356
  color: rgba(255, 255, 255, 0.65);
2357
2357
  }
2358
+ .wp-block-table table.has-individual-borders > *,
2359
+ .wp-block-table table.has-individual-borders tr,
2360
+ .wp-block-table table.has-individual-borders th,
2361
+ .wp-block-table table.has-individual-borders td {
2362
+ border-width: 1px;
2363
+ border-style: solid;
2364
+ border-color: currentColor;
2365
+ }
2358
2366
 
2359
2367
  .blocks-table__placeholder-form.blocks-table__placeholder-form {
2360
2368
  display: flex;
@@ -271,6 +271,9 @@ button.wp-block-navigation-item__content {
271
271
  font-size: inherit;
272
272
  font-family: inherit;
273
273
  line-height: inherit;
274
+ font-style: inherit;
275
+ font-weight: inherit;
276
+ text-transform: inherit;
274
277
  text-align: right;
275
278
  }
276
279
 
@@ -271,6 +271,9 @@ button.wp-block-navigation-item__content {
271
271
  font-size: inherit;
272
272
  font-family: inherit;
273
273
  line-height: inherit;
274
+ font-style: inherit;
275
+ font-weight: inherit;
276
+ text-transform: inherit;
274
277
  text-align: left;
275
278
  }
276
279
 
@@ -609,10 +609,6 @@
609
609
  .wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100 {
610
610
  opacity: 1;
611
611
  }
612
- .wp-block-cover-image .block-library-cover__padding-visualizer,
613
- .wp-block-cover .block-library-cover__padding-visualizer {
614
- z-index: 2;
615
- }
616
612
  .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
617
613
  .wp-block-cover.alignleft,
618
614
  .wp-block-cover.alignright {
@@ -1753,6 +1749,9 @@ button.wp-block-navigation-item__content {
1753
1749
  font-size: inherit;
1754
1750
  font-family: inherit;
1755
1751
  line-height: inherit;
1752
+ font-style: inherit;
1753
+ font-weight: inherit;
1754
+ text-transform: inherit;
1756
1755
  text-align: right;
1757
1756
  }
1758
1757
 
@@ -3091,6 +3090,44 @@ ul.wp-block-rss.is-grid li {
3091
3090
  .wp-block-table .has-border-color td {
3092
3091
  border-color: inherit;
3093
3092
  }
3093
+ .wp-block-table table[style*=border-top-color] > *,
3094
+ .wp-block-table table[style*=border-top-color] tr:first-child {
3095
+ border-top-color: inherit;
3096
+ }
3097
+ .wp-block-table table[style*=border-top-color] > * th,
3098
+ .wp-block-table table[style*=border-top-color] > * td,
3099
+ .wp-block-table table[style*=border-top-color] tr:first-child th,
3100
+ .wp-block-table table[style*=border-top-color] tr:first-child td {
3101
+ border-top-color: inherit;
3102
+ }
3103
+ .wp-block-table table[style*=border-top-color] tr:not(:first-child) {
3104
+ border-top-color: currentColor;
3105
+ }
3106
+ .wp-block-table table[style*=border-right-color] > *,
3107
+ .wp-block-table table[style*=border-right-color] tr,
3108
+ .wp-block-table table[style*=border-right-color] th,
3109
+ .wp-block-table table[style*=border-right-color] td:last-child {
3110
+ border-left-color: inherit;
3111
+ }
3112
+ .wp-block-table table[style*=border-bottom-color] > *,
3113
+ .wp-block-table table[style*=border-bottom-color] tr:last-child {
3114
+ border-bottom-color: inherit;
3115
+ }
3116
+ .wp-block-table table[style*=border-bottom-color] > * th,
3117
+ .wp-block-table table[style*=border-bottom-color] > * td,
3118
+ .wp-block-table table[style*=border-bottom-color] tr:last-child th,
3119
+ .wp-block-table table[style*=border-bottom-color] tr:last-child td {
3120
+ border-bottom-color: inherit;
3121
+ }
3122
+ .wp-block-table table[style*=border-bottom-color] tr:not(:last-child) {
3123
+ border-bottom-color: currentColor;
3124
+ }
3125
+ .wp-block-table table[style*=border-left-color] > *,
3126
+ .wp-block-table table[style*=border-left-color] tr,
3127
+ .wp-block-table table[style*=border-left-color] th,
3128
+ .wp-block-table table[style*=border-left-color] td:first-child {
3129
+ border-right-color: inherit;
3130
+ }
3094
3131
  .wp-block-table table[style*=border-style] > *,
3095
3132
  .wp-block-table table[style*=border-style] tr,
3096
3133
  .wp-block-table table[style*=border-style] th,
@@ -3300,10 +3337,42 @@ html :where(.has-border-color) {
3300
3337
  border-style: solid;
3301
3338
  }
3302
3339
 
3340
+ html :where([style*="border-top-color"]) {
3341
+ border-top-style: solid;
3342
+ }
3343
+
3344
+ html :where([style*="border-right-color"]) {
3345
+ border-left-style: solid;
3346
+ }
3347
+
3348
+ html :where([style*="border-bottom-color"]) {
3349
+ border-bottom-style: solid;
3350
+ }
3351
+
3352
+ html :where([style*="border-left-color"]) {
3353
+ border-right-style: solid;
3354
+ }
3355
+
3303
3356
  html :where([style*="border-width"]) {
3304
3357
  border-style: solid;
3305
3358
  }
3306
3359
 
3360
+ html :where([style*="border-top-width"]) {
3361
+ border-top-style: solid;
3362
+ }
3363
+
3364
+ html :where([style*="border-right-width"]) {
3365
+ border-left-style: solid;
3366
+ }
3367
+
3368
+ html :where([style*="border-bottom-width"]) {
3369
+ border-bottom-style: solid;
3370
+ }
3371
+
3372
+ html :where([style*="border-left-width"]) {
3373
+ border-right-style: solid;
3374
+ }
3375
+
3307
3376
  /**
3308
3377
  * Provide baseline responsiveness for images.
3309
3378
  */
@@ -614,10 +614,6 @@
614
614
  .wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100 {
615
615
  opacity: 1;
616
616
  }
617
- .wp-block-cover-image .block-library-cover__padding-visualizer,
618
- .wp-block-cover .block-library-cover__padding-visualizer {
619
- z-index: 2;
620
- }
621
617
  .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
622
618
  .wp-block-cover.alignleft,
623
619
  .wp-block-cover.alignright {
@@ -1779,6 +1775,9 @@ button.wp-block-navigation-item__content {
1779
1775
  font-size: inherit;
1780
1776
  font-family: inherit;
1781
1777
  line-height: inherit;
1778
+ font-style: inherit;
1779
+ font-weight: inherit;
1780
+ text-transform: inherit;
1782
1781
  text-align: left;
1783
1782
  }
1784
1783
 
@@ -3122,6 +3121,44 @@ ul.wp-block-rss.is-grid li {
3122
3121
  .wp-block-table .has-border-color td {
3123
3122
  border-color: inherit;
3124
3123
  }
3124
+ .wp-block-table table[style*=border-top-color] > *,
3125
+ .wp-block-table table[style*=border-top-color] tr:first-child {
3126
+ border-top-color: inherit;
3127
+ }
3128
+ .wp-block-table table[style*=border-top-color] > * th,
3129
+ .wp-block-table table[style*=border-top-color] > * td,
3130
+ .wp-block-table table[style*=border-top-color] tr:first-child th,
3131
+ .wp-block-table table[style*=border-top-color] tr:first-child td {
3132
+ border-top-color: inherit;
3133
+ }
3134
+ .wp-block-table table[style*=border-top-color] tr:not(:first-child) {
3135
+ border-top-color: currentColor;
3136
+ }
3137
+ .wp-block-table table[style*=border-right-color] > *,
3138
+ .wp-block-table table[style*=border-right-color] tr,
3139
+ .wp-block-table table[style*=border-right-color] th,
3140
+ .wp-block-table table[style*=border-right-color] td:last-child {
3141
+ border-right-color: inherit;
3142
+ }
3143
+ .wp-block-table table[style*=border-bottom-color] > *,
3144
+ .wp-block-table table[style*=border-bottom-color] tr:last-child {
3145
+ border-bottom-color: inherit;
3146
+ }
3147
+ .wp-block-table table[style*=border-bottom-color] > * th,
3148
+ .wp-block-table table[style*=border-bottom-color] > * td,
3149
+ .wp-block-table table[style*=border-bottom-color] tr:last-child th,
3150
+ .wp-block-table table[style*=border-bottom-color] tr:last-child td {
3151
+ border-bottom-color: inherit;
3152
+ }
3153
+ .wp-block-table table[style*=border-bottom-color] tr:not(:last-child) {
3154
+ border-bottom-color: currentColor;
3155
+ }
3156
+ .wp-block-table table[style*=border-left-color] > *,
3157
+ .wp-block-table table[style*=border-left-color] tr,
3158
+ .wp-block-table table[style*=border-left-color] th,
3159
+ .wp-block-table table[style*=border-left-color] td:first-child {
3160
+ border-left-color: inherit;
3161
+ }
3125
3162
  .wp-block-table table[style*=border-style] > *,
3126
3163
  .wp-block-table table[style*=border-style] tr,
3127
3164
  .wp-block-table table[style*=border-style] th,
@@ -3333,10 +3370,42 @@ html :where(.has-border-color) {
3333
3370
  border-style: solid;
3334
3371
  }
3335
3372
 
3373
+ html :where([style*="border-top-color"]) {
3374
+ border-top-style: solid;
3375
+ }
3376
+
3377
+ html :where([style*="border-right-color"]) {
3378
+ border-right-style: solid;
3379
+ }
3380
+
3381
+ html :where([style*="border-bottom-color"]) {
3382
+ border-bottom-style: solid;
3383
+ }
3384
+
3385
+ html :where([style*="border-left-color"]) {
3386
+ border-left-style: solid;
3387
+ }
3388
+
3336
3389
  html :where([style*="border-width"]) {
3337
3390
  border-style: solid;
3338
3391
  }
3339
3392
 
3393
+ html :where([style*="border-top-width"]) {
3394
+ border-top-style: solid;
3395
+ }
3396
+
3397
+ html :where([style*="border-right-width"]) {
3398
+ border-right-style: solid;
3399
+ }
3400
+
3401
+ html :where([style*="border-bottom-width"]) {
3402
+ border-bottom-style: solid;
3403
+ }
3404
+
3405
+ html :where([style*="border-left-width"]) {
3406
+ border-left-style: solid;
3407
+ }
3408
+
3340
3409
  /**
3341
3410
  * Provide baseline responsiveness for images.
3342
3411
  */
@@ -113,6 +113,14 @@
113
113
  .is-dark-theme .wp-block-table figcaption {
114
114
  color: rgba(255, 255, 255, 0.65);
115
115
  }
116
+ .wp-block-table table.has-individual-borders > *,
117
+ .wp-block-table table.has-individual-borders tr,
118
+ .wp-block-table table.has-individual-borders th,
119
+ .wp-block-table table.has-individual-borders td {
120
+ border-width: 1px;
121
+ border-style: solid;
122
+ border-color: currentColor;
123
+ }
116
124
 
117
125
  .blocks-table__placeholder-form.blocks-table__placeholder-form {
118
126
  display: flex;
@@ -113,6 +113,14 @@
113
113
  .is-dark-theme .wp-block-table figcaption {
114
114
  color: rgba(255, 255, 255, 0.65);
115
115
  }
116
+ .wp-block-table table.has-individual-borders > *,
117
+ .wp-block-table table.has-individual-borders tr,
118
+ .wp-block-table table.has-individual-borders th,
119
+ .wp-block-table table.has-individual-borders td {
120
+ border-width: 1px;
121
+ border-style: solid;
122
+ border-color: currentColor;
123
+ }
116
124
 
117
125
  .blocks-table__placeholder-form.blocks-table__placeholder-form {
118
126
  display: flex;
@@ -143,6 +143,44 @@
143
143
  .wp-block-table .has-border-color td {
144
144
  border-color: inherit;
145
145
  }
146
+ .wp-block-table table[style*=border-top-color] > *,
147
+ .wp-block-table table[style*=border-top-color] tr:first-child {
148
+ border-top-color: inherit;
149
+ }
150
+ .wp-block-table table[style*=border-top-color] > * th,
151
+ .wp-block-table table[style*=border-top-color] > * td,
152
+ .wp-block-table table[style*=border-top-color] tr:first-child th,
153
+ .wp-block-table table[style*=border-top-color] tr:first-child td {
154
+ border-top-color: inherit;
155
+ }
156
+ .wp-block-table table[style*=border-top-color] tr:not(:first-child) {
157
+ border-top-color: currentColor;
158
+ }
159
+ .wp-block-table table[style*=border-right-color] > *,
160
+ .wp-block-table table[style*=border-right-color] tr,
161
+ .wp-block-table table[style*=border-right-color] th,
162
+ .wp-block-table table[style*=border-right-color] td:last-child {
163
+ border-left-color: inherit;
164
+ }
165
+ .wp-block-table table[style*=border-bottom-color] > *,
166
+ .wp-block-table table[style*=border-bottom-color] tr:last-child {
167
+ border-bottom-color: inherit;
168
+ }
169
+ .wp-block-table table[style*=border-bottom-color] > * th,
170
+ .wp-block-table table[style*=border-bottom-color] > * td,
171
+ .wp-block-table table[style*=border-bottom-color] tr:last-child th,
172
+ .wp-block-table table[style*=border-bottom-color] tr:last-child td {
173
+ border-bottom-color: inherit;
174
+ }
175
+ .wp-block-table table[style*=border-bottom-color] tr:not(:last-child) {
176
+ border-bottom-color: currentColor;
177
+ }
178
+ .wp-block-table table[style*=border-left-color] > *,
179
+ .wp-block-table table[style*=border-left-color] tr,
180
+ .wp-block-table table[style*=border-left-color] th,
181
+ .wp-block-table table[style*=border-left-color] td:first-child {
182
+ border-right-color: inherit;
183
+ }
146
184
  .wp-block-table table[style*=border-style] > *,
147
185
  .wp-block-table table[style*=border-style] tr,
148
186
  .wp-block-table table[style*=border-style] th,
@@ -143,6 +143,44 @@
143
143
  .wp-block-table .has-border-color td {
144
144
  border-color: inherit;
145
145
  }
146
+ .wp-block-table table[style*=border-top-color] > *,
147
+ .wp-block-table table[style*=border-top-color] tr:first-child {
148
+ border-top-color: inherit;
149
+ }
150
+ .wp-block-table table[style*=border-top-color] > * th,
151
+ .wp-block-table table[style*=border-top-color] > * td,
152
+ .wp-block-table table[style*=border-top-color] tr:first-child th,
153
+ .wp-block-table table[style*=border-top-color] tr:first-child td {
154
+ border-top-color: inherit;
155
+ }
156
+ .wp-block-table table[style*=border-top-color] tr:not(:first-child) {
157
+ border-top-color: currentColor;
158
+ }
159
+ .wp-block-table table[style*=border-right-color] > *,
160
+ .wp-block-table table[style*=border-right-color] tr,
161
+ .wp-block-table table[style*=border-right-color] th,
162
+ .wp-block-table table[style*=border-right-color] td:last-child {
163
+ border-right-color: inherit;
164
+ }
165
+ .wp-block-table table[style*=border-bottom-color] > *,
166
+ .wp-block-table table[style*=border-bottom-color] tr:last-child {
167
+ border-bottom-color: inherit;
168
+ }
169
+ .wp-block-table table[style*=border-bottom-color] > * th,
170
+ .wp-block-table table[style*=border-bottom-color] > * td,
171
+ .wp-block-table table[style*=border-bottom-color] tr:last-child th,
172
+ .wp-block-table table[style*=border-bottom-color] tr:last-child td {
173
+ border-bottom-color: inherit;
174
+ }
175
+ .wp-block-table table[style*=border-bottom-color] tr:not(:last-child) {
176
+ border-bottom-color: currentColor;
177
+ }
178
+ .wp-block-table table[style*=border-left-color] > *,
179
+ .wp-block-table table[style*=border-left-color] tr,
180
+ .wp-block-table table[style*=border-left-color] th,
181
+ .wp-block-table table[style*=border-left-color] td:first-child {
182
+ border-left-color: inherit;
183
+ }
146
184
  .wp-block-table table[style*=border-style] > *,
147
185
  .wp-block-table table[style*=border-style] tr,
148
186
  .wp-block-table table[style*=border-style] th,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "7.3.5",
3
+ "version": "7.5.0",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -33,32 +33,32 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@babel/runtime": "^7.16.0",
36
- "@wordpress/a11y": "^3.6.1",
37
- "@wordpress/api-fetch": "^6.3.1",
38
- "@wordpress/autop": "^3.6.1",
39
- "@wordpress/blob": "^3.6.1",
40
- "@wordpress/block-editor": "^8.5.4",
41
- "@wordpress/blocks": "^11.5.3",
42
- "@wordpress/components": "^19.8.3",
43
- "@wordpress/compose": "^5.4.1",
44
- "@wordpress/core-data": "^4.4.4",
45
- "@wordpress/data": "^6.6.1",
46
- "@wordpress/date": "^4.6.1",
47
- "@wordpress/deprecated": "^3.6.1",
48
- "@wordpress/dom": "^3.6.1",
49
- "@wordpress/element": "^4.4.1",
50
- "@wordpress/hooks": "^3.6.1",
51
- "@wordpress/html-entities": "^3.6.1",
52
- "@wordpress/i18n": "^4.6.1",
53
- "@wordpress/icons": "^8.2.2",
54
- "@wordpress/keycodes": "^3.6.1",
55
- "@wordpress/notices": "^3.6.1",
56
- "@wordpress/primitives": "^3.4.1",
57
- "@wordpress/reusable-blocks": "^3.4.4",
58
- "@wordpress/rich-text": "^5.4.2",
59
- "@wordpress/server-side-render": "^3.4.4",
60
- "@wordpress/url": "^3.7.1",
61
- "@wordpress/viewport": "^4.4.1",
36
+ "@wordpress/a11y": "^3.8.0",
37
+ "@wordpress/api-fetch": "^6.5.0",
38
+ "@wordpress/autop": "^3.8.0",
39
+ "@wordpress/blob": "^3.8.0",
40
+ "@wordpress/block-editor": "^9.0.0",
41
+ "@wordpress/blocks": "^11.7.0",
42
+ "@wordpress/components": "^19.10.0",
43
+ "@wordpress/compose": "^5.6.0",
44
+ "@wordpress/core-data": "^4.6.0",
45
+ "@wordpress/data": "^6.8.0",
46
+ "@wordpress/date": "^4.8.0",
47
+ "@wordpress/deprecated": "^3.8.0",
48
+ "@wordpress/dom": "^3.8.0",
49
+ "@wordpress/element": "^4.6.0",
50
+ "@wordpress/hooks": "^3.8.0",
51
+ "@wordpress/html-entities": "^3.8.0",
52
+ "@wordpress/i18n": "^4.8.0",
53
+ "@wordpress/icons": "^8.4.0",
54
+ "@wordpress/keycodes": "^3.8.0",
55
+ "@wordpress/notices": "^3.8.0",
56
+ "@wordpress/primitives": "^3.6.0",
57
+ "@wordpress/reusable-blocks": "^3.6.0",
58
+ "@wordpress/rich-text": "^5.6.0",
59
+ "@wordpress/server-side-render": "^3.6.0",
60
+ "@wordpress/url": "^3.9.0",
61
+ "@wordpress/viewport": "^4.6.0",
62
62
  "classnames": "^2.3.1",
63
63
  "colord": "^2.7.0",
64
64
  "fast-average-color": "4.3.0",
@@ -74,5 +74,5 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "7efc8349abd18322bd93f318269ed2eaba25bcd8"
77
+ "gitHead": "4631d515033397fcfeda77e5755960253caef9bf"
78
78
  }
@@ -17,7 +17,7 @@ export default function ArchivesEdit( { attributes, setAttributes } ) {
17
17
  return (
18
18
  <>
19
19
  <InspectorControls>
20
- <PanelBody title={ __( 'Archives settings' ) }>
20
+ <PanelBody title={ __( 'Settings' ) }>
21
21
  <ToggleControl
22
22
  label={ __( 'Display as dropdown' ) }
23
23
  checked={ displayAsDropdown }
package/src/audio/edit.js CHANGED
@@ -62,13 +62,8 @@ function AudioEdit( {
62
62
  if ( file ) {
63
63
  mediaUpload( {
64
64
  filesList: [ file ],
65
- onFileChange: ( [ { id: mediaId, url } ] ) => {
66
- setAttributes( { id: mediaId, src: url } );
67
- },
68
- onError: ( e ) => {
69
- setAttributes( { src: undefined, id: undefined } );
70
- noticeOperations.createErrorNotice( e );
71
- },
65
+ onFileChange: ( [ media ] ) => onSelectAudio( media ),
66
+ onError: ( e ) => onUploadError( e ),
72
67
  allowedTypes: ALLOWED_MEDIA_TYPES,
73
68
  } );
74
69
  }
@@ -159,7 +154,7 @@ function AudioEdit( {
159
154
  />
160
155
  </BlockControls>
161
156
  <InspectorControls>
162
- <PanelBody title={ __( 'Audio settings' ) }>
157
+ <PanelBody title={ __( 'Settings' ) }>
163
158
  <ToggleControl
164
159
  label={ __( 'Autoplay' ) }
165
160
  onChange={ toggleAttribute( 'autoplay' ) }
@@ -177,7 +177,7 @@ function AudioEdit( {
177
177
  >
178
178
  <View>
179
179
  <InspectorControls>
180
- <PanelBody title={ __( 'Audio settings' ) }>
180
+ <PanelBody title={ __( 'Settings' ) }>
181
181
  <ToggleControl
182
182
  label={ __( 'Autoplay' ) }
183
183
  onChange={ toggleAttribute( 'autoplay' ) }
@@ -134,10 +134,13 @@ function ButtonEdit( props ) {
134
134
  useEffect( () => {
135
135
  // Blur `RichText` on Android when link settings sheet or button settings sheet is opened,
136
136
  // to avoid flashing caret after closing one of them
137
- if ( editorSidebarOpened || isLinkSheetVisible ) {
138
- if ( Platform.OS === 'android' && richTextRef?.current ) {
139
- richTextRef.current.blur();
137
+ const richText = richTextRef?.current;
138
+ if ( Platform.OS === 'android' && richText ) {
139
+ if ( editorSidebarOpened || isLinkSheetVisible ) {
140
+ richText.blur();
140
141
  onToggleButtonFocus( false );
142
+ } else {
143
+ onToggleButtonFocus( true );
141
144
  }
142
145
  }
143
146
  }, [ editorSidebarOpened, isLinkSheetVisible ] );
@@ -22,6 +22,10 @@
22
22
  "showOnlyTopLevel": {
23
23
  "type": "boolean",
24
24
  "default": false
25
+ },
26
+ "showEmpty": {
27
+ "type": "boolean",
28
+ "default": false
25
29
  }
26
30
  },
27
31
  "supports": {
@@ -25,11 +25,12 @@ export default function CategoriesEdit( {
25
25
  showHierarchy,
26
26
  showPostCounts,
27
27
  showOnlyTopLevel,
28
+ showEmpty,
28
29
  },
29
30
  setAttributes,
30
31
  } ) {
31
32
  const selectId = useInstanceId( CategoriesEdit, 'blocks-category-select' );
32
- const query = { per_page: -1, hide_empty: true, context: 'view' };
33
+ const query = { per_page: -1, hide_empty: ! showEmpty, context: 'view' };
33
34
  if ( showOnlyTopLevel ) {
34
35
  query.parent = 0;
35
36
  }
@@ -128,7 +129,7 @@ export default function CategoriesEdit( {
128
129
  return (
129
130
  <div { ...useBlockProps() }>
130
131
  <InspectorControls>
131
- <PanelBody title={ __( 'Categories settings' ) }>
132
+ <PanelBody title={ __( 'Settings' ) }>
132
133
  <ToggleControl
133
134
  label={ __( 'Display as dropdown' ) }
134
135
  checked={ displayAsDropdown }
@@ -144,6 +145,11 @@ export default function CategoriesEdit( {
144
145
  checked={ showOnlyTopLevel }
145
146
  onChange={ toggleAttribute( 'showOnlyTopLevel' ) }
146
147
  />
148
+ <ToggleControl
149
+ label={ __( 'Show empty categories' ) }
150
+ checked={ showEmpty }
151
+ onChange={ toggleAttribute( 'showEmpty' ) }
152
+ />
147
153
  { ! showOnlyTopLevel && (
148
154
  <ToggleControl
149
155
  label={ __( 'Show hierarchy' ) }
@@ -22,6 +22,7 @@ function render_block_core_categories( $attributes ) {
22
22
  'orderby' => 'name',
23
23
  'show_count' => ! empty( $attributes['showPostCounts'] ),
24
24
  'title_li' => '',
25
+ 'hide_empty' => empty( $attributes['showEmpty'] ),
25
26
  );
26
27
  if ( ! empty( $attributes['showOnlyTopLevel'] ) && $attributes['showOnlyTopLevel'] ) {
27
28
  $args['parent'] = 0;
@@ -41,6 +41,16 @@
41
41
  "padding": true
42
42
  }
43
43
  },
44
+ "__experimentalBorder": {
45
+ "color": true,
46
+ "style": true,
47
+ "width": true,
48
+ "__experimentalDefaultControls": {
49
+ "color": true,
50
+ "style": true,
51
+ "width": true
52
+ }
53
+ },
44
54
  "__experimentalLayout": true
45
55
  }
46
56
  }
@@ -288,11 +288,7 @@ export default function CommentTemplateEdit( {
288
288
  }
289
289
 
290
290
  if ( ! commentTree.length ) {
291
- return (
292
- <p { ...blockProps } data-testid="noresults">
293
- { __( 'No results found.' ) }
294
- </p>
295
- );
291
+ return <p { ...blockProps }>{ __( 'No results found.' ) }</p>;
296
292
  }
297
293
 
298
294
  return (
@@ -79,6 +79,10 @@ function render_block_core_comment_template( $attributes, $content, $block ) {
79
79
  return '';
80
80
  }
81
81
 
82
+ if ( post_password_required( $block->context['postId'] ) ) {
83
+ return;
84
+ }
85
+
82
86
  $comment_query = new WP_Comment_Query(
83
87
  build_comment_query_vars_from_block( $block )
84
88
  );
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 2,
4
4
  "name": "core/comments-query-loop",
5
- "title": "Comments Query Loop",
5
+ "title": "Comments",
6
6
  "category": "theme",
7
7
  "description": "An advanced block that allows displaying post comments using different visual configurations.",
8
8
  "textdomain": "default",
@@ -68,7 +68,7 @@ const TEMPLATE = [
68
68
  [ 'core/post-comments-form' ],
69
69
  ];
70
70
 
71
- export default function CommentsQueryLoopEdit( { attributes, setAttributes } ) {
71
+ export default function CommentsEdit( { attributes, setAttributes } ) {
72
72
  const { tagName: TagName } = attributes;
73
73
 
74
74
  const blockProps = useBlockProps();
File without changes