Merged in feat/SW-3644-storybook-v10 (pull request #3240)
feat(SW-3644): Storybook v10 * Auto update to Storybook v10 * Add scandic theme and logo * Update yarn.lock * Update formatting of package.json * Update vitest config and playwright plugin * Remove vitest 4 update * Re-added comment * Update the Typography component to explicitly return React.ReactNode * Add an explicit type assertion to the export * Add an explicit type assertion to the export for Checkbox * Explicit return type assertion * Add an explicit type assertion to the export * Update @types/react and fix ts warnings * Updated typings Approved-by: Linus Flood Approved-by: Matilda Landström
This commit is contained in:
@@ -49,8 +49,8 @@
|
||||
"@scandic-hotels/typescript-config": "workspace:*",
|
||||
"@swc/plugin-formatjs": "^3.2.2",
|
||||
"@types/node": "^20",
|
||||
"@types/react": "19.1.0",
|
||||
"@types/react-dom": "19.1.0",
|
||||
"@types/react": "^19.2.3",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@typescript-eslint/eslint-plugin": "^8.32.0",
|
||||
"@typescript-eslint/parser": "^8.32.0",
|
||||
"babel-plugin-formatjs": "^10.5.39",
|
||||
|
||||
@@ -162,7 +162,7 @@ const variants = {
|
||||
opacity: 1,
|
||||
transition: { duration: 0.4, ease: "easeInOut" },
|
||||
},
|
||||
},
|
||||
} as const,
|
||||
|
||||
slideInOut: {
|
||||
hidden: {
|
||||
@@ -176,7 +176,7 @@ const variants = {
|
||||
transition: { duration: 0.4, ease: "easeInOut" },
|
||||
},
|
||||
},
|
||||
}
|
||||
} as const
|
||||
|
||||
function getRedeemFlow(reward: Reward, membershipNumber: string) {
|
||||
const { rewardType } = reward
|
||||
|
||||
@@ -224,7 +224,11 @@ export default function SurprisesNotification({
|
||||
animate="center"
|
||||
exit="exit"
|
||||
transition={{
|
||||
x: { type: "ease", duration: 0.5 },
|
||||
x: {
|
||||
type: "tween",
|
||||
ease: "easeInOut",
|
||||
duration: 0.5,
|
||||
},
|
||||
opacity: { duration: 0.2 },
|
||||
}}
|
||||
layout
|
||||
@@ -277,4 +281,4 @@ const variants = {
|
||||
opacity: 0,
|
||||
}
|
||||
},
|
||||
}
|
||||
} as const
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
"scripts": {
|
||||
"build": "next build",
|
||||
"dev": "NODE_OPTIONS=--openssl-legacy-provider PORT=3000 NEXT_PUBLIC_PORT=3000 next dev --turbo",
|
||||
"lint": "yarn clean && next lint --max-warnings 0 && tsc",
|
||||
"lint:fix": "yarn clean && next lint --fix --max-warnings 0 && tsc",
|
||||
"lint": "next typegen && next lint --max-warnings 0 && tsc",
|
||||
"lint:fix": "next typegen && next lint --fix --max-warnings 0 && tsc",
|
||||
"start": "node .next/standalone/server.js",
|
||||
"test:setup": "yarn build && yarn start",
|
||||
"preinstall": "/bin/sh -c \"export $(cat .env.local | grep -v '^#' | xargs)\"",
|
||||
@@ -99,8 +99,8 @@
|
||||
"@types/json-stable-stringify-without-jsonify": "^1.0.2",
|
||||
"@types/jsonwebtoken": "^9",
|
||||
"@types/node": "^20",
|
||||
"@types/react": "19.1.0",
|
||||
"@types/react-dom": "19.1.0",
|
||||
"@types/react": "^19.2.3",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@typescript-eslint/eslint-plugin": "^8.32.0",
|
||||
"@typescript-eslint/parser": "^8.32.0",
|
||||
"@vitejs/plugin-react": "^5.0.0",
|
||||
@@ -122,9 +122,5 @@
|
||||
},
|
||||
"engines": {
|
||||
"node": "22"
|
||||
},
|
||||
"resolutions": {
|
||||
"@types/react": "19.1.0",
|
||||
"@types/react-dom": "19.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user