You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.4 KiB

1 year ago
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 3,
  4. "name": "core/comments-title",
  5. "title": "Comments Title",
  6. "category": "theme",
  7. "ancestor": [ "core/comments" ],
  8. "description": "Displays a title with the number of comments",
  9. "textdomain": "default",
  10. "usesContext": [ "postId", "postType" ],
  11. "attributes": {
  12. "textAlign": {
  13. "type": "string"
  14. },
  15. "showPostTitle": {
  16. "type": "boolean",
  17. "default": true
  18. },
  19. "showCommentsCount": {
  20. "type": "boolean",
  21. "default": true
  22. },
  23. "level": {
  24. "type": "number",
  25. "default": 2
  26. }
  27. },
  28. "supports": {
  29. "anchor": false,
  30. "align": true,
  31. "html": false,
  32. "__experimentalBorder": {
  33. "radius": true,
  34. "color": true,
  35. "width": true,
  36. "style": true
  37. },
  38. "color": {
  39. "gradients": true,
  40. "__experimentalDefaultControls": {
  41. "background": true,
  42. "text": true
  43. }
  44. },
  45. "spacing": {
  46. "margin": true,
  47. "padding": true
  48. },
  49. "typography": {
  50. "fontSize": true,
  51. "lineHeight": true,
  52. "__experimentalFontFamily": true,
  53. "__experimentalFontWeight": true,
  54. "__experimentalFontStyle": true,
  55. "__experimentalTextTransform": true,
  56. "__experimentalTextDecoration": true,
  57. "__experimentalLetterSpacing": true,
  58. "__experimentalDefaultControls": {
  59. "fontSize": true,
  60. "__experimentalFontFamily": true,
  61. "__experimentalFontStyle": true,
  62. "__experimentalFontWeight": true
  63. }
  64. }
  65. }
  66. }