x
This commit is contained in:
1 parent
2729f88f45
commit
406cad801b
9 files changed
+1103
-6
No files matched your search
@@ -155,11 +155,11 @@ const PAGE_BLOCK_METADATA: Record<string, BlockMetadata> = {
|
||||
EDITORIAL_TILE: {
|
||||
type: "EDITORIAL_TILE",
|
||||
requiredFields: ["title", "description", "imageUrl", "imagePosition"],
|
||||
optionalFields: ["buttonText", "buttonLink", "backgroundColor", "textColor"],
|
||||
renderedFields: ["title", "description", "imageUrl", "imagePosition", "buttonText", "buttonLink", "backgroundColor", "textColor"],
|
||||
optionalFields: ["buttonText", "buttonLink", "backgroundColor", "textColor", "imageAspectRatio"],
|
||||
renderedFields: ["title", "description", "imageUrl", "imagePosition", "imageAspectRatio", "buttonText", "buttonLink", "backgroundColor", "textColor"],
|
||||
storedOnlyFields: [],
|
||||
discoveryToolsNeeded: [],
|
||||
warnings: ["imagePosition must be left or right."],
|
||||
warnings: ["imagePosition must be left or right.", "imageAspectRatio can be square, portrait, tall, or auto."],
|
||||
minimalPayload: {
|
||||
title: localizedObjectExample,
|
||||
description: localizedObjectExample,
|
||||
@@ -970,6 +970,7 @@ const SECTION_TOOL_CONFIGS = [
|
||||
sectionId: { type: "number", description: "The numeric ID of the section to update" },
|
||||
imageUrl: { type: "string", description: "Plain string main image URL" },
|
||||
imagePosition: { type: "string", description: "Plain string image position ('left' or 'right')" },
|
||||
imageAspectRatio: { type: "string", description: "Plain string image aspect ratio ('square', 'portrait', 'tall', or 'auto')" },
|
||||
title: { ...localizedStringSchema, description: `Localized title, for example ${localizedStringExample}` },
|
||||
description: { ...localizedStringSchema, description: `Localized description, for example ${localizedStringExample}` },
|
||||
buttonText: { ...localizedStringSchema, description: `Localized button text, for example ${localizedStringExample}` },
|
||||
|
||||
Reference in new issue
Block a user