Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add missing block.json files and apply changes to assets metadata
  • Loading branch information
gziolo committed Jun 29, 2020
commit e5a508c55c1239dd2765c1e2fae0cf6153ca53f3
2 changes: 1 addition & 1 deletion src/wp-includes/assets/script-loader-packages.php

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions src/wp-includes/blocks/archives/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "core/archives",
"category": "widgets",
"attributes": {
"align": {
"type": "string",
"enum": [
"left",
"center",
"right",
"wide",
"full"
]
},
"className": {
"type": "string"
},
"displayAsDropdown": {
"type": "boolean",
"default": false
},
"showPostCounts": {
"type": "boolean",
"default": false
}
},
"supports": {
"align": true,
"html": false
}
}
14 changes: 14 additions & 0 deletions src/wp-includes/blocks/block/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "core/block",
"category": "reusable",
"attributes": {
"ref": {
"type": "number"
}
},
"supports": {
"customClassName": false,
"html": false,
"inserter": false
}
}
28 changes: 28 additions & 0 deletions src/wp-includes/blocks/calendar/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "core/calendar",
"category": "widgets",
"attributes": {
"align": {
"type": "string",
"enum": [
"left",
"center",
"right",
"wide",
"full"
]
},
"className": {
"type": "string"
},
"month": {
"type": "integer"
},
"year": {
"type": "integer"
}
},
"supports": {
"align": true
}
}
35 changes: 35 additions & 0 deletions src/wp-includes/blocks/categories/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "core/categories",
"category": "widgets",
"attributes": {
"align": {
"type": "string",
"enum": [
"left",
"center",
"right",
"wide",
"full"
]
},
"className": {
"type": "string"
},
"displayAsDropdown": {
"type": "boolean",
"default": false
},
"showHierarchy": {
"type": "boolean",
"default": false
},
"showPostCounts": {
"type": "boolean",
"default": false
}
},
"supports": {
"align": true,
"html": false
}
}
41 changes: 41 additions & 0 deletions src/wp-includes/blocks/latest-comments/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "core/latest-comments",
"category": "widgets",
"attributes": {
"align": {
"type": "string",
"enum": [
"left",
"center",
"right",
"wide",
"full"
]
},
"className": {
"type": "string"
},
"commentsToShow": {
"type": "number",
"default": 5,
"minimum": 1,
"maximum": 100
},
"displayAvatar": {
"type": "boolean",
"default": true
},
"displayDate": {
"type": "boolean",
"default": true
},
"displayExcerpt": {
"type": "boolean",
"default": true
}
},
"supports": {
"align": true,
"html": false
}
}
96 changes: 96 additions & 0 deletions src/wp-includes/blocks/latest-posts/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"name": "core/latest-posts",
"category": "widgets",
"attributes": {
"align": {
"type": "string",
"enum": [
"left",
"center",
"right",
"wide",
"full"
]
},
"className": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object"
}
},
"selectedAuthor": {
"type": "number"
},
"postsToShow": {
"type": "number",
"default": 5
},
"displayPostContent": {
"type": "boolean",
"default": false
},
"displayPostContentRadio": {
"type": "string",
"default": "excerpt"
},
"excerptLength": {
"type": "number",
"default": 55
},
"displayAuthor": {
"type": "boolean",
"default": false
},
"displayPostDate": {
"type": "boolean",
"default": false
},
"postLayout": {
"type": "string",
"default": "list"
},
"columns": {
"type": "number",
"default": 3
},
"order": {
"type": "string",
"default": "desc"
},
"orderBy": {
"type": "string",
"default": "date"
},
"displayFeaturedImage": {
"type": "boolean",
"default": false
},
"featuredImageAlign": {
"type": "string",
"enum": [
"left",
"center",
"right"
]
},
"featuredImageSizeSlug": {
"type": "string",
"default": "thumbnail"
},
"featuredImageSizeWidth": {
"type": "number",
"default": null
},
"featuredImageSizeHeight": {
"type": "number",
"default": null
}
},
"supports": {
"align": true,
"html": false
}
}
55 changes: 55 additions & 0 deletions src/wp-includes/blocks/rss/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "core/rss",
"category": "widgets",
"attributes": {
"align": {
"type": "string",
"enum": [
"left",
"center",
"right",
"wide",
"full"
]
},
"className": {
"type": "string"
},
"columns": {
"type": "number",
"default": 2
},
"blockLayout": {
"type": "string",
"default": "list"
},
"feedURL": {
"type": "string",
"default": ""
},
"itemsToShow": {
"type": "number",
"default": 5
},
"displayExcerpt": {
"type": "boolean",
"default": false
},
"displayAuthor": {
"type": "boolean",
"default": false
},
"displayDate": {
"type": "boolean",
"default": false
},
"excerptLength": {
"type": "number",
"default": 55
}
},
"supports": {
"align": true,
"html": false
}
}
33 changes: 33 additions & 0 deletions src/wp-includes/blocks/search/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "core/search",
"category": "widgets",
"attributes": {
"align": {
"type": "string",
"enum": [
"left",
"center",
"right",
"wide",
"full"
]
},
"className": {
"type": "string"
},
"label": {
"type": "string"
},
"placeholder": {
"type": "string",
"default": ""
},
"buttonText": {
"type": "string"
}
},
"supports": {
"align": true,
"html": false
}
}
5 changes: 5 additions & 0 deletions src/wp-includes/blocks/shortcode/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@
"type": "string",
"source": "html"
}
},
"supports": {
"className": false,
"customClassName": false,
"html": false
}
}
9 changes: 8 additions & 1 deletion src/wp-includes/blocks/social-link/block.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"name": "core/social-link",
"category": "widgets",
"icon": "share",
"parent": [
"core/social-links"
],
"attributes": {
"url": {
"type": "string"
Expand All @@ -12,5 +14,10 @@
"label": {
"type": "string"
}
},
"supports": {
"reusable": false,
"html": false,
"lightBlockWrapper": true
}
}
Loading