feat(BOOK-735): Removed video block from start page and collection page

Approved-by: Bianca Widstam
This commit is contained in:
Erik Tiekstra
2026-01-13 07:22:53 +00:00
parent 8befbf405a
commit 632a84c042
9 changed files with 0 additions and 108 deletions

View File

@@ -19,7 +19,6 @@ import {
joinScandicFriendsBlockRefsSchema,
joinScandicFriendsBlockSchema,
} from "../schemas/blocks/joinScandicFriends"
import { videoBlockRefsSchema, videoBlockSchema } from "../schemas/blocks/video"
import {
videoCardRefsSchema,
videoCardSchema,
@@ -57,19 +56,12 @@ const startPageVideoCard = z
})
.merge(videoCardSchema)
const startPageVideo = z
.object({
__typename: z.literal(StartPageEnum.ContentStack.blocks.Video),
})
.merge(videoBlockSchema)
export const blocksSchema = z.discriminatedUnion("__typename", [
startPageCards,
startPageFullWidthCampaign,
startPageCarouselCards,
startPageJoinScandicFriends,
startPageVideoCard,
startPageVideo,
])
export const startPageSchema = z.object({
@@ -125,19 +117,12 @@ const startPageVideoCardRef = z
})
.merge(videoCardRefsSchema)
const startPageVideoRef = z
.object({
__typename: z.literal(StartPageEnum.ContentStack.blocks.Video),
})
.merge(videoBlockRefsSchema)
const startPageBlockRefsItem = z.discriminatedUnion("__typename", [
startPageCardsRefs,
startPageFullWidthCampaignRef,
startPageCarouselCardsRef,
startPageJoinScandicFriendsRef,
startPageVideoCardRef,
startPageVideoRef,
])
export const startPageRefsSchema = z.object({