Нет описания

block.json 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  4. "name": "core/post-author",
  5. "title": "Post Author",
  6. "category": "theme",
  7. "description": "Display post author details such as name, avatar, and bio.",
  8. "textdomain": "default",
  9. "attributes": {
  10. "textAlign": {
  11. "type": "string"
  12. },
  13. "avatarSize": {
  14. "type": "number",
  15. "default": 48
  16. },
  17. "showAvatar": {
  18. "type": "boolean",
  19. "default": true
  20. },
  21. "showBio": {
  22. "type": "boolean"
  23. },
  24. "byline": {
  25. "type": "string"
  26. }
  27. },
  28. "usesContext": [ "postType", "postId", "queryId" ],
  29. "supports": {
  30. "html": false,
  31. "spacing": {
  32. "margin": true,
  33. "padding": true
  34. },
  35. "typography": {
  36. "fontSize": true,
  37. "lineHeight": true,
  38. "__experimentalFontStyle": true,
  39. "__experimentalFontWeight": true,
  40. "__experimentalLetterSpacing": true,
  41. "__experimentalTextTransform": true,
  42. "__experimentalDefaultControls": {
  43. "fontSize": true
  44. }
  45. },
  46. "color": {
  47. "gradients": true,
  48. "link": true,
  49. "__experimentalDuotone": ".wp-block-post-author__avatar img",
  50. "__experimentalDefaultControls": {
  51. "background": true,
  52. "text": true
  53. }
  54. }
  55. },
  56. "editorStyle": "wp-block-post-author-editor",
  57. "style": "wp-block-post-author"
  58. }