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.

58 lines
1.2 KiB

1 year ago
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 3,
  4. "name": "core/categories",
  5. "title": "Categories List",
  6. "category": "widgets",
  7. "description": "Display a list of all categories.",
  8. "textdomain": "default",
  9. "attributes": {
  10. "displayAsDropdown": {
  11. "type": "boolean",
  12. "default": false
  13. },
  14. "showHierarchy": {
  15. "type": "boolean",
  16. "default": false
  17. },
  18. "showPostCounts": {
  19. "type": "boolean",
  20. "default": false
  21. },
  22. "showOnlyTopLevel": {
  23. "type": "boolean",
  24. "default": false
  25. },
  26. "showEmpty": {
  27. "type": "boolean",
  28. "default": false
  29. }
  30. },
  31. "supports": {
  32. "align": true,
  33. "html": false,
  34. "spacing": {
  35. "margin": true,
  36. "padding": true,
  37. "__experimentalDefaultControls": {
  38. "margin": false,
  39. "padding": false
  40. }
  41. },
  42. "typography": {
  43. "fontSize": true,
  44. "lineHeight": true,
  45. "__experimentalFontFamily": true,
  46. "__experimentalFontWeight": true,
  47. "__experimentalFontStyle": true,
  48. "__experimentalTextTransform": true,
  49. "__experimentalTextDecoration": true,
  50. "__experimentalLetterSpacing": true,
  51. "__experimentalDefaultControls": {
  52. "fontSize": true
  53. }
  54. }
  55. },
  56. "editorStyle": "wp-block-categories-editor",
  57. "style": "wp-block-categories"
  58. }