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.

56 lines
1.0 KiB

1 year ago
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 3,
  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. "padding": true
  34. },
  35. "__experimentalBorder": {
  36. "__experimentalSkipSerialization": true,
  37. "radius": true,
  38. "width": true,
  39. "color": true,
  40. "style": true,
  41. "__experimentalDefaultControls": {
  42. "radius": true
  43. }
  44. },
  45. "color": {
  46. "text": false,
  47. "background": false,
  48. "__experimentalDuotone": "img"
  49. }
  50. },
  51. "selectors": {
  52. "border": ".wp-block-avatar img"
  53. },
  54. "editorStyle": "wp-block-avatar-editor",
  55. "style": "wp-block-avatar"
  56. }