feat(SW-216): Added heading and preamble text to table block

This commit is contained in:
Erik Tiekstra
2024-10-08 11:06:33 +02:00
parent bc43f79c24
commit 4b9a6d2e8e
5 changed files with 67 additions and 50 deletions

View File

@@ -9,6 +9,8 @@ export const tableSchema = z.object({
.default(BlocksEnums.block.Table),
table: z
.object({
heading: z.string().optional(),
preamble: z.string().optional().default(""),
column_widths: z.array(z.number()),
table: z.object({
tableState: z.object({
@@ -46,6 +48,8 @@ export const tableSchema = z.object({
)
return {
heading: data.heading,
preamble: data.preamble,
columns,
rows,
totalWidth,