This commit is contained in:
Your Name committed 2026-07-24 21:45:44 -04:00
1 parent f8da2cceaf
commit 63bc3bfb1a
6 files changed
+658 -2

No files matched your search

+37
View File
@@ -758,6 +758,43 @@ export const PAGE_SECTION_TYPES = [
] as const;
export type SectionType = typeof PAGE_SECTION_TYPES[number];
export const PAGE_SECTION_LOCALIZED_PATHS: Record<SectionType, readonly string[]> = {
HERO: ['tagline', 'title', 'description', 'buttonText'],
ANNOUNCEMENT_BAR: ['slides[]'],
NEWSLETTER: ['title', 'description', 'buttonText', 'placeholderText', 'privacyText'],
EDITORIAL_TILE: ['title', 'description', 'buttonText'],
EDITORIAL_CAROUSEL: ['title', 'slides[].category', 'slides[].title', 'slides[].description', 'slides[].buttonText'],
PRODUCTS: ['title', 'subtitle'],
CATEGORIES: ['title', 'subtitle'],
TEXT: ['title', 'content'],
BANNER: ['title', 'description', 'buttonText'],
HERO_ARTICLE: ['title', 'subtitle', 'author', 'category'],
RICH_TEXT: ['title', 'content'],
ARTICLE_HEADER: ['title', 'subtitle', 'category', 'author', 'imageAlt'],
ARTICLE_MEDIA: ['heading', 'body', 'imageAlt', 'imageCaption'],
ARTICLE_GALLERY: ['title', 'images[].alt', 'images[].caption'],
ARTICLE_FACTS: ['title', 'items[].title', 'items[].description'],
ARTICLE_VIDEO: ['title', 'caption'],
ARTICLE_REFERENCES: ['title', 'items[].title', 'items[].note'],
ARTICLE_TABLE: ['title', 'columns[]', 'rows[].label', 'rows[].cells[]', 'note'],
ARTICLE_DOWNLOAD: ['title', 'description', 'files[].title'],
ARTICLE_CTA: ['title', 'description', 'primaryText', 'secondaryText'],
SCENT_NOTES_BREAKDOWN: ['title', 'description', 'topNotes', 'heartNotes', 'middleNotes', 'baseNotes'],
QUOTE_CALLOUT: ['quote', 'author', 'role'],
PRODUCT_CAROUSEL: ['title', 'description'],
ACCORDION: ['title', 'categories[].name', 'categories[].questions[].q', 'categories[].questions[].a'],
CONTACT_INFO: ['title', 'address', 'hours'],
CONTACT_FORM: ['title', 'subtitle'],
HERO_V2: ['tagline', 'title', 'description', 'primaryButtonText', 'secondaryButtonText'],
USP_BAR: ['items[].title', 'items[].subtitle'],
PRODUCT_MAIN: ['title', 'subtitle'],
PRODUCT_DETAILS: ['title', 'subtitle'],
PRODUCT_SPECS: ['title', 'subtitle'],
PRODUCT_REVIEWS: ['title', 'subtitle'],
RELATED_PRODUCTS: ['title', 'subtitle'],
CUSTOM: [],
};
export const PAGE_SECTION_PAYLOAD_SCHEMAS: Record<SectionType, z.ZodType> = {
HERO: HeroSectionPayloadSchema,
ANNOUNCEMENT_BAR: AnnouncementBarSectionPayloadSchema,