| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "core/table", |
| 5 |
"title": "Table", |
| 6 |
"category": "text", |
| 7 |
"description": "Create structured content in rows and columns to display information.", |
| 8 |
"textdomain": "default", |
| 9 |
"attributes": { |
| 10 |
"hasFixedLayout": { |
| 11 |
"type": "boolean", |
| 12 |
"default": true |
| 13 |
}, |
| 14 |
"caption": { |
| 15 |
"type": "rich-text", |
| 16 |
"source": "rich-text", |
| 17 |
"selector": "figcaption", |
| 18 |
"role": "content" |
| 19 |
}, |
| 20 |
"head": { |
| 21 |
"type": "array", |
| 22 |
"default": [], |
| 23 |
"source": "query", |
| 24 |
"selector": "thead tr", |
| 25 |
"query": { |
| 26 |
"cells": { |
| 27 |
"type": "array", |
| 28 |
"default": [], |
| 29 |
"source": "query", |
| 30 |
"selector": "td,th", |
| 31 |
"query": { |
| 32 |
"content": { |
| 33 |
"type": "rich-text", |
| 34 |
"source": "rich-text", |
| 35 |
"role": "content" |
| 36 |
}, |
| 37 |
"tag": { |
| 38 |
"type": "string", |
| 39 |
"default": "td", |
| 40 |
"source": "tag" |
| 41 |
}, |
| 42 |
"scope": { |
| 43 |
"type": "string", |
| 44 |
"source": "attribute", |
| 45 |
"attribute": "scope" |
| 46 |
}, |
| 47 |
"align": { |
| 48 |
"type": "string", |
| 49 |
"source": "attribute", |
| 50 |
"attribute": "data-align" |
| 51 |
}, |
| 52 |
"colspan": { |
| 53 |
"type": "string", |
| 54 |
"source": "attribute", |
| 55 |
"attribute": "colspan" |
| 56 |
}, |
| 57 |
"rowspan": { |
| 58 |
"type": "string", |
| 59 |
"source": "attribute", |
| 60 |
"attribute": "rowspan" |
| 61 |
} |
| 62 |
} |
| 63 |
} |
| 64 |
} |
| 65 |
}, |
| 66 |
"body": { |
| 67 |
"type": "array", |
| 68 |
"default": [], |
| 69 |
"source": "query", |
| 70 |
"selector": "tbody tr", |
| 71 |
"query": { |
| 72 |
"cells": { |
| 73 |
"type": "array", |
| 74 |
"default": [], |
| 75 |
"source": "query", |
| 76 |
"selector": "td,th", |
| 77 |
"query": { |
| 78 |
"content": { |
| 79 |
"type": "rich-text", |
| 80 |
"source": "rich-text", |
| 81 |
"role": "content" |
| 82 |
}, |
| 83 |
"tag": { |
| 84 |
"type": "string", |
| 85 |
"default": "td", |
| 86 |
"source": "tag" |
| 87 |
}, |
| 88 |
"scope": { |
| 89 |
"type": "string", |
| 90 |
"source": "attribute", |
| 91 |
"attribute": "scope" |
| 92 |
}, |
| 93 |
"align": { |
| 94 |
"type": "string", |
| 95 |
"source": "attribute", |
| 96 |
"attribute": "data-align" |
| 97 |
}, |
| 98 |
"colspan": { |
| 99 |
"type": "string", |
| 100 |
"source": "attribute", |
| 101 |
"attribute": "colspan" |
| 102 |
}, |
| 103 |
"rowspan": { |
| 104 |
"type": "string", |
| 105 |
"source": "attribute", |
| 106 |
"attribute": "rowspan" |
| 107 |
} |
| 108 |
} |
| 109 |
} |
| 110 |
} |
| 111 |
}, |
| 112 |
"foot": { |
| 113 |
"type": "array", |
| 114 |
"default": [], |
| 115 |
"source": "query", |
| 116 |
"selector": "tfoot tr", |
| 117 |
"query": { |
| 118 |
"cells": { |
| 119 |
"type": "array", |
| 120 |
"default": [], |
| 121 |
"source": "query", |
| 122 |
"selector": "td,th", |
| 123 |
"query": { |
| 124 |
"content": { |
| 125 |
"type": "rich-text", |
| 126 |
"source": "rich-text", |
| 127 |
"role": "content" |
| 128 |
}, |
| 129 |
"tag": { |
| 130 |
"type": "string", |
| 131 |
"default": "td", |
| 132 |
"source": "tag" |
| 133 |
}, |
| 134 |
"scope": { |
| 135 |
"type": "string", |
| 136 |
"source": "attribute", |
| 137 |
"attribute": "scope" |
| 138 |
}, |
| 139 |
"align": { |
| 140 |
"type": "string", |
| 141 |
"source": "attribute", |
| 142 |
"attribute": "data-align" |
| 143 |
}, |
| 144 |
"colspan": { |
| 145 |
"type": "string", |
| 146 |
"source": "attribute", |
| 147 |
"attribute": "colspan" |
| 148 |
}, |
| 149 |
"rowspan": { |
| 150 |
"type": "string", |
| 151 |
"source": "attribute", |
| 152 |
"attribute": "rowspan" |
| 153 |
} |
| 154 |
} |
| 155 |
} |
| 156 |
} |
| 157 |
} |
| 158 |
}, |
| 159 |
"supports": { |
| 160 |
"anchor": true, |
| 161 |
"align": true, |
| 162 |
"color": { |
| 163 |
"__experimentalSkipSerialization": true, |
| 164 |
"gradients": true, |
| 165 |
"__experimentalDefaultControls": { |
| 166 |
"background": true, |
| 167 |
"text": true |
| 168 |
} |
| 169 |
}, |
| 170 |
"spacing": { |
| 171 |
"margin": true, |
| 172 |
"padding": true, |
| 173 |
"__experimentalDefaultControls": { |
| 174 |
"margin": false, |
| 175 |
"padding": false |
| 176 |
} |
| 177 |
}, |
| 178 |
"typography": { |
| 179 |
"fontSize": true, |
| 180 |
"lineHeight": true, |
| 181 |
"__experimentalFontFamily": true, |
| 182 |
"__experimentalFontStyle": true, |
| 183 |
"__experimentalFontWeight": true, |
| 184 |
"__experimentalLetterSpacing": true, |
| 185 |
"__experimentalTextTransform": true, |
| 186 |
"__experimentalTextDecoration": true, |
| 187 |
"__experimentalDefaultControls": { |
| 188 |
"fontSize": true |
| 189 |
} |
| 190 |
}, |
| 191 |
"__experimentalBorder": { |
| 192 |
"__experimentalSkipSerialization": true, |
| 193 |
"color": true, |
| 194 |
"style": true, |
| 195 |
"width": true, |
| 196 |
"__experimentalDefaultControls": { |
| 197 |
"color": true, |
| 198 |
"style": true, |
| 199 |
"width": true |
| 200 |
} |
| 201 |
}, |
| 202 |
"interactivity": { |
| 203 |
"clientNavigation": true |
| 204 |
} |
| 205 |
}, |
| 206 |
"selectors": { |
| 207 |
"root": ".wp-block-table > table", |
| 208 |
"spacing": ".wp-block-table" |
| 209 |
}, |
| 210 |
"styles": [ |
| 211 |
{ |
| 212 |
"name": "regular", |
| 213 |
"label": "Default", |
| 214 |
"isDefault": true |
| 215 |
}, |
| 216 |
{ "name": "stripes", "label": "Stripes" } |
| 217 |
], |
| 218 |
"editorStyle": "wp-block-table-editor", |
| 219 |
"style": "wp-block-table" |
| 220 |
} |
| 221 |
|