feat(SW-216): Added heading and preamble text to table block
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user