This commit is contained in:
Your Name committed 2026-10-06 18:13:03 +07:00
1 parent 46968782b6
commit 08045eabff
18 files changed
+943 -104

No files matched your search

+8 -2
View File
@@ -113,6 +113,7 @@ export interface Variant {
option2: string
option3: string
imageUrl?: string | null
colorCode?: string | null
bomItems?: BomItem[]
}
@@ -1026,7 +1027,7 @@ export type QuoteCalloutSectionPayload = z.infer<typeof QuoteCalloutSectionPaylo
export const ProductCarouselSectionPayloadSchema = z.object({
title: LocalizedStringSchema.optional(),
description: LocalizedStringSchema.optional(),
type: z.enum(['featured', 'brand', 'custom']),
type: z.enum(['featured', 'brand', 'custom']).optional().default('featured'),
categoryId: z.number().optional(),
brandId: z.number().optional(),
productIds: z.array(z.number()).optional(),
@@ -1034,6 +1035,11 @@ export const ProductCarouselSectionPayloadSchema = z.object({
showPrice: z.boolean().optional(),
showAddToCart: z.boolean().optional(),
products: z.array(z.any()).optional(),
cardStyle: z.enum(['standard', 'minimal_swatch']).optional().default('standard'),
viewAllText: LocalizedStringSchema.optional(),
viewAllLink: z.string().optional(),
badgeText: LocalizedStringSchema.optional(),
collectionId: z.any().optional(),
}).strict();
export type ProductCarouselSectionPayload = z.infer<typeof ProductCarouselSectionPayloadSchema>;
@@ -1280,7 +1286,7 @@ export const PAGE_SECTION_LOCALIZED_PATHS: Record<SectionType, readonly string[]
ARTICLE_CTA: ['title', 'description', 'primaryText', 'secondaryText'],
SCENT_NOTES_BREAKDOWN: ['title', 'description', 'topNotes', 'heartNotes', 'middleNotes', 'baseNotes'],
QUOTE_CALLOUT: ['quote', 'author', 'role'],
PRODUCT_CAROUSEL: ['title', 'description'],
PRODUCT_CAROUSEL: ['title', 'description', 'viewAllText', 'badgeText'],
ACCORDION: ['title', 'categories[].name', 'categories[].questions[].q', 'categories[].questions[].a'],
CONTACT_INFO: ['title', 'address', 'hours'],
CONTACT_FORM: ['title', 'subtitle'],