@wordpress/block-library 7.10.0 → 7.11.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 (374) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/button/edit.js +2 -1
  3. package/build/button/edit.js.map +1 -1
  4. package/build/buttons/edit.js +1 -1
  5. package/build/buttons/edit.js.map +1 -1
  6. package/build/columns/edit.native.js +1 -1
  7. package/build/columns/edit.native.js.map +1 -1
  8. package/build/comments/edit/comments-legacy.js +73 -0
  9. package/build/comments/edit/comments-legacy.js.map +1 -0
  10. package/build/comments/{edit.js → edit/index.js} +17 -38
  11. package/build/comments/edit/index.js.map +1 -0
  12. package/build/comments/edit/placeholder.js +117 -0
  13. package/build/comments/edit/placeholder.js.map +1 -0
  14. package/build/comments/edit/template.js +39 -0
  15. package/build/comments/edit/template.js.map +1 -0
  16. package/build/comments/index.js +6 -1
  17. package/build/comments/index.js.map +1 -1
  18. package/build/comments/save.js +12 -4
  19. package/build/comments/save.js.map +1 -1
  20. package/build/cover/transforms.js +3 -2
  21. package/build/cover/transforms.js.map +1 -1
  22. package/build/embed/embed-placeholder.native.js +1 -3
  23. package/build/embed/embed-placeholder.native.js.map +1 -1
  24. package/build/gallery/edit.js +2 -2
  25. package/build/gallery/edit.js.map +1 -1
  26. package/build/gallery/use-get-media.native.js +59 -0
  27. package/build/gallery/use-get-media.native.js.map +1 -0
  28. package/build/group/index.js +1 -0
  29. package/build/group/index.js.map +1 -1
  30. package/build/group/variations.js +1 -1
  31. package/build/group/variations.js.map +1 -1
  32. package/build/image/deprecated.js +77 -9
  33. package/build/image/deprecated.js.map +1 -1
  34. package/build/image/edit.js +3 -1
  35. package/build/image/edit.js.map +1 -1
  36. package/build/image/edit.native.js +18 -8
  37. package/build/image/edit.native.js.map +1 -1
  38. package/build/image/image.js +27 -20
  39. package/build/image/image.js.map +1 -1
  40. package/build/image/index.js +7 -1
  41. package/build/image/index.js.map +1 -1
  42. package/build/image/save.js +8 -2
  43. package/build/image/save.js.map +1 -1
  44. package/build/index.js +1 -3
  45. package/build/index.js.map +1 -1
  46. package/build/index.native.js +3 -13
  47. package/build/index.native.js.map +1 -1
  48. package/build/list/transforms.js +4 -63
  49. package/build/list/transforms.js.map +1 -1
  50. package/build/list/v2/transforms.js +0 -27
  51. package/build/list/v2/transforms.js.map +1 -1
  52. package/build/list-item/edit.js +14 -9
  53. package/build/list-item/edit.js.map +1 -1
  54. package/build/list-item/hooks/index.js +8 -8
  55. package/build/list-item/hooks/index.js.map +1 -1
  56. package/build/list-item/hooks/use-merge.js +174 -0
  57. package/build/list-item/hooks/use-merge.js.map +1 -0
  58. package/build/list-item/hooks/use-outdent-list-item.js +86 -50
  59. package/build/list-item/hooks/use-outdent-list-item.js.map +1 -1
  60. package/build/list-item/utils.js +125 -1
  61. package/build/list-item/utils.js.map +1 -1
  62. package/build/media-text/deprecated.js +134 -7
  63. package/build/media-text/deprecated.js.map +1 -1
  64. package/build/media-text/edit.js +2 -2
  65. package/build/media-text/edit.js.map +1 -1
  66. package/build/media-text/save.js +13 -0
  67. package/build/media-text/save.js.map +1 -1
  68. package/build/more/save.js +1 -7
  69. package/build/more/save.js.map +1 -1
  70. package/build/navigation-link/edit.js +5 -4
  71. package/build/navigation-link/edit.js.map +1 -1
  72. package/build/navigation-submenu/edit.js +2 -1
  73. package/build/navigation-submenu/edit.js.map +1 -1
  74. package/build/page-list/edit.js +8 -1
  75. package/build/page-list/edit.js.map +1 -1
  76. package/build/paragraph/edit.js +7 -11
  77. package/build/paragraph/edit.js.map +1 -1
  78. package/build/post-comments-form/edit.js +4 -45
  79. package/build/post-comments-form/edit.js.map +1 -1
  80. package/build/post-comments-form/form.js +47 -3
  81. package/build/post-comments-form/form.js.map +1 -1
  82. package/build/post-terms/edit.js +3 -2
  83. package/build/post-terms/edit.js.map +1 -1
  84. package/build/query-no-results/edit.js +1 -1
  85. package/build/query-no-results/edit.js.map +1 -1
  86. package/build/query-pagination-next/edit.js +2 -1
  87. package/build/query-pagination-next/edit.js.map +1 -1
  88. package/build/query-pagination-previous/edit.js +2 -1
  89. package/build/query-pagination-previous/edit.js.map +1 -1
  90. package/build/quote/deprecated.js +168 -36
  91. package/build/quote/deprecated.js.map +1 -1
  92. package/build/quote/edit.js +76 -39
  93. package/build/quote/edit.js.map +1 -1
  94. package/build/quote/index.js +9 -45
  95. package/build/quote/index.js.map +1 -1
  96. package/build/quote/save.js +1 -5
  97. package/build/quote/save.js.map +1 -1
  98. package/build/quote/transforms.js +110 -158
  99. package/build/quote/transforms.js.map +1 -1
  100. package/build/social-link/icons/index.js +13 -0
  101. package/build/social-link/icons/index.js.map +1 -1
  102. package/build/social-link/icons/whatsapp.js +25 -0
  103. package/build/social-link/icons/whatsapp.js.map +1 -0
  104. package/build/social-link/variations.js +7 -0
  105. package/build/social-link/variations.js.map +1 -1
  106. package/build/template-part/edit/index.js +17 -8
  107. package/build/template-part/edit/index.js.map +1 -1
  108. package/build/template-part/edit/selection-modal.js +33 -13
  109. package/build/template-part/edit/selection-modal.js.map +1 -1
  110. package/build/template-part/edit/utils/search.js +94 -0
  111. package/build/template-part/edit/utils/search.js.map +1 -0
  112. package/build-module/button/edit.js +2 -1
  113. package/build-module/button/edit.js.map +1 -1
  114. package/build-module/buttons/edit.js +2 -2
  115. package/build-module/buttons/edit.js.map +1 -1
  116. package/build-module/columns/edit.native.js +2 -2
  117. package/build-module/columns/edit.native.js.map +1 -1
  118. package/build-module/comments/edit/comments-legacy.js +59 -0
  119. package/build-module/comments/edit/comments-legacy.js.map +1 -0
  120. package/build-module/comments/edit/index.js +37 -0
  121. package/build-module/comments/edit/index.js.map +1 -0
  122. package/build-module/comments/edit/placeholder.js +102 -0
  123. package/build-module/comments/edit/placeholder.js.map +1 -0
  124. package/build-module/comments/edit/template.js +32 -0
  125. package/build-module/comments/edit/template.js.map +1 -0
  126. package/build-module/comments/index.js +6 -1
  127. package/build-module/comments/index.js.map +1 -1
  128. package/build-module/comments/save.js +9 -4
  129. package/build-module/comments/save.js.map +1 -1
  130. package/build-module/cover/transforms.js +3 -2
  131. package/build-module/cover/transforms.js.map +1 -1
  132. package/build-module/embed/embed-placeholder.native.js +1 -2
  133. package/build-module/embed/embed-placeholder.native.js.map +1 -1
  134. package/build-module/gallery/edit.js +2 -2
  135. package/build-module/gallery/edit.js.map +1 -1
  136. package/build-module/gallery/use-get-media.native.js +50 -0
  137. package/build-module/gallery/use-get-media.native.js.map +1 -0
  138. package/build-module/group/index.js +1 -0
  139. package/build-module/group/index.js.map +1 -1
  140. package/build-module/group/variations.js +2 -2
  141. package/build-module/group/variations.js.map +1 -1
  142. package/build-module/image/deprecated.js +77 -9
  143. package/build-module/image/deprecated.js.map +1 -1
  144. package/build-module/image/edit.js +5 -3
  145. package/build-module/image/edit.js.map +1 -1
  146. package/build-module/image/edit.native.js +18 -8
  147. package/build-module/image/edit.native.js.map +1 -1
  148. package/build-module/image/image.js +29 -22
  149. package/build-module/image/image.js.map +1 -1
  150. package/build-module/image/index.js +7 -1
  151. package/build-module/image/index.js.map +1 -1
  152. package/build-module/image/save.js +9 -3
  153. package/build-module/image/save.js.map +1 -1
  154. package/build-module/index.js +1 -2
  155. package/build-module/index.js.map +1 -1
  156. package/build-module/index.native.js +3 -13
  157. package/build-module/index.native.js.map +1 -1
  158. package/build-module/list/transforms.js +4 -63
  159. package/build-module/list/transforms.js.map +1 -1
  160. package/build-module/list/v2/transforms.js +2 -29
  161. package/build-module/list/v2/transforms.js.map +1 -1
  162. package/build-module/list-item/edit.js +14 -10
  163. package/build-module/list-item/edit.js.map +1 -1
  164. package/build-module/list-item/hooks/index.js +1 -1
  165. package/build-module/list-item/hooks/index.js.map +1 -1
  166. package/build-module/list-item/hooks/use-merge.js +160 -0
  167. package/build-module/list-item/hooks/use-merge.js.map +1 -0
  168. package/build-module/list-item/hooks/use-outdent-list-item.js +82 -46
  169. package/build-module/list-item/hooks/use-outdent-list-item.js.map +1 -1
  170. package/build-module/list-item/utils.js +123 -2
  171. package/build-module/list-item/utils.js.map +1 -1
  172. package/build-module/media-text/deprecated.js +134 -8
  173. package/build-module/media-text/deprecated.js.map +1 -1
  174. package/build-module/media-text/edit.js +2 -2
  175. package/build-module/media-text/edit.js.map +1 -1
  176. package/build-module/media-text/save.js +13 -0
  177. package/build-module/media-text/save.js.map +1 -1
  178. package/build-module/more/save.js +1 -6
  179. package/build-module/more/save.js.map +1 -1
  180. package/build-module/navigation-link/edit.js +5 -4
  181. package/build-module/navigation-link/edit.js.map +1 -1
  182. package/build-module/navigation-submenu/edit.js +2 -1
  183. package/build-module/navigation-submenu/edit.js.map +1 -1
  184. package/build-module/page-list/edit.js +8 -1
  185. package/build-module/page-list/edit.js.map +1 -1
  186. package/build-module/paragraph/edit.js +8 -12
  187. package/build-module/paragraph/edit.js.map +1 -1
  188. package/build-module/post-comments-form/edit.js +5 -42
  189. package/build-module/post-comments-form/edit.js.map +1 -1
  190. package/build-module/post-comments-form/form.js +46 -5
  191. package/build-module/post-comments-form/form.js.map +1 -1
  192. package/build-module/post-terms/edit.js +3 -2
  193. package/build-module/post-terms/edit.js.map +1 -1
  194. package/build-module/query-no-results/edit.js +2 -2
  195. package/build-module/query-no-results/edit.js.map +1 -1
  196. package/build-module/query-pagination-next/edit.js +2 -1
  197. package/build-module/query-pagination-next/edit.js.map +1 -1
  198. package/build-module/query-pagination-previous/edit.js +2 -1
  199. package/build-module/query-pagination-previous/edit.js.map +1 -1
  200. package/build-module/quote/deprecated.js +162 -36
  201. package/build-module/quote/deprecated.js.map +1 -1
  202. package/build-module/quote/edit.js +77 -43
  203. package/build-module/quote/edit.js.map +1 -1
  204. package/build-module/quote/index.js +9 -39
  205. package/build-module/quote/index.js.map +1 -1
  206. package/build-module/quote/save.js +4 -8
  207. package/build-module/quote/save.js.map +1 -1
  208. package/build-module/quote/transforms.js +111 -158
  209. package/build-module/quote/transforms.js.map +1 -1
  210. package/build-module/social-link/icons/index.js +1 -0
  211. package/build-module/social-link/icons/index.js.map +1 -1
  212. package/build-module/social-link/icons/whatsapp.js +15 -0
  213. package/build-module/social-link/icons/whatsapp.js.map +1 -0
  214. package/build-module/social-link/variations.js +8 -1
  215. package/build-module/social-link/variations.js.map +1 -1
  216. package/build-module/template-part/edit/index.js +20 -11
  217. package/build-module/template-part/edit/index.js.map +1 -1
  218. package/build-module/template-part/edit/selection-modal.js +33 -15
  219. package/build-module/template-part/edit/selection-modal.js.map +1 -1
  220. package/build-module/template-part/edit/utils/search.js +84 -0
  221. package/build-module/template-part/edit/utils/search.js.map +1 -0
  222. package/build-style/button/style-rtl.css +1 -1
  223. package/build-style/button/style.css +1 -1
  224. package/build-style/comments/editor-rtl.css +122 -0
  225. package/build-style/comments/editor.css +122 -0
  226. package/build-style/{post-comments → comments}/style-rtl.css +1 -0
  227. package/build-style/{post-comments → comments}/style.css +1 -0
  228. package/build-style/common-rtl.css +7 -0
  229. package/build-style/common.css +7 -0
  230. package/build-style/cover/style-rtl.css +2 -2
  231. package/build-style/cover/style.css +2 -2
  232. package/build-style/{post-comments/editor.css → editor-elements-rtl.css} +8 -2
  233. package/build-style/{post-comments/editor-rtl.css → editor-elements.css} +8 -2
  234. package/build-style/editor-rtl.css +151 -10
  235. package/build-style/editor.css +151 -10
  236. package/build-style/gallery/style-rtl.css +7 -2
  237. package/build-style/gallery/style.css +7 -2
  238. package/build-style/image/editor-rtl.css +4 -3
  239. package/build-style/image/editor.css +4 -3
  240. package/build-style/image/style-rtl.css +33 -3
  241. package/build-style/image/style.css +33 -3
  242. package/build-style/post-comments-form/style-rtl.css +0 -1
  243. package/build-style/post-comments-form/style.css +0 -1
  244. package/build-style/social-link/editor-rtl.css +1 -0
  245. package/build-style/social-link/editor.css +1 -0
  246. package/build-style/social-links/style-rtl.css +8 -0
  247. package/build-style/social-links/style.css +8 -0
  248. package/build-style/style-rtl.css +170 -127
  249. package/build-style/style.css +170 -127
  250. package/build-style/template-part/editor-rtl.css +14 -3
  251. package/build-style/template-part/editor.css +14 -3
  252. package/package.json +28 -28
  253. package/src/button/edit.js +1 -0
  254. package/src/button/style.scss +3 -1
  255. package/src/buttons/edit.js +1 -5
  256. package/src/columns/edit.native.js +2 -2
  257. package/src/comments/block.json +6 -1
  258. package/src/comments/edit/comments-legacy.js +71 -0
  259. package/src/comments/edit/index.js +35 -0
  260. package/src/comments/edit/placeholder.js +124 -0
  261. package/src/comments/{edit.js → edit/template.js} +1 -28
  262. package/src/comments/editor.scss +9 -0
  263. package/src/comments/index.php +219 -0
  264. package/src/comments/save.js +8 -7
  265. package/src/{post-comments → comments}/style.scss +7 -0
  266. package/src/common.scss +2 -0
  267. package/src/cover/style.scss +2 -2
  268. package/src/cover/transforms.js +2 -2
  269. package/src/editor-elements.scss +10 -0
  270. package/src/editor.scss +2 -1
  271. package/src/embed/embed-placeholder.native.js +2 -3
  272. package/src/gallery/edit.js +4 -2
  273. package/src/gallery/style.scss +10 -1
  274. package/src/gallery/use-get-media.native.js +44 -0
  275. package/src/group/block.json +1 -0
  276. package/src/group/variations.js +2 -2
  277. package/src/image/block.json +7 -1
  278. package/src/image/deprecated.js +86 -0
  279. package/src/image/edit.js +6 -1
  280. package/src/image/edit.native.js +18 -7
  281. package/src/image/editor.scss +9 -4
  282. package/src/image/image.js +26 -16
  283. package/src/image/save.js +10 -1
  284. package/src/image/style.scss +39 -3
  285. package/src/index.js +0 -2
  286. package/src/index.native.js +2 -11
  287. package/src/list/transforms.js +0 -47
  288. package/src/list/v2/transforms.js +2 -40
  289. package/src/list-item/edit.js +10 -12
  290. package/src/list-item/hooks/index.js +1 -1
  291. package/src/list-item/hooks/use-merge.js +141 -0
  292. package/src/list-item/hooks/use-outdent-list-item.js +72 -74
  293. package/src/list-item/utils.js +27 -3
  294. package/src/media-text/deprecated.js +148 -1
  295. package/src/media-text/edit.js +2 -1
  296. package/src/media-text/save.js +18 -0
  297. package/src/more/save.js +3 -6
  298. package/src/navigation-link/edit.js +4 -3
  299. package/src/navigation-submenu/edit.js +1 -0
  300. package/src/page-list/edit.js +9 -0
  301. package/src/paragraph/edit.js +8 -14
  302. package/src/post-comments-form/edit.js +2 -71
  303. package/src/post-comments-form/form.js +80 -5
  304. package/src/post-comments-form/index.php +1 -1
  305. package/src/post-comments-form/style.scss +0 -1
  306. package/src/post-terms/edit.js +3 -2
  307. package/src/query-no-results/edit.js +2 -5
  308. package/src/query-pagination-next/edit.js +1 -0
  309. package/src/query-pagination-previous/edit.js +1 -0
  310. package/src/quote/deprecated.js +213 -99
  311. package/src/quote/edit.js +77 -52
  312. package/src/quote/index.js +10 -33
  313. package/src/quote/save.js +5 -5
  314. package/src/quote/{v2/test → test}/migrate.js +2 -7
  315. package/src/quote/transforms.js +117 -147
  316. package/src/social-link/editor.scss +3 -0
  317. package/src/social-link/icons/index.js +1 -0
  318. package/src/social-link/icons/whatsapp.js +10 -0
  319. package/src/social-link/index.php +4 -0
  320. package/src/social-link/socials-with-bg.scss +5 -0
  321. package/src/social-link/socials-without-bg.scss +5 -0
  322. package/src/social-link/variations.js +7 -0
  323. package/src/style.scss +1 -2
  324. package/src/template-part/edit/index.js +37 -24
  325. package/src/template-part/edit/selection-modal.js +68 -40
  326. package/src/template-part/edit/utils/search.js +76 -0
  327. package/src/template-part/editor.scss +21 -9
  328. package/src/template-part/index.php +56 -2
  329. package/build/comments/edit.js.map +0 -1
  330. package/build/list-item/hooks/use-backspace.js +0 -59
  331. package/build/list-item/hooks/use-backspace.js.map +0 -1
  332. package/build/post-comments/edit.js +0 -184
  333. package/build/post-comments/edit.js.map +0 -1
  334. package/build/post-comments/index.js +0 -72
  335. package/build/post-comments/index.js.map +0 -1
  336. package/build/quote/v2/deprecated.js +0 -133
  337. package/build/quote/v2/deprecated.js.map +0 -1
  338. package/build/quote/v2/edit.js +0 -139
  339. package/build/quote/v2/edit.js.map +0 -1
  340. package/build/quote/v2/index.js +0 -49
  341. package/build/quote/v2/index.js.map +0 -1
  342. package/build/quote/v2/save.js +0 -43
  343. package/build/quote/v2/save.js.map +0 -1
  344. package/build/quote/v2/transforms.js +0 -156
  345. package/build/quote/v2/transforms.js.map +0 -1
  346. package/build-module/comments/edit.js +0 -59
  347. package/build-module/comments/edit.js.map +0 -1
  348. package/build-module/list-item/hooks/use-backspace.js +0 -44
  349. package/build-module/list-item/hooks/use-backspace.js.map +0 -1
  350. package/build-module/post-comments/edit.js +0 -171
  351. package/build-module/post-comments/edit.js.map +0 -1
  352. package/build-module/post-comments/index.js +0 -59
  353. package/build-module/post-comments/index.js.map +0 -1
  354. package/build-module/quote/v2/deprecated.js +0 -116
  355. package/build-module/quote/v2/deprecated.js.map +0 -1
  356. package/build-module/quote/v2/edit.js +0 -122
  357. package/build-module/quote/v2/edit.js.map +0 -1
  358. package/build-module/quote/v2/index.js +0 -33
  359. package/build-module/quote/v2/index.js.map +0 -1
  360. package/build-module/quote/v2/save.js +0 -30
  361. package/build-module/quote/v2/save.js.map +0 -1
  362. package/build-module/quote/v2/transforms.js +0 -147
  363. package/build-module/quote/v2/transforms.js.map +0 -1
  364. package/src/list-item/hooks/use-backspace.js +0 -51
  365. package/src/post-comments/block.json +0 -45
  366. package/src/post-comments/edit.js +0 -247
  367. package/src/post-comments/editor.scss +0 -3
  368. package/src/post-comments/index.js +0 -18
  369. package/src/post-comments/index.php +0 -87
  370. package/src/quote/v2/deprecated.js +0 -107
  371. package/src/quote/v2/edit.js +0 -139
  372. package/src/quote/v2/index.js +0 -36
  373. package/src/quote/v2/save.js +0 -26
  374. package/src/quote/v2/transforms.js +0 -155
