Merge branch 'develop' into feature/tracking

This commit is contained in:
Linus Flood
2024-10-15 07:46:54 +02:00
209 changed files with 4413 additions and 1046 deletions

View File

@@ -18,3 +18,7 @@ export interface LoyaltyLevelsProps extends PartialDynamicContent {
export interface OverviewTableProps extends PartialDynamicContent {
firstItem: boolean
}
export interface SignupFormWrapperProps extends PartialDynamicContent {}
export interface SignUpVerificationProps extends PartialDynamicContent {}

View File

@@ -0,0 +1,10 @@
import type { Shortcut } from "@/types/trpc/routers/contentstack/blocks"
export interface ShortcutsListProps extends Shortcut {
firstItem?: boolean
}
export type ShortcutsListItemsProps = {
className?: string
shortcutsListItems: ShortcutsListProps["shortcuts"]
}

View File

@@ -2,10 +2,10 @@ import { z } from "zod"
import { detailsSchema } from "@/components/HotelReservation/EnterDetails/Details/schema"
import { User } from "@/types/user"
import type { SafeUser } from "@/types/user"
export interface DetailsSchema extends z.output<typeof detailsSchema> {}
export interface DetailsProps {
user: User | null
user: SafeUser
}

View File

@@ -0,0 +1,6 @@
export enum StepEnum {
selectBed = "select-bed",
breakfast = "breakfast",
details = "details",
payment = "payment",
}

View File

@@ -0,0 +1,3 @@
import { passwordValidators } from "@/utils/passwordValidator"
export type PasswordValidatorKey = keyof typeof passwordValidators

View File

@@ -0,0 +1,5 @@
export type RegisterFormProps = {
link?: { href: string; text: string }
subtitle?: string
title: string
}

View File

@@ -2,7 +2,7 @@ import type { RoomData } from "@/types/hotel"
export interface RoomCardProps {
id: string
images: RoomData["attributes"]["content"]["images"]
images: RoomData["images"]
title: string
subtitle: string
badgeTextTransKey: string | null

View File

@@ -1,13 +1,15 @@
export enum HotelHashValues { // Should these be translated?
overview = "#overview",
rooms = "#rooms-section",
restaurant = "#restaurant-and-bar",
meetings = "#meetings-and-conferences",
wellness = "#wellness-and-exercise",
activities = "#activities",
faq = "#faq",
export enum HotelHashValues {
overview = "overview",
rooms = "rooms-section",
restaurant = "restaurant-and-bar",
meetings = "meetings-and-conferences",
wellness = "wellness-and-exercise",
activities = "activities",
faq = "faq",
}
export type TabNavigationProps = {
restaurantTitle: string
hasActivities: boolean
hasFAQ: boolean
}

View File

@@ -1,8 +1,18 @@
import { Product, RateDefinition } from "@/server/routers/hotels/output"
import { z } from "zod"
import { Product, productTypePriceSchema } from "@/server/routers/hotels/output"
type ProductPrice = z.output<typeof productTypePriceSchema>
export type FlexibilityOptionProps = {
product: Product | undefined
name: string
value: string
paymentTerm: string
priceInformation?: Array<string>
}
export interface PriceListProps {
publicPrice?: ProductPrice | Record<string, never>
memberPrice?: ProductPrice | Record<string, never>
}

View File

@@ -0,0 +1,5 @@
import type { PopoverProps } from "react-aria-components"
export interface PricePopoverProps extends Omit<PopoverProps, "children"> {
children: React.ReactNode
}

View File

@@ -3,7 +3,10 @@ import {
RoomConfiguration,
} from "@/server/routers/hotels/output"
import { RoomData } from "@/types/hotel"
export type RoomCardProps = {
roomConfiguration: RoomConfiguration
rateDefinitions: RateDefinition[]
roomCategories: RoomData[]
}

View File

@@ -1,5 +1,8 @@
import { RoomsAvailability } from "@/server/routers/hotels/output"
import { RoomData } from "@/types/hotel"
export interface RoomSelectionProps {
roomConfigurations: RoomsAvailability
roomCategories: RoomData[]
}

View File

@@ -1,7 +1,7 @@
import { StepEnum } from "../../enterDetails/step"
export interface SectionAccordionProps {
header: string
isOpen: boolean
isCompleted: boolean
label: string
path: string
step: StepEnum
}

View File

@@ -32,8 +32,11 @@ export enum IconName {
DoorOpen = "DoorOpen",
ElectricBike = "ElectricBike",
Email = "Email",
EyeHide = "EyeHide",
EyeShow = "EyeShow",
Facebook = "Facebook",
Fitness = "Fitness",
Gallery = "Gallery",
Gift = "Gift",
Globe = "Globe",
House = "House",

View File

@@ -1,5 +0,0 @@
import type { Shortcut } from "@/types/trpc/routers/contentstack/blocks"
export interface ShortcutsProps extends Shortcut {
firstItem?: boolean
}

View File

@@ -2,11 +2,12 @@ import { VariantProps } from "class-variance-authority"
import { teaserCardVariants } from "@/components/TempDesignSystem/TeaserCard/variants"
import { ImageVaultAsset } from "@/types/components/imageVault"
import type { ImageVaultAsset } from "@/types/components/imageVault"
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
import type { TeaserCard } from "../trpc/routers/contentstack/blocks"
interface SidePeekButton {
title: string
call_to_action_text: string
}
export interface TeaserCardProps
@@ -16,6 +17,12 @@ export interface TeaserCardProps
primaryButton?: CardProps["primaryButton"]
secondaryButton?: CardProps["secondaryButton"]
sidePeekButton?: SidePeekButton
sidePeekContent?: TeaserCard["sidepeek_content"]
image?: ImageVaultAsset
className?: string
}
export interface TeaserCardSidepeekProps {
button: SidePeekButton
sidePeekContent: NonNullable<TeaserCard["sidepeek_content"]>
}

View File

@@ -91,11 +91,6 @@ export type TrackingSDKData = TrackingSDKPageData & {
pathName: string
}
export type TrackingPosition =
| "top menu"
| "hamburger menu"
| "join scandic friends sidebar"
// Old tracking setup types:
// TODO: Remove this when we delete "current site"
export type TrackingProps = {
@@ -126,3 +121,9 @@ export type SiteSectionObject = {
sitesection5: string
sitesection6: string
}
export type TrackingPosition =
| "top menu"
| "hamburger menu"
| "join scandic friends sidebar"
| "sign up verification"