| @@ -1,66 +1,72 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | - "__experimental": true, | |
| 4 | 3 | "apiVersion": 3, |
| 5 | 4 | "name": "core/tab-panel", |
| 6 | 5 | "title": "Tab Panel", |
| 7 | - "description": "Container for tab panel content in a tabbed interface.", | |
| 8 | - "version": "1.0.0", | |
| 6 | + "description": "Content for a tab in a tabbed interface.", | |
| 9 | 7 | "category": "design", |
| 10 | 8 | "textdomain": "default", |
| 11 | - "parent": [ "core/tabs" ], | |
| 12 | - "allowedBlocks": [ "core/tab" ], | |
| 13 | - "attributes": {}, | |
| 9 | + "attributes": { | |
| 10 | + "label": { | |
| 11 | + "type": "string", | |
| 12 | + "default": "" | |
| 13 | + } | |
| 14 | + }, | |
| 15 | + "parent": [ "core/tab-panels" ], | |
| 16 | + "usesContext": [ "core/tabs-id" ], | |
| 14 | 17 | "supports": { |
| 15 | - "anchor": false, | |
| 18 | + "anchor": true, | |
| 19 | + "background": { | |
| 20 | + "backgroundImage": true, | |
| 21 | + "backgroundSize": true, | |
| 22 | + "gradient": true, | |
| 23 | + "__experimentalDefaultControls": { | |
| 24 | + "backgroundImage": true, | |
| 25 | + "gradient": true | |
| 26 | + } | |
| 27 | + }, | |
| 16 | 28 | "html": false, |
| 17 | - "reusable": false, | |
| 18 | - "lock": false, | |
| 19 | - "dimensions": { | |
| 20 | - "aspectRatio": false, | |
| 21 | - "height": false, | |
| 22 | - "minHeight": false, | |
| 23 | - "width": false | |
| 24 | - }, | |
| 25 | 29 | "color": { |
| 26 | 30 | "background": true, |
| 27 | - "text": true, | |
| 31 | + "button": true, | |
| 28 | 32 | "heading": true, |
| 29 | 33 | "link": true, |
| 34 | + "text": true, | |
| 30 | 35 | "__experimentalDefaultControls": { |
| 31 | 36 | "background": true, |
| 32 | 37 | "text": true |
| 33 | 38 | } |
| 34 | 39 | }, |
| 40 | + "layout": true, | |
| 41 | + "shadow": true, | |
| 35 | 42 | "spacing": { |
| 36 | - "blockGap": false, | |
| 37 | - "padding": true, | |
| 38 | - "margin": true | |
| 43 | + "blockGap": true, | |
| 44 | + "padding": true | |
| 39 | 45 | }, |
| 40 | 46 | "typography": { |
| 41 | 47 | "fontSize": true, |
| 42 | - "__experimentalFontFamily": true | |
| 48 | + "lineHeight": true, | |
| 49 | + "__experimentalFontFamily": true, | |
| 50 | + "__experimentalFontWeight": true, | |
| 51 | + "__experimentalFontStyle": true, | |
| 52 | + "__experimentalTextTransform": true, | |
| 53 | + "__experimentalTextDecoration": true, | |
| 54 | + "__experimentalLetterSpacing": true, | |
| 55 | + "__experimentalDefaultControls": { | |
| 56 | + "fontSize": true, | |
| 57 | + "__experimentalFontFamily": true | |
| 58 | + } | |
| 43 | 59 | }, |
| 44 | - "layout": { | |
| 45 | - "default": { | |
| 46 | - "type": "flex", | |
| 47 | - "flexWrap": "nowrap", | |
| 48 | - "justifyContent": "stretch", | |
| 49 | - "orientation": "vertical" | |
| 50 | - }, | |
| 51 | - "allowSwitching": false, | |
| 52 | - "allowVerticalAlignment": false, | |
| 53 | - "allowOrientation": false, | |
| 54 | - "allowJustification": true, | |
| 55 | - "allowSizingOnChildren": false | |
| 56 | - }, | |
| 57 | 60 | "__experimentalBorder": { |
| 61 | + "color": true, | |
| 58 | 62 | "radius": true, |
| 59 | - "color": true, | |
| 60 | - "width": true, | |
| 61 | - "style": true | |
| 62 | - } | |
| 63 | + "style": true, | |
| 64 | + "width": true | |
| 65 | + }, | |
| 66 | + "visibility": false | |
| 63 | 67 | }, |
| 64 | - "editorScript": "file:./index.js", | |
| 65 | - "style": "file:./style-index.css" | |
| 68 | + "providesContext": { | |
| 69 | + "core/tab-label": "label" | |
| 70 | + }, | |
| 71 | + "style": "wp-block-tab-panel" | |
| 66 | 72 | } |