diff --git a/packages/wp-types/index.ts b/packages/wp-types/index.ts index a990367..f4ee23a 100644 --- a/packages/wp-types/index.ts +++ b/packages/wp-types/index.ts @@ -246,6 +246,10 @@ export interface WP_Block_Type { * Alternative block styles. */ styles: unknown[]; + /** + * Block variations. + */ + variations?: unknown[]; /** * Supported features. */ @@ -290,11 +294,12 @@ export interface WP_Block_Type { /** * Block type editor style handle. */ - editor_style: string | null; + editor_style: string | null | false; /** * Block type front end style handle. */ - style: string | null; + style: string | null | false; + skip_inner_blocks?: boolean; } /** * Core class used to organize comments as instantiated objects with defined members. diff --git a/schemas/block-type.json b/schemas/block-type.json index 1e7fc17..405c7d7 100644 --- a/schemas/block-type.json +++ b/schemas/block-type.json @@ -85,6 +85,10 @@ "description": "Alternative block styles.", "type": "array" }, + "variations": { + "description": "Block variations.", + "type": "array" + }, "supports": { "description": "Supported features.", "anyOf": [ @@ -168,17 +172,38 @@ }, "editor_style": { "description": "Block type editor style handle.", - "type": [ - "string", - "null" + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + }, + { + "enum": [ + false + ] + } ] }, "style": { "description": "Block type front end style handle.", - "type": [ - "string", - "null" + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + }, + { + "enum": [ + false + ] + } ] + }, + "skip_inner_blocks": { + "type": "boolean" } }, "additionalProperties": false