block.json 987 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  4. "name": "core/avatar",
  5. "title": "Avatar",
  6. "category": "theme",
  7. "description": "Add a user's avatar.",
  8. "textdomain": "default",
  9. "attributes": {
  10. "userId": {
  11. "type": "number"
  12. },
  13. "size": {
  14. "type": "number",
  15. "default": 96
  16. },
  17. "isLink": {
  18. "type": "boolean",
  19. "default": false
  20. },
  21. "linkTarget": {
  22. "type": "string",
  23. "default": "_self"
  24. }
  25. },
  26. "usesContext": [ "postType", "postId", "commentId" ],
  27. "supports": {
  28. "html": false,
  29. "align": true,
  30. "alignWide": false,
  31. "spacing": {
  32. "margin": true
  33. },
  34. "__experimentalBorder": {
  35. "__experimentalSkipSerialization": true,
  36. "radius": true,
  37. "width": true,
  38. "color": true,
  39. "style": true,
  40. "__experimentalDefaultControls": {
  41. "radius": true
  42. }
  43. },
  44. "color": {
  45. "text": false,
  46. "background": false,
  47. "__experimentalDuotone": "img"
  48. }
  49. },
  50. "editorStyle": "wp-block-avatar",
  51. "style": "wp-block-avatar"
  52. }