| @@ -1,15 +1,13 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | - "__experimental": true, | |
| 4 | 3 | "apiVersion": 3, |
| 5 | 4 | "name": "core/tabs", |
| 6 | 5 | "title": "Tabs", |
| 7 | 6 | "description": "Display content in a tabbed interface to help users navigate detailed content with ease.", |
| 8 | - "version": "1.0.0", | |
| 9 | 7 | "category": "design", |
| 10 | 8 | "textdomain": "default", |
| 11 | - "allowedBlocks": [ "core/tabs-menu", "core/tab-panel" ], | |
| 9 | + "allowedBlocks": [ "core/tab-list", "core/tab-panels" ], | |
| 12 | 10 | "attributes": { |
| 13 | 11 | "activeTabIndex": { |
| 14 | 12 | "type": "number", |
| 15 | 13 | "default": 0 |
| @@ -21,29 +19,35 @@ | ||
| 21 | 19 | }, |
| 22 | 20 | "supports": { |
| 23 | 21 | "align": true, |
| 24 | 22 | "anchor": true, |
| 23 | + "background": { | |
| 24 | + "backgroundImage": true, | |
| 25 | + "backgroundSize": true, | |
| 26 | + "gradient": true, | |
| 27 | + "__experimentalDefaultControls": { | |
| 28 | + "backgroundImage": true | |
| 29 | + } | |
| 30 | + }, | |
| 25 | 31 | "color": { |
| 26 | 32 | "text": true, |
| 27 | 33 | "background": true, |
| 34 | + "heading": true, | |
| 35 | + "button": true, | |
| 36 | + "link": true, | |
| 28 | 37 | "__experimentalDefaultControls": { |
| 29 | 38 | "text": true, |
| 30 | 39 | "background": true |
| 31 | 40 | } |
| 32 | 41 | }, |
| 42 | + "__experimentalBorder": { | |
| 43 | + "color": true, | |
| 44 | + "radius": true, | |
| 45 | + "style": true, | |
| 46 | + "width": true | |
| 47 | + }, | |
| 33 | 48 | "layout": { |
| 34 | - "default": { | |
| 35 | - "type": "flex", | |
| 36 | - "flexWrap": "nowrap", | |
| 37 | - "justifyContent": "stretch", | |
| 38 | - "verticalAlignment": "stretch", | |
| 39 | - "orientation": "vertical" | |
| 40 | - }, | |
| 41 | - "allowSwitching": false, | |
| 42 | - "allowVerticalAlignment": true, | |
| 43 | - "allowJustification": true, | |
| 44 | - "allowOrientation": true, | |
| 45 | - "allowSizingOnChildren": true | |
| 49 | + "allowEditing": false | |
| 46 | 50 | }, |
| 47 | 51 | "html": false, |
| 48 | 52 | "interactivity": true, |
| 49 | 53 | "spacing": { |
| @@ -50,20 +54,19 @@ | ||
| 50 | 54 | "blockGap": true, |
| 51 | 55 | "margin": true, |
| 52 | 56 | "padding": true |
| 53 | 57 | }, |
| 58 | + "shadow": true, | |
| 54 | 59 | "typography": { |
| 55 | 60 | "fontSize": true, |
| 56 | - "__experimentalFontFamily": true | |
| 57 | - }, | |
| 58 | - "renaming": true | |
| 61 | + "lineHeight": true, | |
| 62 | + "__experimentalFontFamily": true, | |
| 63 | + "__experimentalFontWeight": true, | |
| 64 | + "__experimentalFontStyle": true, | |
| 65 | + "__experimentalTextTransform": true, | |
| 66 | + "__experimentalLetterSpacing": true | |
| 67 | + } | |
| 59 | 68 | }, |
| 60 | - "providesContext": { | |
| 61 | - "core/tabs-activeTabIndex": "activeTabIndex", | |
| 62 | - "core/tabs-editorActiveTabIndex": "editorActiveTabIndex" | |
| 63 | - }, | |
| 64 | 69 | "usesContext": [ "core/tabs-list", "core/tabs-id" ], |
| 65 | - "editorScript": "file:./index.js", | |
| 66 | - "editorStyle": "file:./index.css", | |
| 67 | - "style": "file:./style-index.css", | |
| 70 | + "style": "wp-block-tabs", | |
| 68 | 71 | "viewScriptModule": "@wordpress/block-library/tabs/view" |
| 69 | 72 | } |