Feat/LOY-400 create spend points modal * feat(LOY-400): Added custom button to my pages overview and skeleton file to custom modal for my points. * feat(LOY-400): Added custom button to my pages overview and components for custom modal for my points. * feat(LOY-400): Changed some style and infogridcardover * feat(LOY-400):Removed custom card components and changed in infoCard: Added imagePosition top, added optional height prop. In Card: Changed Text-wrap styling, added min-width styling to buttons, added optional Icon prop, added optional height prop * feat(LOY-400):Added linkList, LinkListItem component and messageBanner component. Added granola illustration. * feat(LOY-400): Removed background in several illustrations. Added component for illustration. Fixed LinkedList and styling for UsePointsButton. * feat(LOY-400): Added modal to PointsToSpendCard and fixed UsePointsButton. * fix(LOY-400):added some styling * feat(LOY-400): Linked Modal to contentstack and fetch the data in cards with UsePointsModal for now * feat(LOY-400): changed link to aria-component, cleaned up a bit * feat(LOY-400): Changed height for larger modals in mobile, fixed zod schema for no illustration input, cleaned up * fix(LOY-400): fixed graphql after rebase * fix(LOY-400): mini fix * fix(LOY-400): fixed pr-comments * fix(LOY-400): fixed some PR-comments * fix(LOY-400): fixed a PR-comment * feat(LOY-400): added size prop to ilustration in LinkListItem to be able to use illustrations in IllustrationByIconName * fix(LOY-400): fixed pr-comments * Merged in feat/LOY-402-pre-ticked-book-reward-night-in-booking-flow (pull request #3210) Feat/LOY-402 pre ticked book reward night in booking flow * feat(LOY-402): Changed UsePointsModal structure to handle button actions in card. * feat(LOY-402): added functionality for book now button * feat(LOY-400): pr comment fix * feat(LOY-402): transformed the contentstack data * fix(LOY-402): fixed pr comments Approved-by: Chuma Mcphoy (We Ahead) Approved-by: Anton Gunnarsson Approved-by: Matilda Landström * Merged in feat/LOY-404-add-tracking-for-spend-points-modal (pull request #3229) Feat/LOY-404 add tracking for spend points modal * feat(LOY-402): Changed UsePointsModal structure to handle button actions in card. * feat(LOY-402): added functionality for book now button * feat(LOY-400): pr comment fix * feat(LOY-402): transformed the contentstack data * feat(LOY-404): added tracking * fix(LOY-404): fix for session storage removal of bookNowFromPointsModal * feat(LOY-404): added consts * fix(LOY-404): moved foxusWidget const * fix(LOY-404): moved BOOKING_WIDGET_STATE const * fix(LOY-404):fix Approved-by: Matilda Landström * fix(LOY-400): some fixes * feat(LOY-400): created linkList storybook Approved-by: Chuma Mcphoy (We Ahead) Approved-by: Matilda Landström
110 lines
4.3 KiB
JSON
110 lines
4.3 KiB
JSON
{
|
|
"name": "@scandic-hotels/common",
|
|
"private": true,
|
|
"version": "1.0.0",
|
|
"main": "index.ts",
|
|
"type": "module",
|
|
"scripts": {
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"check-types": "tsgo --noEmit",
|
|
"lint": "eslint . --max-warnings 0 && tsgo --noEmit",
|
|
"format": "prettier --write ."
|
|
},
|
|
"exports": {
|
|
"./polyfills": "./polyfills/index.ts",
|
|
"./constants/alert": "./constants/alert.ts",
|
|
"./constants/booking": "./constants/booking.ts",
|
|
"./constants/country": "./constants/country.ts",
|
|
"./constants/currency": "./constants/currency.ts",
|
|
"./constants/dateFormats": "./constants/dateFormats.ts",
|
|
"./constants/facilities": "./constants/facilities.ts",
|
|
"./constants/familyAndFriends": "./constants/familyAndFriends.ts",
|
|
"./constants/hotelType": "./constants/hotelType.ts",
|
|
"./constants/language": "./constants/language.ts",
|
|
"./constants/loginType": "./constants/loginType.ts",
|
|
"./constants/membershipLevels": "./constants/membershipLevels.ts",
|
|
"./constants/paymentCallbackStatusEnum": "./constants/paymentCallbackStatusEnum.ts",
|
|
"./constants/paymentMethod": "./constants/paymentMethod.ts",
|
|
"./constants/rate": "./constants/rate.ts",
|
|
"./constants/rateType": "./constants/rateType.ts",
|
|
"./constants/routes/*": "./constants/routes/*.ts",
|
|
"./constants/sessionKeys": "./constants/sessionKeys.ts",
|
|
"./constants/signatureHotels": "./constants/signatureHotels.ts",
|
|
"./constants/paymentCallbackStatus": "./constants/paymentCallbackStatus.ts",
|
|
"./constants/scandicPartners": "./constants/scandicPartners.ts",
|
|
"./dataCache": "./dataCache/index.ts",
|
|
"./dt": "./dt/dt.ts",
|
|
"./dt/utils/hasOverlappingDates": "./dt/utils/hasOverlappingDates.ts",
|
|
"./global.d.ts": "./global.d.ts",
|
|
"./hooks/*": "./hooks/*.ts",
|
|
"./logger": "./logger/index.ts",
|
|
"./logger/createLogger": "./logger/createLogger/index.ts",
|
|
"./stores/*": "./stores/*.ts",
|
|
"./telemetry": "./telemetry/index.ts",
|
|
"./tokenManager": "./tokenManager/index.ts",
|
|
"./tracking/base": "./tracking/base.ts",
|
|
"./tracking/pageview": "./tracking/pageview.ts",
|
|
"./tracking/types": "./tracking/types.ts",
|
|
"./tracking/useFormTracking": "./tracking/useFormTracking.ts",
|
|
"./tracking/useTrackHardNavigation": "./tracking/useTrackHardNavigation.ts",
|
|
"./tracking/useTrackSoftNavigation": "./tracking/useTrackSoftNavigation.ts",
|
|
"./utils/stringEquals": "./utils/stringEquals.ts",
|
|
"./utils/chunk": "./utils/chunk.ts",
|
|
"./utils/dateFormatting": "./utils/dateFormatting.ts",
|
|
"./utils/debounce": "./utils/debounce.ts",
|
|
"./utils/imageVault": "./utils/imageVault.ts",
|
|
"./utils/isDefined": "./utils/isDefined.ts",
|
|
"./utils/isEdge": "./utils/isEdge.ts",
|
|
"./utils/isValidJson": "./utils/isValidJson.ts",
|
|
"./utils/languages": "./utils/languages.ts",
|
|
"./utils/maskValue": "./utils/maskValue.ts",
|
|
"./utils/membershipLevels": "./utils/membershipLevels.ts",
|
|
"./utils/numberFormatting": "./utils/numberFormatting.ts",
|
|
"./utils/phone": "./utils/phone.ts",
|
|
"./utils/promiseWithTimeout": "./utils/promiseWithTimeout.ts",
|
|
"./utils/rangeArray": "./utils/rangeArray.ts",
|
|
"./utils/safeTry": "./utils/safeTry.ts",
|
|
"./utils/theme": "./utils/theme/index.ts",
|
|
"./utils/theme/serverContext": "./utils/theme/serverContext.ts",
|
|
"./utils/toCapitalCase": "./utils/toCapitalCase.ts",
|
|
"./utils/url": "./utils/url.ts",
|
|
"./utils/zod/*": "./utils/zod/*.ts"
|
|
},
|
|
"dependencies": {
|
|
"@sentry/nextjs": "^10.26.0",
|
|
"@t3-oss/env-nextjs": "^0.13.4",
|
|
"deepmerge": "^4.3.1",
|
|
"flat": "^6.0.1",
|
|
"libphonenumber-js": "^1.12.7",
|
|
"nanoid": "^5.1.5",
|
|
"zod": "^3.24.4",
|
|
"zustand": "^4.5.2"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^19"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/compat": "^1.2.9",
|
|
"@eslint/eslintrc": "^3.3.1",
|
|
"@eslint/js": "^9.26.0",
|
|
"@scandic-hotels/typescript-config": "workspace:*",
|
|
"@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"
|
|
},
|
|
"prettier": {
|
|
"semi": false,
|
|
"trailingComma": "es5",
|
|
"singleQuote": false,
|
|
"printWidth": 80,
|
|
"tabWidth": 2,
|
|
"endOfLine": "lf"
|
|
}
|
|
}
|