Merged in feat/SW-1584-destination-content-blocks (pull request #1278)

Feat/SW-1584 destination content blocks

* feat(SW-1584): Added accordion and content blocks to destination city pages

* feat(SW-1584): Added accordion and content blocks to destination country pages


Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-02-10 09:28:32 +00:00
parent 918887a63f
commit eb0b88f8ea
18 changed files with 546 additions and 33 deletions

View File

@@ -1,6 +1,8 @@
import type { Block as AccountPageBlock } from "@/types/trpc/routers/contentstack/accountPage"
import type { Block as CollectionPageBlock } from "@/types/trpc/routers/contentstack/collectionPage"
import type { Block as ContentPageBlock } from "@/types/trpc/routers/contentstack/contentPage"
import type { Block as DestinationCityPageBlock } from "@/types/trpc/routers/contentstack/destinationCityPage"
import type { Block as DestinationCountryPageBlock } from "@/types/trpc/routers/contentstack/destinationCountryPage"
import type { Block as LoyaltyPageBlock } from "@/types/trpc/routers/contentstack/loyaltyPage"
import type { Block as StartPageBlock } from "@/types/trpc/routers/contentstack/startPage"
@@ -8,6 +10,8 @@ export type Blocks =
| AccountPageBlock
| CollectionPageBlock
| ContentPageBlock
| DestinationCityPageBlock
| DestinationCountryPageBlock
| LoyaltyPageBlock
| StartPageBlock

View File

@@ -0,0 +1,8 @@
export namespace DestinationCityPageEnum {
export namespace ContentStack {
export const enum blocks {
Accordion = "DestinationCityPageBlocksAccordion",
Content = "DestinationCityPageBlocksContent",
}
}
}

View File

@@ -0,0 +1,8 @@
export namespace DestinationCountryPageEnum {
export namespace ContentStack {
export const enum blocks {
Accordion = "DestinationCountryPageBlocksAccordion",
Content = "DestinationCountryPageBlocksContent",
}
}
}

View File

@@ -1,6 +1,7 @@
import type { z } from "zod"
import type {
blocksSchema,
destinationCityListDataSchema,
destinationCityPageRefsSchema,
destinationCityPageSchema,
@@ -21,6 +22,7 @@ export interface DestinationCityListData
export interface DestinationCityListItem extends DestinationCityListData {
cityName: string
}
export type Block = z.output<typeof blocksSchema>
export interface GetDestinationCityPageRefsSchema
extends z.input<typeof destinationCityPageRefsSchema> {}

View File

@@ -1,6 +1,7 @@
import type { z } from "zod"
import type {
blocksSchema,
destinationCountryPageRefsSchema,
destinationCountryPageSchema,
} from "@/server/routers/contentstack/destinationCountryPage/output"
@@ -11,6 +12,7 @@ interface DestinationCountryPage
extends z.output<typeof destinationCountryPageSchema> {}
export type DestinationCountryPageData =
DestinationCountryPage["destinationCountryPage"]
export type Block = z.output<typeof blocksSchema>
export interface GetDestinationCountryPageRefsSchema
extends z.input<typeof destinationCountryPageRefsSchema> {}