feat(SW-2973): Added bookingCode if available to links inside campaign pages
* feat(SW-2973): Moved block types to trpc lib Approved-by: Matilda Landström
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
import type { CardGallery } from "@/types/trpc/routers/contentstack/blocks"
|
||||
import type { CardGallery } from "@scandic-hotels/trpc/types/blocks"
|
||||
|
||||
export interface CardGalleryProps extends Pick<CardGallery, "card_gallery"> {}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import type { CardsGrid } from "@/types/trpc/routers/contentstack/blocks"
|
||||
import type { CardsGrid } from "@scandic-hotels/trpc/types/blocks"
|
||||
|
||||
export interface CardsGridProps extends Pick<CardsGrid, "cards_grid"> {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { CarouselCards } from "@/types/trpc/routers/contentstack/blocks"
|
||||
import type { CarouselCards } from "@scandic-hotels/trpc/types/blocks"
|
||||
|
||||
export interface CarouselCardsProps
|
||||
extends Pick<CarouselCards, "carousel_cards"> {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { DynamicContent } from "@/types/trpc/routers/contentstack/blocks"
|
||||
import type { DynamicContent } from "@scandic-hotels/trpc/types/blocks"
|
||||
|
||||
interface PartialDynamicContent
|
||||
extends Pick<DynamicContent, "dynamic_content"> {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { HotelListing } from "@/types/trpc/routers/contentstack/blocks"
|
||||
import type { HotelListing } from "@scandic-hotels/trpc/types/blocks"
|
||||
|
||||
export interface HotelListingProps {
|
||||
heading?: string
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Shortcut } from "@/types/trpc/routers/contentstack/blocks"
|
||||
import type { Shortcut } from "@scandic-hotels/trpc/types/blocks"
|
||||
|
||||
export interface ShortcutsListProps extends Shortcut {}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TableData } from "@/types/trpc/routers/contentstack/blocks"
|
||||
import type { TableData } from "@scandic-hotels/trpc/types/blocks"
|
||||
|
||||
export interface TableBlockProps {
|
||||
data: TableData
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import type { TextCols } from "@/types/trpc/routers/contentstack/blocks"
|
||||
import type { TextCols } from "@scandic-hotels/trpc/types/blocks"
|
||||
|
||||
export interface TextColProps extends Pick<TextCols, "text_cols"> {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { UspGrid } from "@/types/trpc/routers/contentstack/blocks"
|
||||
import type { UspGrid } from "@scandic-hotels/trpc/types/blocks"
|
||||
|
||||
export interface UspGridProps extends Pick<UspGrid, "usp_grid"> {}
|
||||
export type UspIcon = UspGrid["usp_grid"]["usp_card"][number]["icon"]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { HotelListingHotelData } from "@scandic-hotels/trpc/types/hotel"
|
||||
import { type HotelListingHotelData } from "@scandic-hotels/trpc/types/hotel"
|
||||
|
||||
import type { HotelListing } from "@/types/trpc/routers/contentstack/blocks"
|
||||
import type { HotelListing } from "@scandic-hotels/trpc/types/blocks"
|
||||
|
||||
export interface HotelListingItemProps {
|
||||
hotelData: HotelListingHotelData
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import type { blocksSchema } from "@scandic-hotels/trpc/routers/contentstack/accountPage/output"
|
||||
import type { DynamicContent } from "@scandic-hotels/trpc/types/blocks"
|
||||
import type { Reward } from "@scandic-hotels/trpc/types/rewards"
|
||||
import type { Dispatch, SetStateAction } from "react"
|
||||
import type { z } from "zod"
|
||||
|
||||
import type { DynamicContent } from "@/types/trpc/routers/contentstack/blocks"
|
||||
|
||||
export interface AccountPageContentProps
|
||||
extends Pick<DynamicContent, "dynamic_content"> {}
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { TeaserCard } from "@scandic-hotels/trpc/types/blocks"
|
||||
import type { ImageVaultAsset } from "@scandic-hotels/trpc/types/imageVault"
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
|
||||
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
|
||||
import type { teaserCardVariants } from "@/components/TempDesignSystem/TeaserCard/variants"
|
||||
import type { TeaserCard } from "../trpc/routers/contentstack/blocks"
|
||||
|
||||
interface SidePeekButton {
|
||||
call_to_action_text: string
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
import type { cardGallerySchema } from "@scandic-hotels/trpc/routers/contentstack/schemas/blocks/cardGallery"
|
||||
import type { teaserCardBlockSchema } from "@scandic-hotels/trpc/routers/contentstack/schemas/blocks/cards/teaserCard"
|
||||
import type { cardsGridSchema } from "@scandic-hotels/trpc/routers/contentstack/schemas/blocks/cardsGrid"
|
||||
import type { carouselCardsSchema } from "@scandic-hotels/trpc/routers/contentstack/schemas/blocks/carouselCards"
|
||||
import type { contentSchema } from "@scandic-hotels/trpc/routers/contentstack/schemas/blocks/content"
|
||||
import type { dynamicContentSchema } from "@scandic-hotels/trpc/routers/contentstack/schemas/blocks/dynamicContent"
|
||||
import type { contentPageHotelListingSchema } from "@scandic-hotels/trpc/routers/contentstack/schemas/blocks/hotelListing"
|
||||
import type { shortcutsSchema } from "@scandic-hotels/trpc/routers/contentstack/schemas/blocks/shortcuts"
|
||||
import type { tableSchema } from "@scandic-hotels/trpc/routers/contentstack/schemas/blocks/table"
|
||||
import type { textColsSchema } from "@scandic-hotels/trpc/routers/contentstack/schemas/blocks/textCols"
|
||||
import type { uspGridSchema } from "@scandic-hotels/trpc/routers/contentstack/schemas/blocks/uspGrid"
|
||||
import type { z } from "zod"
|
||||
|
||||
export interface TeaserCard extends z.output<typeof teaserCardBlockSchema> {}
|
||||
export interface CardsGrid extends z.output<typeof cardsGridSchema> {}
|
||||
export interface Content extends z.output<typeof contentSchema> {}
|
||||
export interface DynamicContent extends z.output<typeof dynamicContentSchema> {}
|
||||
export interface Shortcuts extends z.output<typeof shortcutsSchema> {}
|
||||
export type Shortcut = Shortcuts["shortcuts"]
|
||||
export interface TableBlock extends z.output<typeof tableSchema> {}
|
||||
export type TableData = TableBlock["table"]
|
||||
export interface TextCols extends z.output<typeof textColsSchema> {}
|
||||
export interface UspGrid extends z.output<typeof uspGridSchema> {}
|
||||
interface GetHotelListing
|
||||
extends z.output<typeof contentPageHotelListingSchema> {}
|
||||
export type HotelListing = GetHotelListing["hotel_listing"]
|
||||
export interface CarouselCards extends z.output<typeof carouselCardsSchema> {}
|
||||
export interface CardGallery extends z.output<typeof cardGallerySchema> {}
|
||||
Reference in New Issue
Block a user