@arcteryx/sanity-content
Advanced tools
Comparing version 1.53.0 to 1.54.0
@@ -17,2 +17,7 @@ import { z } from 'zod'; | ||
}); | ||
const contentBlockGridSchema = z.object({ | ||
type: z.literal('contentBlockGrid'), | ||
backgroundImage: imageSchema, | ||
elements: z.array(contentBlockItems), | ||
}); | ||
export const homeSectionSchema = z.object({ | ||
@@ -22,3 +27,4 @@ sectionType: z.enum(['hero', 'secondary', 'tertiary']), | ||
key: z.string(), | ||
contentBlocks: z.array(contentBlockFlexSchema), | ||
contentBlocks: z.array(z.union([contentBlockFlexSchema, | ||
contentBlockGridSchema])), | ||
}); | ||
@@ -25,0 +31,0 @@ export const homeSectionQuery = groq ` |
@@ -13,4 +13,4 @@ export { fetchPage } from "./documents/page"; | ||
export { type ImageSchema } from './fragments/image'; | ||
export { type ContentBlockFlexSchema, type HomeSectionSchema } from "./fragments/home/homeSection"; | ||
export { type ContentBlockGridSchema, type ContentBlockFlexSchema, type HomeSectionSchema } from "./fragments/home/homeSection"; | ||
export { siteSettingsDocumentQuery, siteSettingsSchema, SiteSettingsParams, siteSettingsQueryParams } from "./fragments/siteSettings"; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@arcteryx/sanity-content", | ||
"version": "1.53.0", | ||
"version": "1.54.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5376321
126244