@@ -97,7 +97,6 @@
97
97
  cursor: pointer;
98
98
  display: inline-block;
99
99
  text-align: center;
100
- text-decoration: none;
101
100
  word-break: break-word;
102
101
  box-sizing: border-box;
103
102
  }
@@ -113,6 +112,7 @@
113
112
  }
114
113
 
115
114
  :where(.wp-block-button__link) {
115
+ text-decoration: none;
116
116
  border-radius: 9999px;
117
117
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
118
118
  }
@@ -345,6 +345,118 @@
345
345
  width: 100%;
346
346
  }
347
347
 
348
+ /* Styles for backwards compatibility with the legacy `post-comments` block */
349
+ .wp-block-post-comments {
350
+ /* utility classes */
351
+ /* end utility classes */
352
+ }
353
+ .wp-block-post-comments .alignleft {
354
+ float: left;
355
+ }
356
+ .wp-block-post-comments .alignright {
357
+ float: right;
358
+ }
359
+ .wp-block-post-comments .navigation::after {
360
+ content: "";
361
+ display: table;
362
+ clear: both;
363
+ }
364
+ .wp-block-post-comments .commentlist {
365
+ clear: both;
366
+ list-style: none;
367
+ margin: 0;
368
+ padding: 0;
369
+ }
370
+ .wp-block-post-comments .commentlist .comment {
371
+ min-height: 2.25em;
372
+ padding-left: 3.25em;
373
+ }
374
+ .wp-block-post-comments .commentlist .comment p {
375
+ font-size: 1em;
376
+ line-height: 1.8;
377
+ margin: 1em 0;
378
+ }
379
+ .wp-block-post-comments .commentlist .children {
380
+ list-style: none;
381
+ margin: 0;
382
+ padding: 0;
383
+ }
384
+ .wp-block-post-comments .comment-author {
385
+ line-height: 1.5;
386
+ }
387
+ .wp-block-post-comments .comment-author .avatar {
388
+ border-radius: 1.5em;
389
+ display: block;
390
+ float: left;
391
+ height: 2.5em;
392
+ margin-top: 0.5em;
393
+ margin-right: 0.75em;
394
+ width: 2.5em;
395
+ }
396
+ .wp-block-post-comments .comment-author cite {
397
+ font-style: normal;
398
+ }
399
+ .wp-block-post-comments .comment-meta {
400
+ font-size: 0.875em;
401
+ line-height: 1.5;
402
+ }
403
+ .wp-block-post-comments .comment-meta b {
404
+ font-weight: normal;
405
+ }
406
+ .wp-block-post-comments .comment-meta .comment-awaiting-moderation {
407
+ margin-top: 1em;
408
+ margin-bottom: 1em;
409
+ display: block;
410
+ }
411
+ .wp-block-post-comments .comment-body .commentmetadata {
412
+ font-size: 0.875em;
413
+ }
414
+ .wp-block-post-comments .comment-form-comment label,
415
+ .wp-block-post-comments .comment-form-author label,
416
+ .wp-block-post-comments .comment-form-email label,
417
+ .wp-block-post-comments .comment-form-url label {
418
+ display: block;
419
+ margin-bottom: 0.25em;
420
+ }
421
+ .wp-block-post-comments .comment-form textarea,
422
+ .wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]) {
423
+ display: block;
424
+ box-sizing: border-box;
425
+ width: 100%;
426
+ }
427
+ .wp-block-post-comments .comment-form-cookies-consent {
428
+ display: flex;
429
+ gap: 0.25em;
430
+ }
431
+ .wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent {
432
+ margin-top: 0.35em;
433
+ }
434
+ .wp-block-post-comments .comment-reply-title {
435
+ margin-bottom: 0;
436
+ }
437
+ .wp-block-post-comments .comment-reply-title :where(small) {
438
+ font-size: var(--wp--preset--font-size--medium, smaller);
439
+ margin-left: 0.5em;
440
+ }
441
+ .wp-block-post-comments .reply {
442
+ font-size: 0.875em;
443
+ margin-bottom: 1.4em;
444
+ }
445
+ .wp-block-post-comments textarea,
446
+ .wp-block-post-comments input:not([type=submit]) {
447
+ border: 1px solid #949494;
448
+ font-size: 1em;
449
+ font-family: inherit;
450
+ }
451
+ .wp-block-post-comments textarea,
452
+ .wp-block-post-comments input:not([type=submit]):not([type=checkbox]) {
453
+ padding: calc(0.667em + 2px);
454
+ }
455
+
456
+ :where(.wp-block-post-comments input[type="submit"]) {
457
+ border: none;
458
+ }
459
+
348
460
  .wp-block-comments-pagination > .wp-block-comments-pagination-next,
