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.

52 lines
1.0 KiB

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