Merged in chore/sw-3474-remove-unused-booking-flow-exports (pull request #2858)

chore: (SW-3474): Remove unused exports from booking-flow

* Remove unused exports from booking-flow


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-09-24 07:48:24 +00:00
parent da55e37489
commit 490013be62
10 changed files with 16 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
import { BookingWidgetSkeleton } from "@scandic-hotels/booking-flow/BookingWidget/Skeleton"
import { BookingWidgetSkeleton } from "@scandic-hotels/booking-flow/BookingWidget"
// This file is crucial for displaying a loading
// state immediately in the booking flow.

View File

@@ -1,5 +1,5 @@
import { SelectHotelSkeleton } from "@scandic-hotels/booking-flow/components/SelectHotel"
import { AlternativeHotelsPageSkeleton } from "@scandic-hotels/booking-flow/pages/AlternativeHotelsPage"
export default function AlternativeHotelsLoading() {
return <SelectHotelSkeleton />
return <AlternativeHotelsPageSkeleton />
}

View File

@@ -1,5 +1,5 @@
import { SelectHotelSkeleton } from "@scandic-hotels/booking-flow/components/SelectHotel"
import { SelectHotelPageSkeleton } from "@scandic-hotels/booking-flow/pages/SelectHotelPage"
export default function SelectHotelLoading() {
return <SelectHotelSkeleton />
return <SelectHotelPageSkeleton />
}

View File

@@ -1,5 +1,5 @@
import { SelectRateSkeleton } from "@scandic-hotels/booking-flow/components/SelectRate"
import { SelectRatePageSkeleton } from "@scandic-hotels/booking-flow/pages/SelectRatePage"
export default function LoadingSelectRate() {
return <SelectRateSkeleton />
return <SelectRatePageSkeleton />
}

View File

@@ -1,4 +1,4 @@
import { BookingWidgetSkeleton } from "@scandic-hotels/booking-flow/BookingWidget/Skeleton"
import { BookingWidgetSkeleton } from "@scandic-hotels/booking-flow/BookingWidget"
// This file is crucial for displaying a loading
// state immediately in the booking flow.

View File

@@ -14,6 +14,8 @@ import type { VariantProps } from "class-variance-authority"
import type { BookingSearchType } from "../../misc/searchType"
import type { bookingWidgetVariants } from "./BookingWidgetForm/variants"
export { BookingWidgetSkeleton } from "./Skeleton"
export type GuestsRoom = {
adults: number
childrenInRoom: Child[]

View File

@@ -18,6 +18,8 @@ import type { Lang } from "@scandic-hotels/common/constants/language"
import type { NextSearchParams } from "../types"
export { SelectHotelSkeleton as AlternativeHotelsPageSkeleton } from "../components/SelectHotel"
export async function AlternativeHotelsPage({
lang,
searchParams,

View File

@@ -17,6 +17,8 @@ import type { Lang } from "@scandic-hotels/common/constants/language"
import type { NextSearchParams } from "../types"
export { SelectHotelSkeleton as SelectHotelPageSkeleton } from "../components/SelectHotel"
export async function SelectHotelPage({
lang,
searchParams,

View File

@@ -15,6 +15,8 @@ import type { Lang } from "@scandic-hotels/common/constants/language"
import type { NextSearchParams } from "../types"
export { SelectRateSkeleton as SelectRatePageSkeleton } from "../components/SelectRate"
const rateTypeRegex = {
ARB: /(^B[a-z]{3}\d{6}$)/,
VOUCHER: /(^VO[0-9a-z]*$)/,

View File

@@ -16,39 +16,27 @@
"./BookingWidget": "./lib/components/BookingWidget/index.tsx",
"./BookingWidget/BookingWidgetForm/FormContent/Search": "./lib/components/BookingWidget/BookingWidgetForm/FormContent/Search/index.tsx",
"./BookingWidget/FloatingBookingWidget": "./lib/components/BookingWidget/FloatingBookingWidget/index.tsx",
"./BookingWidget/Skeleton": "./lib/components/BookingWidget/Skeleton.tsx",
"./components/AdditionalAmenities": "./lib/components/AdditionalAmenities/index.tsx",
"./components/AddToCalendar": "./lib/components/AddToCalendar/index.tsx",
"./components/BookingConfirmation/Header/Actions/helpers": "./lib/components/BookingConfirmation/Header/Actions/helpers.ts",
"./components/EnterDetails/enterDetailsErrors": "./lib/components/EnterDetails/enterDetailsErrors.ts",
"./components/EnterDetails/Payment/helpers": "./lib/components/EnterDetails/Payment/helpers.ts",
"./components/EnterDetails/Payment/PaymentCallback/HandleErrorCallback": "./lib/components/EnterDetails/Payment/PaymentCallback/HandleErrorCallback.tsx",
"./components/EnterDetails/Payment/PaymentCallback/HandleSuccessCallback": "./lib/components/EnterDetails/Payment/PaymentCallback/HandleSuccessCallback.tsx",
"./components/EnterDetails/Payment/PaymentCallback/helpers": "./lib/components/EnterDetails/Payment/PaymentCallback/helpers.ts",
"./components/EnterDetails/StorageCleaner": "./lib/components/EnterDetails/StorageCleaner.tsx",
"./components/PriceDetailsModal": "./lib/components/PriceDetailsModal/index.tsx",
"./components/SelectHotel": "./lib/components/SelectHotel/index.tsx",
"./components/SelectRate": "./lib/components/SelectRate/index.tsx",
"./components/SidePeekAccordions/BreakfastAccordionItem": "./lib/components/SidePeekAccordions/BreakfastAccordionItem.tsx",
"./components/SidePeekAccordions/CheckInCheckOutAccordionItem": "./lib/components/SidePeekAccordions/CheckInCheckOutAccordionItem.tsx",
"./components/SidePeekAccordions/ParkingAccordionItem": "./lib/components/SidePeekAccordions/ParkingAccordionItem.tsx",
"./global.d.ts": "./global.d.ts",
"./hooks/useHandleBookingStatus": "./lib/hooks/useHandleBookingStatus.ts",
"./hooks/useSearchHistory": "./lib/hooks/useSearchHistory.ts",
"./pages/*": "./lib/pages/*.tsx",
"./searchType": "./lib/misc/searchType.ts",
"./stores/enter-details/types": "./lib/stores/enter-details/types.ts",
"./stores/hotels-map": "./lib/stores/hotels-map.ts",
"./stores/booking-confirmation": "./lib/stores/booking-confirmation/index.ts",
"./types/components/findMyBooking/additionalInfoCookieValue": "./lib/types/components/findMyBooking/additionalInfoCookieValue.ts",
"./types/components/selectRate/selectRate": "./lib/types/components/selectRate/selectRate.ts",
"./types/stores/booking-confirmation": "./lib/types/stores/booking-confirmation.ts",
"./types/stores/rates": "./lib/types/stores/rates.ts",
"./utils/getRoomFeatureDescription": "./lib/utils/getRoomFeatureDescription.ts",
"./utils/isSameBooking": "./lib/utils/isSameBooking.ts",
"./utils/nuqs": "./lib/utils/nuqs.ts",
"./utils/SelectRate": "./lib/utils/SelectRate/index.tsx",
"./utils/specialRoomType": "./lib/utils/specialRoomType.ts",
"./utils/url": "./lib/utils/url.ts"
},
"dependencies": {