125 lines
2.7 KiB
JSON
125 lines
2.7 KiB
JSON
{
|
||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||
"additionalProperties": true,
|
||
"properties": {
|
||
"_slug": {
|
||
"description": "Entry identifier (URL slug / filename without extension)",
|
||
"type": "string"
|
||
},
|
||
"description": {
|
||
"description": "Description",
|
||
"type": "string"
|
||
},
|
||
"id": {
|
||
"description": "Unique component ID",
|
||
"type": "string"
|
||
},
|
||
"layout": {
|
||
"description": "Column width (grid) like CF_ComponentLayout",
|
||
"properties": {
|
||
"breakout": {
|
||
"default": false,
|
||
"description": "Breakout layout (full width)",
|
||
"type": "boolean"
|
||
},
|
||
"desktop": {
|
||
"description": "Width on desktop (optional)",
|
||
"enum": [
|
||
"1",
|
||
"2",
|
||
"3",
|
||
"4",
|
||
"5",
|
||
"6",
|
||
"7",
|
||
"8",
|
||
"9",
|
||
"10",
|
||
"11",
|
||
"12"
|
||
],
|
||
"type": "string"
|
||
},
|
||
"mobile": {
|
||
"default": "12",
|
||
"description": "Width on mobile (1–12)",
|
||
"enum": [
|
||
"1",
|
||
"2",
|
||
"3",
|
||
"4",
|
||
"5",
|
||
"6",
|
||
"7",
|
||
"8",
|
||
"9",
|
||
"10",
|
||
"11",
|
||
"12"
|
||
],
|
||
"type": "string"
|
||
},
|
||
"spaceBottom": {
|
||
"default": 0,
|
||
"description": "Space below (rem)",
|
||
"enum": [
|
||
0,
|
||
0.5,
|
||
1,
|
||
1.5,
|
||
2
|
||
],
|
||
"type": "number"
|
||
},
|
||
"tablet": {
|
||
"description": "Width on tablet (optional)",
|
||
"enum": [
|
||
"1",
|
||
"2",
|
||
"3",
|
||
"4",
|
||
"5",
|
||
"6",
|
||
"7",
|
||
"8",
|
||
"9",
|
||
"10",
|
||
"11",
|
||
"12"
|
||
],
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": [
|
||
"mobile"
|
||
],
|
||
"type": "object"
|
||
},
|
||
"tagWhitelist": {
|
||
"description": "Optional: only search content with these tags",
|
||
"items": {
|
||
"description": "Reference (slug) to collection 'tag'",
|
||
"type": "string"
|
||
},
|
||
"type": "array"
|
||
},
|
||
"textFragments": {
|
||
"description": "Searchable text fragments (references to text_fragment)",
|
||
"items": {
|
||
"description": "Reference (slug) to collection 'text_fragment'",
|
||
"type": "string"
|
||
},
|
||
"type": "array"
|
||
},
|
||
"title": {
|
||
"description": "Search component title",
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": [
|
||
"_slug",
|
||
"id",
|
||
"textFragments"
|
||
],
|
||
"type": "object"
|
||
} |