From 09895794a997ae1d07726534d43392025ab0ac8d Mon Sep 17 00:00:00 2001 From: sventruschel Date: Tue, 27 Feb 2024 16:33:08 +0100 Subject: [PATCH 1/2] feat: add displayType to wrapper --- src/validations/prefab/component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/validations/prefab/component.ts b/src/validations/prefab/component.ts index 5d57db35..2b040f86 100644 --- a/src/validations/prefab/component.ts +++ b/src/validations/prefab/component.ts @@ -115,6 +115,7 @@ const wrapperSchema = ( options: Joi.array() .items(linkedOptionSchema, linkedPartialSchema) .required(), + displayType: Joi.string().valid('inline-block', 'block').optional(), descendants: Joi.array() .items( Joi.custom(validateComponent(styles, componentStyleMap, prefabType)), From 08cc53c48c1b6ba9ddf626095844015f66b2ac42 Mon Sep 17 00:00:00 2001 From: sventruschel Date: Thu, 29 Feb 2024 14:32:03 +0100 Subject: [PATCH 2/2] fix: add inline --- src/validations/prefab/component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/validations/prefab/component.ts b/src/validations/prefab/component.ts index 2b040f86..74118313 100644 --- a/src/validations/prefab/component.ts +++ b/src/validations/prefab/component.ts @@ -115,7 +115,9 @@ const wrapperSchema = ( options: Joi.array() .items(linkedOptionSchema, linkedPartialSchema) .required(), - displayType: Joi.string().valid('inline-block', 'block').optional(), + displayType: Joi.string() + .valid('inline-block', 'block', 'inline') + .optional(), descendants: Joi.array() .items( Joi.custom(validateComponent(styles, componentStyleMap, prefabType)),