feat(SW-2873): Move select-hotel to booking flow * crude setup of select-hotel in partner-sas * wip * Fix linting * restructure tracking files * Remove dependency on trpc in tracking hooks * Move pageview tracking to common * Fix some lint and import issues * Add AlternativeHotelsPage * Add SelectHotelMapPage * Add AlternativeHotelsMapPage * remove next dependency in tracking store * Remove dependency on react in tracking hooks * move isSameBooking to booking-flow * Inject searchParamsComparator into tracking store * Move useTrackHardNavigation to common * Move useTrackSoftNavigation to common * Add TrackingSDK to partner-sas * call serverclient in layout * Remove unused css * Update types * Move HotelPin type * Fix todos * Merge branch 'master' into feat/sw-2873-move-selecthotel-to-booking-flow * Merge branch 'master' into feat/sw-2873-move-selecthotel-to-booking-flow * Fix component Approved-by: Joakim Jäderberg
86 lines
4.0 KiB
JSON
86 lines
4.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/Contact": "./lib/components/Contact/index.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/RoomCardSkeleton": "./lib/components/RoomCardSkeleton/RoomCardSkeleton.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/SidePeekAccordions/BreakfastAccordionItem": "./lib/components/SidePeekAccordions/BreakfastAccordionItem.tsx",
|
|
"./components/SidePeekAccordions/CheckInCheckOutAccordionItem": "./lib/components/SidePeekAccordions/CheckInCheckOutAccordionItem.tsx",
|
|
"./components/SidePeekAccordions/ParkingAccordionItem": "./lib/components/SidePeekAccordions/ParkingAccordionItem.tsx",
|
|
"./components/TripAdvisorChip": "./lib/components/TripAdvisorChip/index.tsx",
|
|
"./hooks/useSearchHistory": "./lib/hooks/useSearchHistory.ts",
|
|
"./pages/*": "./lib/pages/*.tsx",
|
|
"./searchType": "./lib/misc/searchType.ts",
|
|
"./stores/bookingCode-filter": "./lib/stores/bookingCode-filter.ts",
|
|
"./stores/hotels-map": "./lib/stores/hotels-map.ts",
|
|
"./utils/isSameBooking": "./lib/utils/isSameBooking.ts",
|
|
"./utils/url": "./lib/utils/url.ts"
|
|
},
|
|
"dependencies": {
|
|
"@hookform/resolvers": "^5.0.1",
|
|
"@scandic-hotels/common": "workspace:*",
|
|
"@scandic-hotels/design-system": "workspace:*",
|
|
"@scandic-hotels/trpc": "workspace:*",
|
|
"@vis.gl/react-google-maps": "^1.5.2",
|
|
"class-variance-authority": "^0.7.1",
|
|
"date-fns": "^4.1.0",
|
|
"downshift": "^9.0.9",
|
|
"fast-deep-equal": "^3.1.0",
|
|
"json-stable-stringify-without-jsonify": "^1.0.1",
|
|
"motion": "^12.10.0",
|
|
"react-aria-components": "^1.8.0",
|
|
"react-day-picker": "^9.6.7",
|
|
"react-hook-form": "^7.56.2",
|
|
"react-intl": "^7.1.11",
|
|
"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-import": "^2.31.0",
|
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
"typescript": "5.8.3",
|
|
"vitest": "^3.2.4",
|
|
"zod": "^3.24.4"
|
|
}
|
|
}
|