fix: zod updation
This commit is contained in:
@@ -6,7 +6,7 @@ const blockContentSchema = z.discriminatedUnion("type", [
|
|||||||
z.object({ type: z.literal("QUOTE"), text: z.string(), author: z.string().optional() }),
|
z.object({ type: z.literal("QUOTE"), text: z.string(), author: z.string().optional() }),
|
||||||
z.object({ type: z.literal("DIVIDER") }),
|
z.object({ type: z.literal("DIVIDER") }),
|
||||||
z.object({ type: z.literal("CALLOUT"), title: z.string(), text: z.string() }),
|
z.object({ type: z.literal("CALLOUT"), title: z.string(), text: z.string() }),
|
||||||
z.object({ type: z.literal("IMAGE"), url: z.string(), caption: z.string().optional(), width: z.number().min(1).max(100).optional() }),
|
z.object({ type: z.literal("IMAGE"), url: z.string(), caption: z.string().optional(), width: z.number().min(150).max(800).optional() }),
|
||||||
z.object({ type: z.literal("LIST"), style: z.enum(["BULLET", "ORDERED"]), items: z.array(z.string()) }),
|
z.object({ type: z.literal("LIST"), style: z.enum(["BULLET", "ORDERED"]), items: z.array(z.string()) }),
|
||||||
z.object({ type: z.literal("TABLE"), headers: z.array(z.string()), rows: z.array(z.array(z.string())) }),
|
z.object({ type: z.literal("TABLE"), headers: z.array(z.string()), rows: z.array(z.array(z.string())) }),
|
||||||
z.object({ type: z.literal("LINK"), label: z.string(), href: z.string() }),
|
z.object({ type: z.literal("LINK"), label: z.string(), href: z.string() }),
|
||||||
|
|||||||
Reference in New Issue
Block a user