- {next(node.children, embeds, fullRenderOptions)}
-
- )
- },
-
- [RTETypeEnum.embed]: (
- node: RTEDefaultNode,
- embeds: EmbedByUid,
- next: RTENext,
- fullRenderOptions: RenderOptions
- ) => {
- const props = extractPossibleAttributes(node.attrs)
- if (node.attrs.src) {
- props.src = node.attrs.src
- }
- if (node.attrs.url) {
- props.src = node.attrs.url
- }
- if (!props.src) {
- return null
- }
- return (
-
- )
- },
-
- [RTETypeEnum.h1]: (
- node: RTEDefaultNode,
- embeds: EmbedByUid,
- next: RTENext,
- fullRenderOptions: RenderOptions
- ) => {
- const props = extractPossibleAttributes(node.attrs)
- return (
- = { +type Params
= { params: Promise
} @@ -41,15 +41,6 @@ export type UIDParams = { uid: string } -export type UriParams = { - uri: string | string[] -} - -export type PreviewParams = { - uri?: string - live_preview?: string -} - export type LayoutArgs
= P extends undefined ? unknown : Params
diff --git a/apps/scandic-web/types/providers/rates.ts b/apps/scandic-web/types/providers/rates.ts
deleted file mode 100644
index 6e9a27e46..000000000
--- a/apps/scandic-web/types/providers/rates.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import type { SelectRateBooking } from "@scandic-hotels/booking-flow/types/components/selectRate/selectRate"
-import type { AvailabilityError } from "@scandic-hotels/booking-flow/types/stores/rates"
-import type { Room } from "@scandic-hotels/trpc/types/hotel"
-import type { RoomsAvailability } from "@scandic-hotels/trpc/types/roomAvailability"
-
-export interface RatesProviderProps extends React.PropsWithChildren {
- booking: SelectRateBooking
- hotelType: string | undefined
- roomCategories: Room[]
- roomsAvailability: (RoomsAvailability | AvailabilityError)[] | undefined
- vat: number
-}
diff --git a/apps/scandic-web/types/providers/select-rate/room.ts b/apps/scandic-web/types/providers/select-rate/room.ts
deleted file mode 100644
index 32e8ebf91..000000000
--- a/apps/scandic-web/types/providers/select-rate/room.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import type { SelectedRoom } from "@scandic-hotels/booking-flow/types/stores/rates"
-
-export interface RoomProviderProps extends React.PropsWithChildren {
- idx: number
- room: SelectedRoom
-}
diff --git a/apps/scandic-web/types/requests/asides/contact.ts b/apps/scandic-web/types/requests/asides/contact.ts
deleted file mode 100644
index 272763321..000000000
--- a/apps/scandic-web/types/requests/asides/contact.ts
+++ /dev/null
@@ -1,81 +0,0 @@
-import type { Lang } from "@scandic-hotels/common/constants/language"
-import type { EdgesWithTotalCount } from "@scandic-hotels/trpc/types/edges"
-
-import type { Typename } from "../utils/typename"
-
-export enum Section {
- ContactBlockSectionsExtraInfo = "ContactBlockSectionsExtraInfo",
- ContactBlockSectionsMailingAddress = "ContactBlockSectionsMailingAddress",
- ContactBlockSectionsPhone = "ContactBlockSectionsPhone",
- ContactBlockSectionsTitle = "ContactBlockSectionsTitle",
- ContactBlockSectionsVisitingAddress = "ContactBlockSectionsVisitingAddress",
-}
-
-type ExtraInfo = Typename<
- {
- extra_info: {
- text: string[]
- }
- },
- Section.ContactBlockSectionsExtraInfo
->
-
-type MailingAddress = Typename<
- {
- mailing_address: {
- city: string
- country: string
- name: string
- street: string
- zip: string
- }
- },
- Section.ContactBlockSectionsMailingAddress
->
-
-type Phone = Typename<
- {
- phone: {
- number: number
- title: string
- }
- },
- Section.ContactBlockSectionsPhone
->
-
-type Title = Typename<
- {
- title: {
- text: string
- }
- },
- Section.ContactBlockSectionsTitle
->
-
-type VisitingAddress = Typename<
- {
- visiting_address: {
- city: string
- country: string
- street: string
- zip: string
- }
- },
- Section.ContactBlockSectionsVisitingAddress
->
-
-type Sections = ExtraInfo | MailingAddress | Phone | Title | VisitingAddress
-
-export type ContactNode = {
- sections: Sections[]
- system: {
- locale: Lang
- uid: string
- }
-}
-
-export type Contact = {
- contact: {
- contactConnection: EdgesWithTotalCount