349
461
  .wp-block-comments-pagination > .wp-block-comments-pagination-previous,
350
462
  .wp-block-comments-pagination > .wp-block-comments-pagination-numbers {
@@ -407,10 +519,8 @@
407
519
  .wp-block-cover-image,
408
520
  .wp-block-cover {
409
521
  position: relative;
410
- background-size: cover;
411
522
  background-position: center center;
412
523
  min-height: 430px;
413
- width: 100%;
414
524
  display: flex;
415
525
  justify-content: center;
416
526
  align-items: center;
@@ -729,6 +839,8 @@
729
839
  .wp-block-cover__image-background.has-parallax,
730
840
  video.wp-block-cover__video-background.has-parallax {
731
841
  background-attachment: fixed;
842
+ background-size: cover;
843
+ background-repeat: no-repeat;
732
844
  }
733
845
  @supports (-webkit-overflow-scrolling: touch) {
734
846
  .wp-block-cover-image.has-parallax,
@@ -1123,6 +1235,7 @@ figure.wp-block-gallery.has-nested-images {
1123
1235
  position: relative;
1124
1236
  flex-direction: column;
1125
1237
  max-width: 100%;
1238
+ box-sizing: border-box;
1126
1239
  }
1127
1240
  .wp-block-gallery.has-nested-images figure.wp-block-image > div,
1128
1241
  .wp-block-gallery.has-nested-images figure.wp-block-image > a {
@@ -1157,11 +1270,15 @@ figure.wp-block-gallery.has-nested-images {
1157
1270
  .wp-block-gallery.has-nested-images figure.wp-block-image figcaption a {
1158
1271
  color: inherit;
1159
1272
  }
1273
+ .wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border img {
1274
+ box-sizing: border-box;
1275
+ }
1160
1276
  .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded > div,
1161
- .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded > a {
1277
+ .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded > a, .wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border > div,
1278
+ .wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border > a {
1162
1279
  flex: 1 1 auto;
1163
1280
  }
1164
- .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption {
1281
+ .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption, .wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption {
1165
1282
  flex: initial;
1166
1283
  background: none;
1167
1284
  color: inherit;
@@ -1250,10 +1367,10 @@ h6.has-background {
1250
1367
  height: auto;
1251
1368
  max-width: 100%;
1252
1369
  vertical-align: bottom;
1370
+ box-sizing: border-box;
1253
1371
  }
1254
- .wp-block-image:not(.is-style-rounded) > a,
1255
- .wp-block-image:not(.is-style-rounded) img {
1256
- border-radius: inherit;
1372
+ .wp-block-image.has-custom-border img {
1373
+ box-sizing: border-box;
1257
1374
  }
1258
1375
  .wp-block-image.aligncenter {
1259
1376
  text-align: center;
@@ -1324,6 +1441,36 @@ h6.has-background {
1324
1441
  border-radius: 0;
1325
1442
  }
1326
1443
  }
1444
+ .wp-block-image :where(.has-border-color) {
1445
+ border-style: solid;
1446
+ }
1447
+ .wp-block-image :where([style*="border-top-color"]) {
1448
+ border-top-style: solid;
1449
+ }
1450
+ .wp-block-image :where([style*="border-right-color"]) {
1451
+ border-right-style: solid;
1452
+ }
1453
+ .wp-block-image :where([style*="border-bottom-color"]) {
1454
+ border-bottom-style: solid;
1455
+ }
1456
+ .wp-block-image :where([style*="border-left-color"]) {
1457
+ border-left-style: solid;
1458
+ }
1459
+ .wp-block-image :where([style*="border-width"]) {
1460
+ border-style: solid;
1461
+ }
1462
+ .wp-block-image :where([style*="border-top-width"]) {
1463
+ border-top-style: solid;
1464
+ }
1465
+ .wp-block-image :where([style*="border-right-width"]) {
1466
+ border-right-style: solid;
1467
+ }
1468
+ .wp-block-image :where([style*="border-bottom-width"]) {
1469
+ border-bottom-style: solid;
1470
+ }
1471
+ .wp-block-image :where([style*="border-left-width"]) {
1472
+ border-left-style: solid;
1473
+ }
1327
1474
 
1328
1475
  .wp-block-image figure {
1329
1476
  margin: 0;
@@ -2144,117 +2291,6 @@ p.has-background {
2144
2291
  margin: 0;
2145
2292
  }
2146
2293
 
2147
- .wp-block-post-comments {
2148
- /* utility classes */
2149
- /* end utility classes */
2150
- }
2151
- .wp-block-post-comments .alignleft {
2152
- float: left;
2153
- }
2154
- .wp-block-post-comments .alignright {
2155
- float: right;
2156
- }
2157
- .wp-block-post-comments .navigation::after {
2158
- content: "";
2159
- display: table;
2160
- clear: both;
2161
- }
2162
- .wp-block-post-comments .commentlist {
2163
- clear: both;
2164
- list-style: none;
2165
- margin: 0;
2166
- padding: 0;
2167
- }
2168
- .wp-block-post-comments .commentlist .comment {
2169
- min-height: 2.25em;
2170
- padding-left: 3.25em;
2171
- }
2172
- .wp-block-post-comments .commentlist .comment p {
2173
- font-size: 1em;
2174
- line-height: 1.8;
2175
- margin: 1em 0;
2176
- }
2177
- .wp-block-post-comments .commentlist .children {
2178
- list-style: none;
2179
- margin: 0;
2180
- padding: 0;
2181
- }
2182
- .wp-block-post-comments .comment-author {
2183
- line-height: 1.5;
2184
- }
2185
- .wp-block-post-comments .comment-author .avatar {
2186
- border-radius: 1.5em;
2187
- display: block;
2188
- float: left;
2189
- height: 2.5em;
2190
- margin-top: 0.5em;
2191
- margin-right: 0.75em;
2192
- width: 2.5em;
2193
- }
2194
- .wp-block-post-comments .comment-author cite {
2195
- font-style: normal;
2196
- }
2197
- .wp-block-post-comments .comment-meta {
2198
- font-size: 0.875em;
2199
- line-height: 1.5;
2200
- }
2201
- .wp-block-post-comments .comment-meta b {
2202
- font-weight: normal;
2203
- }
2204
- .wp-block-post-comments .comment-meta .comment-awaiting-moderation {
2205
- margin-top: 1em;
2206
- margin-bottom: 1em;
2207
- display: block;
2208
- }
2209
- .wp-block-post-comments .comment-body .commentmetadata {
2210
- font-size: 0.875em;
2211
- }
2212
- .wp-block-post-comments .comment-form-comment label,
2213
- .wp-block-post-comments .comment-form-author label,
2214
- .wp-block-post-comments .comment-form-email label,
2215
- .wp-block-post-comments .comment-form-url label {
2216
- display: block;
2217
- margin-bottom: 0.25em;
2218
- }
2219
- .wp-block-post-comments .comment-form textarea,
2220
- .wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]) {
2221
- display: block;
2222
- box-sizing: border-box;
2223
- width: 100%;
2224
- }
2225
- .wp-block-post-comments .comment-form-cookies-consent {
2226
- display: flex;
2227
- gap: 0.25em;
2228
- }
2229
- .wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent {
2230
- margin-top: 0.35em;
2231
- }
2232
- .wp-block-post-comments .comment-reply-title {
2233
- margin-bottom: 0;
2234
- }
2235
- .wp-block-post-comments .comment-reply-title :where(small) {
2236
- font-size: var(--wp--preset--font-size--medium, smaller);
2237
- margin-left: 0.5em;
2238
- }
2239
- .wp-block-post-comments .reply {
2240
- font-size: 0.875em;
2241
- margin-bottom: 1.4em;
2242
- }
2243
- .wp-block-post-comments textarea,
2244
- .wp-block-post-comments input:not([type=submit]) {
2245
- border: 1px solid #949494;
2246
- font-size: 1em;
2247
- font-family: inherit;
2248
- }
2249
- .wp-block-post-comments textarea,
2250
- .wp-block-post-comments input:not([type=submit]):not([type=checkbox]) {
2251
- padding: calc(0.667em + 2px);
2252
- }
2253
-
2254
- :where(.wp-block-post-comments input[type="submit"]) {
2255
- border: none;
2256
- }
2257
-
2258
2294
  .wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title) {
2259
2295
  font-weight: inherit;
2260
2296
  }
@@ -2274,7 +2310,6 @@ p.has-background {
2274
2310
  letter-spacing: inherit;
2275
2311
  }
2276
2312
  .wp-block-post-comments-form input[type=submit] {
2277
- border: none;
2278
2313
  box-shadow: none;
2279
2314
  cursor: pointer;
2280
2315
  display: inline-block;
@@ -2905,6 +2940,10 @@ ul.wp-block-rss.is-grid li {
2905
2940
  background-color: #3499cd;
2906
2941
  color: #fff;
2907
2942
  }
2943
+ .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-whatsapp {
2944
+ background-color: #25d366;
2945
+ color: #fff;
2946
+ }
2908
2947
  .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp {
2909
2948
  background-color: #d32422;
2910
2949
  color: #fff;
@@ -3033,6 +3072,10 @@ ul.wp-block-rss.is-grid li {
3033
3072
  .wp-block-social-links.is-style-logos-only .wp-social-link-vk {
3034
3073
  color: #4680c2;
3035
3074
  }
3075
+ .wp-block-social-links.is-style-logos-only .wp-social-link-whatsapp {
3076
+ background-color: #25d366;
3077
+ color: #fff;
3078
+ }
3036
3079
  .wp-block-social-links.is-style-logos-only .wp-social-link-wordpress {
3037
3080
  color: #3499cd;
3038
3081
  }
@@ -3252,6 +3295,13 @@ pre.wp-block-verse {
3252
3295
  margin-bottom: 1em;
3253
3296
  }
3254
3297
 
3298
+ /**
3299
+ * Element styles.
3300
+ */
3301
+ .wp-element-button {
3302
+ cursor: pointer;
3303
+ }
3304
+
3255
3305
  :root {
3256
3306
  /*
3257
3307
  * Our classes uses the same values we set for gradient value attributes,
@@ -3437,11 +3487,4 @@ html :where([style*="border-left-width"]) {
3437
3487
  html :where(img[class*="wp-image-"]) {
3438
3488
  height: auto;
3439
3489
  max-width: 100%;
3440
- }
3441
-
3442
- /**
3443
- * Element styles.
3444
- */
3445
- .wp-element-button {
3446
- cursor: pointer;
3447
3490
  }
@@ -74,19 +74,30 @@
74
74
  /**
75
75
  * Reset the WP Admin page styles for Gutenberg-like pages.
76
76
  */
77
+ .block-editor-template-part__selection-modal {
78
+ z-index: 1000001;
79
+ }
77
80
  @media (min-width: 600px) {
78
- .block-editor-template-part__selection-modal {
81
+ .block-editor-template-part__selection-modal .components-modal__frame {
79
82
  width: calc(100% - 32px);
80
83
  height: calc(100% - 120px);
81
84
  }
82
85
  }
83
86
  @media (min-width: 782px) {
84
- .block-editor-template-part__selection-modal {
87
+ .block-editor-template-part__selection-modal .components-modal__frame {
85
88
  width: 750px;
86
89
  }
87
90
  }
88
91
  @media (min-width: 960px) {
89
- .block-editor-template-part__selection-modal {
92
+ .block-editor-template-part__selection-modal .components-modal__frame {
90
93
  height: 70%;
91
94
  }
95
+ }
96
+
97
+ .block-library-template-part__selection-search {
98
+ background: #fff;
99
+ position: sticky;
100
+ top: 0;
101
+ padding: 16px 0;
102
+ z-index: 1;
92
103
  }
@@ -74,19 +74,30 @@
74
74
  /**
75
75
  * Reset the WP Admin page styles for Gutenberg-like pages.
76
76
  */
77
+ .block-editor-template-part__selection-modal {
78
+ z-index: 1000001;
79
+ }
77
80
  @media (min-width: 600px) {
78
- .block-editor-template-part__selection-modal {
81
+ .block-editor-template-part__selection-modal .components-modal__frame {
79
82
  width: calc(100% - 32px);
80
83
  height: calc(100% - 120px);
81
84
  }
82
85
  }
83
86
  @media (min-width: 782px) {
84
- .block-editor-template-part__selection-modal {
87
+ .block-editor-template-part__selection-modal .components-modal__frame {
85
88
  width: 750px;
86
89
  }
87
90
  }
88
91
  @media (min-width: 960px) {
89
- .block-editor-template-part__selection-modal {
92
+ .block-editor-template-part__selection-modal .components-modal__frame {
90
93
  height: 70%;
91
94
  }
95
+ }
96
+
97
+ .block-library-template-part__selection-search {
98
+ background: #fff;
99
+ position: sticky;
100
+ top: 0;
101
+ padding: 16px 0;
102
+ z-index: 1;
92
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "7.10.0",
3
+ "version": "7.11.0",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -34,32 +34,32 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@babel/runtime": "^7.16.0",
37
- "@wordpress/a11y": "^3.13.0",
38
- "@wordpress/api-fetch": "^6.10.0",
39
- "@wordpress/autop": "^3.13.0",
40
- "@wordpress/blob": "^3.13.0",
41
- "@wordpress/block-editor": "^9.5.0",
42
- "@wordpress/blocks": "^11.12.0",
43
- "@wordpress/components": "^19.15.0",
44
- "@wordpress/compose": "^5.11.0",
45
- "@wordpress/core-data": "^4.11.0",
46
- "@wordpress/data": "^6.13.0",
47
- "@wordpress/date": "^4.13.0",
48
- "@wordpress/deprecated": "^3.13.0",
49
- "@wordpress/dom": "^3.13.0",
50
- "@wordpress/element": "^4.11.0",
51
- "@wordpress/hooks": "^3.13.0",
52
- "@wordpress/html-entities": "^3.13.0",
53
- "@wordpress/i18n": "^4.13.0",
54
- "@wordpress/icons": "^9.4.0",
55
- "@wordpress/keycodes": "^3.13.0",
56
- "@wordpress/notices": "^3.13.0",
57
- "@wordpress/primitives": "^3.11.0",
58
- "@wordpress/reusable-blocks": "^3.11.0",
59
- "@wordpress/rich-text": "^5.11.0",
60
- "@wordpress/server-side-render": "^3.11.0",
61
- "@wordpress/url": "^3.14.0",
62
- "@wordpress/viewport": "^4.11.0",
37
+ "@wordpress/a11y": "^3.14.0",
38
+ "@wordpress/api-fetch": "^6.11.0",
39
+ "@wordpress/autop": "^3.14.0",
40
+ "@wordpress/blob": "^3.14.0",
41
+ "@wordpress/block-editor": "^9.6.0",
42
+ "@wordpress/blocks": "^11.13.0",
43
+ "@wordpress/components": "^19.16.0",
44
+ "@wordpress/compose": "^5.12.0",
45
+ "@wordpress/core-data": "^4.12.0",
46
+ "@wordpress/data": "^6.14.0",
47
+ "@wordpress/date": "^4.14.0",
48
+ "@wordpress/deprecated": "^3.14.0",
49
+ "@wordpress/dom": "^3.14.0",
50
+ "@wordpress/element": "^4.12.0",
51
+ "@wordpress/hooks": "^3.14.0",
52
+ "@wordpress/html-entities": "^3.14.0",
53
+ "@wordpress/i18n": "^4.14.0",
54
+ "@wordpress/icons": "^9.5.0",
55
+ "@wordpress/keycodes": "^3.14.0",
56
+ "@wordpress/notices": "^3.14.0",
57
+ "@wordpress/primitives": "^3.12.0",
58
+ "@wordpress/reusable-blocks": "^3.12.0",
59
+ "@wordpress/rich-text": "^5.12.0",
60
+ "@wordpress/server-side-render": "^3.12.0",
61
+ "@wordpress/url": "^3.15.0",
62
+ "@wordpress/viewport": "^4.12.0",
63
63
  "classnames": "^2.3.1",
64
64
  "colord": "^2.7.0",
65
65
  "fast-average-color": "4.3.0",
@@ -76,5 +76,5 @@
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  },
79
- "gitHead": "9d9d33bbdf317a4381b8ca1713e43bb50df653b3"
79
+ "gitHead": "0315dbc240cb2aa146d7c1bafd251f004b88300e"
80
80
  }
@@ -221,6 +221,7 @@ function ButtonEdit( props ) {
221
221
  anchorRef={ ref?.current }
222
222
  focusOnMount={ isEditingURL ? 'firstElement' : false }
223
223
  __unstableSlotName={ '__unstable-block-tools-after' }
224
+ __unstableShift
224
225
  >
225
226
  <LinkControl
226
227
  className="wp-block-navigation-link__inline-link-input"
@@ -8,7 +8,6 @@ $blocks-block__margin: 0.5em;
8
8
  cursor: pointer;
9
9
  display: inline-block;
10
10
  text-align: center;
11
- text-decoration: none;
12
11
  word-break: break-word; // overflow-wrap doesn't work well if a link is wrapped in the div, so use word-break here.
13
12
  box-sizing: border-box;
14
13
 
@@ -32,6 +31,9 @@ $blocks-block__margin: 0.5em;
32
31
  // These rules are set to zero specificity to keep the default styles for buttons.
33
32
  // They are needed for backwards compatibility.
34
33
  :where(.wp-block-button__link) {
34
+ // This needs a low specificity so it won't override the rules from the button element if defined in theme.json.
35
+ text-decoration: none;
36
+
35
37
  // 100% causes an oval, but any explicit but really high value retains the pill shape.
36
38
  border-radius: 9999px;
37
39
 
@@ -53,11 +53,7 @@ function ButtonsEdit( { attributes: { layout = {} } } ) {
53
53
  templateInsertUpdatesSelection: true,
54
54
  } );
55
55
 
56
- return (
57
- <>
58
- <div { ...innerBlocksProps } />
59
- </>
60
- );
56
+ return <div { ...innerBlocksProps } />;
61
57
  }
62
58
 
63
59
  export default ButtonsEdit;
@@ -2,7 +2,7 @@
2
2
  * External dependencies
3
3
  */
4
4
  import { View, Dimensions } from 'react-native';
5
- import { times, map, compact, delay } from 'lodash';
5
+ import { times, map, delay } from 'lodash';
6
6
  /**
7
7
  * WordPress dependencies
8
8
  */
@@ -474,7 +474,7 @@ const ColumnsEdit = ( props ) => {
474
474
 
475
475
  return {
476
476
  columnCount: getBlockCount( clientId ),
477
- isDefaultColumns: ! compact( isContentEmpty ).length,
477
+ isDefaultColumns: ! isContentEmpty.filter( Boolean ).length,
478
478
  innerWidths: innerColumnsWidths,
479
479
  hasParents: !! parents.length,
480
480
  parentBlockAlignment: getBlockAttributes( parents[ 0 ] )?.align,
@@ -10,6 +10,10 @@
10
10
  "tagName": {
11
11
  "type": "string",
12
12
  "default": "div"
13
+ },
14
+ "legacy": {
15
+ "type": "boolean",
16
+ "default": false
13
17
  }
14
18
  },
15
19
  "supports": {
@@ -25,5 +29,6 @@
25
29
  }
26
30
  }
27
31
  },
28
- "editorStyle": "wp-block-comments-editor"
32
+ "editorStyle": "wp-block-comments-editor",
33
+ "usesContext": [ "postId", "postType" ]
29
34
  }
@@ -0,0 +1,71 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import classnames from 'classnames';
5
+
6
+ /**
7
+ * WordPress dependencies
8
+ */
9
+ import {
10
+ AlignmentControl,
11
+ BlockControls,
12
+ Warning,
13
+ useBlockProps,
14
+ } from '@wordpress/block-editor';
15
+ import { __ } from '@wordpress/i18n';
16
+ import { Button } from '@wordpress/components';
17
+
18
+ /**
19
+ * Internal dependencies
20
+ */
21
+ import Placeholder from './placeholder';
22
+
23
+ export default function CommentsLegacy( {
24
+ attributes,
25
+ setAttributes,
26
+ context: { postType, postId },
27
+ } ) {
28
+ const { textAlign } = attributes;
29
+
30
+ const actions = [
31
+ <Button
32
+ key="convert"
33
+ onClick={ () => void setAttributes( { legacy: false } ) }
34
+ variant="primary"
35
+ >
36
+ { __( 'Switch to editable mode' ) }
37
+ </Button>,
38
+ ];
39
+
40
+ const blockProps = useBlockProps( {
41
+ className: classnames( {
42
+ [ `has-text-align-${ textAlign }` ]: textAlign,
43
+ } ),
44
+ } );
45
+
46
+ return (
47
+ <>
48
+ <BlockControls group="block">
49
+ <AlignmentControl
50
+ value={ textAlign }
51
+ onChange={ ( nextAlign ) => {
52
+ setAttributes( { textAlign: nextAlign } );
53
+ } }
54
+ />
55
+ </BlockControls>
56
+
57
+ <div { ...blockProps }>
58
+ <Warning actions={ actions }>
59
+ { __(
60
+ "Comments block: You're currently using this block in legacy mode. " +
61
+ 'The following is just a placeholder, not a real comment. ' +
62
+ 'The final styling may differ because it also depends on the current theme. ' +
63
+ 'For better compatibility with the Block Editor, ' +
64
+ 'please consider switching the block to its editable mode.'
65
+ ) }
66
+ </Warning>
67
+ <Placeholder postId={ postId } postType={ postType } />
68
+ </div>
69
+ </>
70
+ );
71
+ }