Fix/book 149 incorrect onfocus behaviour booking widget * fix(BOOK-149): fixed labels shifting * fix(BOOK-149): reintroduced sticky position * fix(BOOK-149): added missing border to "where" text field * added overflow to datepicker * comment fixes * removed separate typography declaration * changed to onPress * fix(BOOK-149): moved components to separate files * fix(BOOK-149): removed desktop & mobile specific css classes * fix(BOOK-149): new implementation of date and room modals * dependencies update * fix(BOOK-149): fixed child age dropdown issue, related error message, and Rooms & Guests container height * updated info button to new variant * fix(BOOK-149): prevent scrolling of background when modals are open in Tablet mode * fixed overlay issue and added focus indicator on mobile * fixed missing space in css * rebase and fixed icon buttons after update * simplified to use explicit boolean * PR comments fixes * more PR comment fixes * PR comment fixes * fixed setIsOpen((prev) => !prev) * fixed issues with room error not showing properly on mobile * fixing pr comments * fixed flickering on GuestRoomModal Approved-by: Erik Tiekstra
102 lines
4.7 KiB
JSON
102 lines
4.7 KiB
JSON
{
|
|
"name": "@scandic-hotels/booking-flow",
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"check-types": "tsgo --noEmit",
|
|
"lint": "eslint . --max-warnings 0",
|
|
"lint:fix": "eslint . --fix",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:watch": "vitest",
|
|
"format": "prettier --write ."
|
|
},
|
|
"exports": {
|
|
"./BookingFlowConfig": "./lib/bookingFlowConfig/bookingFlowConfig.tsx",
|
|
"./BookingFlowContextProvider": "./lib/components/BookingFlowContextProvider.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",
|
|
"./components/AdditionalAmenities": "./lib/components/AdditionalAmenities/index.tsx",
|
|
"./components/HotelDetails/ContactInformation": "./lib/components/HotelDetailsSidePeek/ContactInformation/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/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/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/useBookingWidgetState": "./lib/hooks/useBookingWidgetState.ts",
|
|
"./hooks/useBookingFlowContext": "./lib/hooks/useBookingFlowContext.ts",
|
|
"./hooks/useBreakpoint": "./lib/hooks/useBreakpoint.ts",
|
|
"./pages/*": "./lib/pages/*.tsx",
|
|
"./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",
|
|
"./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/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:*",
|
|
"@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": "^3.39.0",
|
|
"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",
|
|
"server-only": "^0.0.1",
|
|
"usehooks-ts": "3.1.1",
|
|
"zustand": "^4.5.2"
|
|
},
|
|
"peerDependencies": {
|
|
"@sentry/nextjs": "^10",
|
|
"next": "^16",
|
|
"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/react": "19.2.7",
|
|
"@typescript-eslint/eslint-plugin": "^8.32.0",
|
|
"@typescript-eslint/parser": "^8.32.0",
|
|
"@vitest/coverage-v8": "^4.0.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": "^4.0.0",
|
|
"zod": "^3.24.4"
|
|
}
|
|
}
|