From 9c8467e6132533b903e1c6c0669122276973df36 Mon Sep 17 00:00:00 2001 From: VitaliiDC8 <127111625+VitaliiDC8@users.noreply.github.com> Date: Mon, 4 Dec 2023 16:56:22 +0100 Subject: [PATCH] fix: added missed colSizes. description to Icons and Companies blocks schema (#737) * fix: added missed colSizes to Icons block schema * fix: added missed description to Companies block schema * fix: added missed description to Icons block schema --- src/blocks/Companies/schema.ts | 4 ++++ src/blocks/Icons/schema.ts | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/blocks/Companies/schema.ts b/src/blocks/Companies/schema.ts index f6b24c2cf..23f48eb43 100644 --- a/src/blocks/Companies/schema.ts +++ b/src/blocks/Companies/schema.ts @@ -11,6 +11,10 @@ export const CompaniesBlock = { type: 'string', contentType: 'text', }, + description: { + type: 'string', + contentType: 'text', + }, images: withTheme({ type: 'object', required: ['desktop', 'tablet', 'mobile'], diff --git a/src/blocks/Icons/schema.ts b/src/blocks/Icons/schema.ts index b6496f6f8..a1a0ddfbe 100644 --- a/src/blocks/Icons/schema.ts +++ b/src/blocks/Icons/schema.ts @@ -1,4 +1,8 @@ -import {AnimatableProps, BlockBaseProps} from '../../schema/validators/common'; +import { + AnimatableProps, + BlockBaseProps, + containerSizesObject, +} from '../../schema/validators/common'; import {AnalyticsEventSchema} from '../../schema/validators/event'; export const IconsProps = { @@ -11,11 +15,16 @@ export const IconsProps = { type: 'string', contentType: 'text', }, + description: { + type: 'string', + contentType: 'text', + }, size: { type: 'string', enum: ['s', 'm', 'l'], default: 's', }, + colSizes: containerSizesObject, items: { type: 'array', items: {