mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-02 16:59:35 +01:00
c3ea09ebb8
It contains several changes in addition to regular update to WordPress packages: - All newly exposed blocks are now registered on the server. - Dutone block support was added. - Border block support was updated. - New shared function `construct_wp_query_args` was added for the family of Query blocks - it might need some further work. Props youknowriad. See #52991. Built from https://develop.svn.wordpress.org/trunk@50929 git-svn-id: http://core.svn.wordpress.org/trunk@50538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
151 lines
2.8 KiB
JSON
151 lines
2.8 KiB
JSON
{
|
|
"apiVersion": 2,
|
|
"name": "core/table",
|
|
"title": "Table",
|
|
"category": "text",
|
|
"description": "Insert a table — perfect for sharing charts and data.",
|
|
"textdomain": "default",
|
|
"attributes": {
|
|
"hasFixedLayout": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"caption": {
|
|
"type": "string",
|
|
"source": "html",
|
|
"selector": "figcaption",
|
|
"default": ""
|
|
},
|
|
"head": {
|
|
"type": "array",
|
|
"default": [],
|
|
"source": "query",
|
|
"selector": "thead tr",
|
|
"query": {
|
|
"cells": {
|
|
"type": "array",
|
|
"default": [],
|
|
"source": "query",
|
|
"selector": "td,th",
|
|
"query": {
|
|
"content": {
|
|
"type": "string",
|
|
"source": "html"
|
|
},
|
|
"tag": {
|
|
"type": "string",
|
|
"default": "td",
|
|
"source": "tag"
|
|
},
|
|
"scope": {
|
|
"type": "string",
|
|
"source": "attribute",
|
|
"attribute": "scope"
|
|
},
|
|
"align": {
|
|
"type": "string",
|
|
"source": "attribute",
|
|
"attribute": "data-align"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "array",
|
|
"default": [],
|
|
"source": "query",
|
|
"selector": "tbody tr",
|
|
"query": {
|
|
"cells": {
|
|
"type": "array",
|
|
"default": [],
|
|
"source": "query",
|
|
"selector": "td,th",
|
|
"query": {
|
|
"content": {
|
|
"type": "string",
|
|
"source": "html"
|
|
},
|
|
"tag": {
|
|
"type": "string",
|
|
"default": "td",
|
|
"source": "tag"
|
|
},
|
|
"scope": {
|
|
"type": "string",
|
|
"source": "attribute",
|
|
"attribute": "scope"
|
|
},
|
|
"align": {
|
|
"type": "string",
|
|
"source": "attribute",
|
|
"attribute": "data-align"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"foot": {
|
|
"type": "array",
|
|
"default": [],
|
|
"source": "query",
|
|
"selector": "tfoot tr",
|
|
"query": {
|
|
"cells": {
|
|
"type": "array",
|
|
"default": [],
|
|
"source": "query",
|
|
"selector": "td,th",
|
|
"query": {
|
|
"content": {
|
|
"type": "string",
|
|
"source": "html"
|
|
},
|
|
"tag": {
|
|
"type": "string",
|
|
"default": "td",
|
|
"source": "tag"
|
|
},
|
|
"scope": {
|
|
"type": "string",
|
|
"source": "attribute",
|
|
"attribute": "scope"
|
|
},
|
|
"align": {
|
|
"type": "string",
|
|
"source": "attribute",
|
|
"attribute": "data-align"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"supports": {
|
|
"anchor": true,
|
|
"align": true,
|
|
"color": {
|
|
"__experimentalSkipSerialization": true,
|
|
"gradients": true
|
|
},
|
|
"__experimentalBorder": {
|
|
"__experimentalSkipSerialization": true,
|
|
"color": true,
|
|
"style": true,
|
|
"width": true
|
|
},
|
|
"__experimentalSelector": ".wp-block-table > table"
|
|
},
|
|
"styles": [
|
|
{
|
|
"name": "regular",
|
|
"label": "Default",
|
|
"isDefault": true
|
|
},
|
|
{ "name": "stripes", "label": "Stripes" }
|
|
],
|
|
"editorStyle": "wp-block-table-editor",
|
|
"style": "wp-block-table"
|
|
}
|