Merged in feat/LOY-362-content-block (pull request #2897)

feat(LOY-362): fix content block

* feat(LOY-362): fix content block


Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Matilda Landström
2025-10-02 06:34:46 +00:00
parent 8498026189
commit ea130ffaf8
3 changed files with 15 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ import {
accordionSchema,
} from "../schemas/blocks/accordion"
import {
//contentRefsSchema as blockContentRefsSchema,
contentRefsSchema as blockContentRefsSchema,
contentSchema as blockContentSchema,
} from "../schemas/blocks/content"
import { systemSchema } from "../schemas/system"
@@ -30,7 +30,7 @@ export const promoCampaignPageAccordion = z
export const blocksSchema = z.discriminatedUnion("__typename", [
promoCampaignPageAccordion,
//promoCampaignPageContent,
promoCampaignPageContent,
])
export const CAMPAIGN_TYPES = {
@@ -98,11 +98,11 @@ export const promoCampaignPageSchema = z
})
/** REFS */
/*const promoCampaignPageBlockContentRefs = z
const promoCampaignPageBlockContentRefs = z
.object({
__typename: z.literal(PromoCampaignPageEnum.ContentStack.blocks.Content),
})
.merge(blockContentRefsSchema)*/
.merge(blockContentRefsSchema)
const promoCampaignPageAccordionRefs = z
.object({
@@ -112,7 +112,7 @@ const promoCampaignPageAccordionRefs = z
const promoCampaignPageBlockRefsItem = z.discriminatedUnion("__typename", [
promoCampaignPageAccordionRefs,
//promoCampaignPageBlockContentRefs,
promoCampaignPageBlockContentRefs,
])
export const promoCampaignPageRefsSchema = z.object({