Skip to content

Commit 7171df4

Browse files
authored
fix: added indent field to block base schema (#738)
* fix: added indent field to block base schema * fix: change 0 to '0' in dividerEnum
1 parent 2b05933 commit 7171df4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/schema/validators/common.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const playIconThemes = ['blue', 'grey'];
2323
export const videoControlsTypes = [MediaVideoControlsType.Default, MediaVideoControlsType.Custom];
2424
export const fileLinkTypes = ['vertical', 'horizontal'];
2525

26-
export const dividerEnum = {enum: [0, 'xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl', 'xxxl']};
26+
export const dividerEnum = {enum: ['0', 'xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl', 'xxxl']};
2727
export const sizeNumber = {type: 'number', maximum: 12, minimum: 1};
2828
export const contentThemes = ['default', 'dark', 'light'];
2929
export const quoteTypes = Object.values(QuoteType);
@@ -529,6 +529,14 @@ export const BlockBaseProps = {
529529
context: {
530530
type: 'string',
531531
},
532+
indent: {
533+
type: 'object',
534+
additionalProperties: false,
535+
properties: {
536+
top: dividerEnum,
537+
bottom: dividerEnum,
538+
},
539+
},
532540
};
533541

534542
export const TitleProps = {

0 commit comments

Comments
 (0)