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.

53 lines
1.1 KiB

1 year ago
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 3,
  4. "name": "core/latest-comments",
  5. "title": "Latest Comments",
  6. "category": "widgets",
  7. "description": "Display a list of your most recent comments.",
  8. "keywords": [ "recent comments" ],
  9. "textdomain": "default",
  10. "attributes": {
  11. "commentsToShow": {
  12. "type": "number",
  13. "default": 5,
  14. "minimum": 1,
  15. "maximum": 100
  16. },
  17. "displayAvatar": {
  18. "type": "boolean",
  19. "default": true
  20. },
  21. "displayDate": {
  22. "type": "boolean",
  23. "default": true
  24. },
  25. "displayExcerpt": {
  26. "type": "boolean",
  27. "default": true
  28. }
  29. },
  30. "supports": {
  31. "align": true,
  32. "html": false,
  33. "spacing": {
  34. "margin": true,
  35. "padding": true
  36. },
  37. "typography": {
  38. "fontSize": true,
  39. "lineHeight": true,
  40. "__experimentalFontFamily": true,
  41. "__experimentalFontWeight": true,
  42. "__experimentalFontStyle": true,
  43. "__experimentalTextTransform": true,
  44. "__experimentalTextDecoration": true,
  45. "__experimentalLetterSpacing": true,
  46. "__experimentalDefaultControls": {
  47. "fontSize": true
  48. }
  49. }
  50. },
  51. "editorStyle": "wp-block-latest-comments-editor",
  52. "style": "wp-block-latest-comments"
  53. }