From cc591c671bddd36de814264cf73671fde101bde4 Mon Sep 17 00:00:00 2001 From: GalT <39020298+tatarco@users.noreply.github.com> Date: Sun, 27 Oct 2024 19:33:16 +0100 Subject: [PATCH] feat(api): cleaned up code and added back the validation with render reuse --- .../shared/src/dto/step-schemas/control-schemas.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/shared/src/dto/step-schemas/control-schemas.ts b/packages/shared/src/dto/step-schemas/control-schemas.ts index dc95c37a747..49f7fa99269 100644 --- a/packages/shared/src/dto/step-schemas/control-schemas.ts +++ b/packages/shared/src/dto/step-schemas/control-schemas.ts @@ -3,12 +3,16 @@ import { JSONSchemaDto } from './json-schema-dto'; export interface TipTapNode { type?: string; + attrs?: Record; content?: TipTapNode[]; - marks?: unknown; + marks?: { + type: string; + attrs?: Record; + [key: string]: any; + }[]; text?: string; - attrs?: Record; + [key: string]: any; } - export interface EmailStepControlSchemaDto { emailEditor: string; subject: string;