From 7171df4b329449525edda206eab15c75139d7aec Mon Sep 17 00:00:00 2001 From: VitaliiDC8 <127111625+VitaliiDC8@users.noreply.github.com> Date: Mon, 4 Dec 2023 12:48:27 +0100 Subject: [PATCH] fix: added indent field to block base schema (#738) * fix: added indent field to block base schema * fix: change 0 to '0' in dividerEnum --- src/schema/validators/common.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/schema/validators/common.ts b/src/schema/validators/common.ts index 7da3ad633..6ca975270 100644 --- a/src/schema/validators/common.ts +++ b/src/schema/validators/common.ts @@ -23,7 +23,7 @@ export const playIconThemes = ['blue', 'grey']; export const videoControlsTypes = [MediaVideoControlsType.Default, MediaVideoControlsType.Custom]; export const fileLinkTypes = ['vertical', 'horizontal']; -export const dividerEnum = {enum: [0, 'xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl', 'xxxl']}; +export const dividerEnum = {enum: ['0', 'xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl', 'xxxl']}; export const sizeNumber = {type: 'number', maximum: 12, minimum: 1}; export const contentThemes = ['default', 'dark', 'light']; export const quoteTypes = Object.values(QuoteType); @@ -529,6 +529,14 @@ export const BlockBaseProps = { context: { type: 'string', }, + indent: { + type: 'object', + additionalProperties: false, + properties: { + top: dividerEnum, + bottom: dividerEnum, + }, + }, }; export const TitleProps = {