block.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  4. "name": "core/comments",
  5. "title": "Comments",
  6. "category": "theme",
  7. "description": "An advanced block that allows displaying post comments using different visual configurations.",
  8. "textdomain": "default",
  9. "attributes": {
  10. "tagName": {
  11. "type": "string",
  12. "default": "div"
  13. },
  14. "legacy": {
  15. "type": "boolean",
  16. "default": false
  17. }
  18. },
  19. "supports": {
  20. "align": [ "wide", "full" ],
  21. "html": false,
  22. "color": {
  23. "gradients": true,
  24. "link": true,
  25. "__experimentalDefaultControls": {
  26. "background": true,
  27. "text": true,
  28. "link": true
  29. }
  30. },
  31. "typography": {
  32. "fontSize": true,
  33. "lineHeight": true,
  34. "__experimentalFontFamily": true,
  35. "__experimentalFontWeight": true,
  36. "__experimentalFontStyle": true,
  37. "__experimentalTextTransform": true,
  38. "__experimentalTextDecoration": true,
  39. "__experimentalLetterSpacing": true,
  40. "__experimentalDefaultControls": {
  41. "fontSize": true
  42. }
  43. }
  44. },
  45. "editorStyle": "wp-block-comments-editor",
  46. "usesContext": [ "postId", "postType" ]
  47. }