carhop__plugins__PROD-DEV/plugins/carhop-blocks/build/chapter-section/block.json
2025-11-25 15:07:21 +01:00

115 lines
2.2 KiB
JSON

{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "carhop-blocks/chapter-section",
"version": "0.1.0",
"title": " Section Chapitre",
"category": "carhop-blocks",
"icon": "smiley",
"description": "Example block scaffolded with Create Block tool.",
"example": {},
"supports": {
"html": false,
"border": {
"color": true,
"style": true,
"width": true
}
},
"textdomain": "carhop-blocks",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css",
"viewScript": "file:./view.js",
"render": "file:./render.php",
"attributes": {
"align": {
"type": "string",
"default": "full"
},
"blockWidth": {
"type": "string",
"default": "full",
"enum": [
"full",
"contained"
]
},
"coverType": {
"type": "string",
"default": "image",
"enum": [
"classic",
"photoframe"
]
},
"coverUrl": {
"type": "string"
},
"coverAlt": {
"type": "string"
},
"coverId": {
"type": "number"
},
"coverSize": {
"type": "string",
"default": "large",
"enum": [
"small",
"medium",
"grande",
"large"
]
},
"disposition": {
"type": "string",
"default": "left",
"enum": [
"left",
"right"
]
},
"hasBorder": {
"type": "boolean",
"default": false
},
"blockVariant": {
"type": "string",
"default": "framed",
"enum": [
"framed",
"backgrounded",
"nude"
]
},
"borderColor": {
"type": "string",
"default": "#136f63"
},
"backgroundColor": {
"type": "string",
"default": "#ffffff"
},
"hasLightBackground": {
"type": "boolean",
"default": true
},
"textColor": {
"type": "string",
"default": "#136f63"
},
"shapeType": {
"type": "string",
"default": "variationA",
"enum": [
"variationA",
"variationB"
]
}
},
"usesContext": [
"postType",
"postId"
]
}