Setup booking-confirmation page in SAS * Setup booking-confirmation page in SAS move booking-confirmation tracking to booking-flow * remove unused param * Add test cards to documentation * Fix payment callback page to use correct status Approved-by: Anton Gunnarsson Approved-by: Hrishikesh Vaipurkar
138 lines
8.0 KiB
JSON
138 lines
8.0 KiB
JSON
{
|
|
"name": "@scandic-hotels/booking-flow",
|
|
"version": "1.0.0",
|
|
"main": "index.ts",
|
|
"type": "module",
|
|
"scripts": {
|
|
"check-types": "tsc --noEmit",
|
|
"lint": "eslint . --max-warnings 0 && tsc --noEmit",
|
|
"lint:fix": "eslint . --fix && tsc --noEmit",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:watch": "vitest"
|
|
},
|
|
"exports": {
|
|
"./bedTypeIcons": "./lib/misc/bedTypeIcons.ts",
|
|
"./BookingCodeFilter": "./lib/components/BookingCodeFilter/index.tsx",
|
|
"./BookingFlowContextProvider": "./lib/components/BookingFlowContextProvider.tsx",
|
|
"./BookingFlowTrackingProvider": "./lib/components/BookingFlowTrackingProvider.tsx",
|
|
"./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/Confirmation": "./lib/components/BookingConfirmation/Confirmation/index.tsx",
|
|
"./components/BookingConfirmation/Header/Actions/downloadInvoice": "./lib/components/BookingConfirmation/Header/Actions/downloadInvoice.ts",
|
|
"./components/BookingConfirmation/Header/Actions/helpers": "./lib/components/BookingConfirmation/Header/Actions/helpers.ts",
|
|
"./components/Contact": "./lib/components/Contact/index.tsx",
|
|
"./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/FnFNotAllowedAlert": "./lib/components/FnFNotAllowedAlert/index.tsx",
|
|
"./components/HotelDetailsSidePeek": "./lib/components/HotelDetailsSidePeek/index.tsx",
|
|
"./components/HotelReservationSidePeek": "./lib/components/HotelReservationSidePeek/index.tsx",
|
|
"./components/OpenSidePeekButton": "./lib/components/OpenSidePeekButton/index.tsx",
|
|
"./components/PriceDetailsModal": "./lib/components/PriceDetailsModal/index.tsx",
|
|
"./components/RoomCardSkeleton": "./lib/components/RoomCardSkeleton/RoomCardSkeleton.tsx",
|
|
"./components/RoomDetailsSidePeek": "./lib/components/RoomDetailsSidePeek/index.tsx",
|
|
"./components/RoomSidePeekContent": "./lib/components/RoomSidePeek/RoomSidePeekContent/index.tsx",
|
|
"./components/SelectHotel": "./lib/components/SelectHotel/index.tsx",
|
|
"./components/SelectHotelMap": "./lib/components/SelectHotel/SelectHotelMap/index.tsx",
|
|
"./components/SelectRate": "./lib/components/SelectRate/index.tsx",
|
|
"./components/SelectRate/RoomsContainer/RateSummary/utils": "./lib/components/SelectRate/RoomsContainer/RateSummary/utils.ts",
|
|
"./components/SidePanel": "./lib/components/SidePanel/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",
|
|
"./components/SignupPromoDesktop": "./lib/components/SignupPromo/Desktop.tsx",
|
|
"./components/SignupPromoMobile": "./lib/components/SignupPromo/Mobile.tsx",
|
|
"./components/TripAdvisorChip": "./lib/components/TripAdvisorChip/index.tsx",
|
|
"./contexts/EnterDetails/RoomContext": "./lib/contexts/EnterDetails/RoomContext.tsx",
|
|
"./contexts/SelectRate/getTotalPrice": "./lib/contexts/SelectRate/getTotalPrice.ts",
|
|
"./contexts/SelectRate/Room": "./lib/contexts/SelectRate/Room.ts",
|
|
"./contexts/SelectRate/SelectRateContext": "./lib/contexts/SelectRate/SelectRateContext.tsx",
|
|
"./contexts/SelectRate/types": "./lib/contexts/SelectRate/types.ts",
|
|
"./global.d.ts": "./global.d.ts",
|
|
"./hooks/useHandleBookingStatus": "./lib/hooks/useHandleBookingStatus.ts",
|
|
"./hooks/useSearchHistory": "./lib/hooks/useSearchHistory.ts",
|
|
"./pages/*": "./lib/pages/*.tsx",
|
|
"./providers/BookingConfirmationProvider": "./lib/providers/BookingConfirmationProvider.tsx",
|
|
"./searchType": "./lib/misc/searchType.ts",
|
|
"./stores/bookingCode-filter": "./lib/stores/bookingCode-filter.ts",
|
|
"./stores/enter-details": "./lib/stores/enter-details/index.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/bookingConfirmation/bookingConfirmation": "./lib/types/components/bookingConfirmation/bookingConfirmation.ts",
|
|
"./types/components/findMyBooking/additionalInfoCookieValue": "./lib/types/components/findMyBooking/additionalInfoCookieValue.ts",
|
|
"./types/components/promo/promoProps": "./lib/types/components/promo/promoProps.ts",
|
|
"./types/components/selectRate/selectRate": "./lib/types/components/selectRate/selectRate.ts",
|
|
"./types/membershipFailedError": "./lib/types/membershipFailedError.ts",
|
|
"./types/stores/booking-confirmation": "./lib/types/stores/booking-confirmation.ts",
|
|
"./types/stores/rates": "./lib/types/stores/rates.ts",
|
|
"./utils/calculateRegularPrice": "./lib/utils/calculateRegularPrice.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": {
|
|
"@hookform/resolvers": "^5.0.1",
|
|
"@scandic-hotels/common": "workspace:*",
|
|
"@scandic-hotels/design-system": "workspace:*",
|
|
"@scandic-hotels/tracking": "workspace:*",
|
|
"@scandic-hotels/trpc": "workspace:*",
|
|
"@sentry/nextjs": "^8.41.0",
|
|
"@trpc/client": "^11.1.2",
|
|
"@vis.gl/react-google-maps": "^1.5.2",
|
|
"class-variance-authority": "^0.7.1",
|
|
"client-only": "^0.0.1",
|
|
"date-fns": "^4.1.0",
|
|
"dayjs": "^1.11.13",
|
|
"deepmerge": "^4.3.1",
|
|
"downshift": "^9.0.9",
|
|
"fast-deep-equal": "^3.1.0",
|
|
"ics": "^3.8.1",
|
|
"immer": "^10.1.3",
|
|
"json-stable-stringify-without-jsonify": "^1.0.1",
|
|
"libphonenumber-js": "^1.12.15",
|
|
"motion": "^12.10.0",
|
|
"nuqs": "^2.4.3",
|
|
"react-aria-components": "^1.8.0",
|
|
"react-day-picker": "^9.6.7",
|
|
"react-hook-form": "^7.56.2",
|
|
"react-intl": "^7.1.11",
|
|
"react-to-print": "^3.1.0",
|
|
"usehooks-ts": "3.1.1",
|
|
"zustand": "^4.5.2"
|
|
},
|
|
"peerDependencies": {
|
|
"next": "^15",
|
|
"react": "^19"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/compat": "^1.2.9",
|
|
"@eslint/eslintrc": "^3.3.1",
|
|
"@eslint/js": "^9.26.0",
|
|
"@scandic-hotels/typescript-config": "workspace:*",
|
|
"@t3-oss/env-nextjs": "^0.13.4",
|
|
"@types/lodash-es": "^4",
|
|
"@types/react": "19.1.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.32.0",
|
|
"@typescript-eslint/parser": "^8.32.0",
|
|
"dotenv": "^16.5.0",
|
|
"eslint": "^9",
|
|
"eslint-plugin-formatjs": "^5.3.1",
|
|
"eslint-plugin-import": "^2.31.0",
|
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
"typescript": "5.8.3",
|
|
"vitest": "^3.2.4",
|
|
"zod": "^3.24.4"
|
|
}
|
|
}
|