block.json 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  4. "name": "core/comment-author-name",
  5. "title": "Comment Author Name",
  6. "category": "theme",
  7. "ancestor": [ "core/comment-template" ],
  8. "description": "Displays the name of the author of the comment.",
  9. "textdomain": "default",
  10. "attributes": {
  11. "isLink": {
  12. "type": "boolean",
  13. "default": true
  14. },
  15. "linkTarget": {
  16. "type": "string",
  17. "default": "_self"
  18. },
  19. "textAlign": {
  20. "type": "string"
  21. }
  22. },
  23. "usesContext": [ "commentId" ],
  24. "supports": {
  25. "html": false,
  26. "spacing": {
  27. "margin": true,
  28. "padding": true
  29. },
  30. "color": {
  31. "gradients": true,
  32. "link": true,
  33. "__experimentalDefaultControls": {
  34. "background": true,
  35. "text": true,
  36. "link": true
  37. }
  38. },
  39. "typography": {
  40. "fontSize": true,
  41. "lineHeight": true,
  42. "__experimentalFontFamily": true,
  43. "__experimentalFontWeight": true,
  44. "__experimentalFontStyle": true,
  45. "__experimentalTextTransform": true,
  46. "__experimentalLetterSpacing": true
  47. }
  48. }
  49. }