diff --git a/NOTES.md b/NOTES.md index 3f35095..d5a8765 100644 --- a/NOTES.md +++ b/NOTES.md @@ -90,7 +90,7 @@ ## Valuuttakurssit - service-kerros (src/services/person.js) -- axios ja http-kirjastot vs fetch +- axios ja http-kirjastot vs fetch. ky. - avaa promisen konsepti jos tarpeellista, then / catch - johdattele async / awaitiin (tehkää lopulta tällä, muista try/catch simppeli virheenhallinta!) - haetaan valuuttakurssit, tehdään komponentti diff --git a/package.json b/package.json index 852ebb4..92c415e 100644 --- a/package.json +++ b/package.json @@ -25,85 +25,86 @@ "author": "Pekkis", "license": "MIT", "dependencies": { - "@faker-js/faker": "^8.4.1", - "@hookform/resolvers": "^3.4.2", - "@react-three/fiber": "^8.16.6", - "@tanstack/react-query": "^5.39.0", - "@tanstack/react-query-devtools": "^5.39.0", - "@vanilla-extract/css": "^1.15.2", - "@vanilla-extract/sprinkles": "^1.6.2", - "axios": "^1.7.2", + "@faker-js/faker": "^9.0.3", + "@hookform/resolvers": "^3.9.0", + "@react-three/fiber": "^8.17.8", + "@tanstack/react-query": "^5.56.2", + "@tanstack/react-query-devtools": "^5.58.0", + "@vanilla-extract/css": "^1.15.5", + "@vanilla-extract/sprinkles": "^1.6.3", + "axios": "^1.7.7", "clsx": "^2.1.1", "currency-codes": "^2.1.0", - "framer-motion": "^11.2.6", + "framer-motion": "^11.9.0", "immer": "^10.1.1", - "luxon": "^3.4.4", - "next": "^14.2.3", + "ky": "^1.7.2", + "luxon": "^3.5.0", + "next": "^14.2.13", "normalize.css": "^8.0.1", - "ramda": "^0.30.0", + "ramda": "^0.30.1", "random-js": "^2.1.0", "react": "18.3.1", "react-dom": "^18.3.1", "react-error-boundary": "^4.0.13", - "react-hook-form": "^7.51.5", - "react-icons": "^5.2.1", + "react-hook-form": "^7.53.0", + "react-icons": "^5.3.0", "react-markdown": "^9.0.1", - "sharp": "^0.33.4", - "three": "^0.164.1", + "sharp": "^0.33.5", + "three": "^0.169.0", "zod": "^3.23.8", - "zustand": "^4.5.2" + "zustand": "5.0.0-rc.2" }, "devDependencies": { - "@chromatic-com/storybook": "^1.4.0", - "@next/bundle-analyzer": "^14.2.3", - "@playwright/test": "^1.44.1", - "@storybook/addon-essentials": "^8.1.3", - "@storybook/addon-interactions": "^8.1.3", - "@storybook/addon-links": "^8.1.3", + "@chromatic-com/storybook": "^2.0.2", + "@next/bundle-analyzer": "^14.2.13", + "@playwright/test": "^1.47.2", + "@storybook/addon-essentials": "^8.3.3", + "@storybook/addon-interactions": "^8.3.3", + "@storybook/addon-links": "^8.3.3", "@storybook/addon-styling-webpack": "^1.0.0", - "@storybook/blocks": "^8.1.3", - "@storybook/nextjs": "^8.1.3", - "@storybook/react": "^8.1.3", - "@storybook/test": "^8.1.3", - "@testing-library/dom": "^10.1.0", - "@testing-library/jest-dom": "^6.4.5", - "@testing-library/react": "^15.0.7", + "@storybook/blocks": "^8.3.3", + "@storybook/nextjs": "^8.3.3", + "@storybook/react": "^8.3.3", + "@storybook/test": "^8.3.3", + "@testing-library/dom": "^10.4.0", + "@testing-library/jest-dom": "^6.5.0", + "@testing-library/react": "^16.0.1", "@testing-library/user-event": "^14.5.2", - "@types/jest": "^29.5.12", + "@types/jest": "^29.5.13", "@types/luxon": "^3.4.2", - "@types/node": "^20.12.12", - "@types/ramda": "^0.30.0", - "@types/react": "^18.3.3", + "@types/node": "^22.7.4", + "@types/ramda": "^0.30.2", + "@types/react": "^18.3.10", "@types/react-dom": "^18.3.0", - "@types/three": "^0.164.1", - "@typescript-eslint/eslint-plugin": "^7.10.0", - "@typescript-eslint/parser": "^7.10.0", - "@vanilla-extract/next-plugin": "^2.4.1", - "@vanilla-extract/webpack-plugin": "^2.3.9", - "autoprefixer": "^10.4.19", + "@types/three": "^0.169.0", + "@typescript-eslint/eslint-plugin": "^8.7.0", + "@typescript-eslint/parser": "^8.7.0", + "@vanilla-extract/next-plugin": "^2.4.5", + "@vanilla-extract/webpack-plugin": "^2.3.13", + "autoprefixer": "^10.4.20", "css-loader": "^7.1.2", - "eslint": "^8.57.0", - "eslint-config-next": "^14.2.3", + "eslint": "^8.57.1", + "eslint-config-next": "^14.2.13", "eslint-config-prettier": "^9.1.0", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jsx-a11y": "^6.8.0", - "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-react": "^7.34.1", + "eslint-plugin-import": "^2.30.0", + "eslint-plugin-jsx-a11y": "^6.10.0", + "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-react": "^7.37.0", "eslint-plugin-react-hooks": "4.6.2", - "eslint-plugin-storybook": "^0.8.0", + "eslint-plugin-storybook": "^0.9.0", "identity-obj-proxy": "^3.0.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", - "jsdom": "^24.1.0", - "mini-css-extract-plugin": "^2.9.0", - "msw": "^2.3.0", - "prettier": "^3.2.5", - "storybook": "^8.1.3", + "jsdom": "^25.0.1", + "mini-css-extract-plugin": "^2.9.1", + "msw": "^2.4.9", + "prettier": "^3.3.3", + "storybook": "^8.3.3", "style-loader": "^4.0.0", - "stylelint": "^16.6.0", - "stylelint-config-standard": "^36.0.0", - "stylelint-prettier": "^5.0.0", - "typescript": "~5.4.5" + "stylelint": "^16.9.0", + "stylelint-config-standard": "^36.0.1", + "stylelint-prettier": "^5.0.2", + "typescript": "~5.6.2" }, "packageManager": "pnpm@9.1.3+sha256.7f63001edc077f1cff96cacba901f350796287a2800dfa83fe898f94183e4f5f" } diff --git a/packages/quack-ui/.gitignore b/packages/quack-ui/.gitignore deleted file mode 100644 index 1eae0cf..0000000 --- a/packages/quack-ui/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -dist/ -node_modules/ diff --git a/packages/quack-ui/README.md b/packages/quack-ui/README.md deleted file mode 100644 index fc22eb3..0000000 --- a/packages/quack-ui/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Quack UI - -Quack UI is the official UI toolkit of Gaylord McDuck Enterprises. diff --git a/packages/quack-ui/package.json b/packages/quack-ui/package.json deleted file mode 100644 index 88a17db..0000000 --- a/packages/quack-ui/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "@gaylordmcduck/quack-ui", - "version": "1.0.0", - "description": "Quack UI", - "license": "MIT", - "type": "module", - "main": "./dist/index.js", - "types": "./dist/index.d.ts", - "files": [ - "dist" - ], - "exports": { - "./style.css": "./dist/style.css", - ".": { - "import": "./dist/index.js" - } - }, - "scripts": { - "build": "tsc && vite build", - "dev": "pnpm run build --watch" - }, - "devDependencies": { - "@rollup/plugin-typescript": "^11.1.6", - "@types/react": "^18.3.3", - "@types/react-dom": "^18.3.0", - "@vitejs/plugin-react": "^4.3.0", - "rollup-plugin-node-externals": "^7.1.2", - "typescript": "^5.4.5", - "vite": "^5.2.11", - "react": ">= 18.3.1", - "react-dom": ">= 18.3.1" - }, - "dependencies": {}, - "peerDependencies": { - "react": ">= 18.3.1", - "react-dom": ">= 18.3.1" - } -} diff --git a/packages/quack-ui/src/components/Button.module.css b/packages/quack-ui/src/components/Button.module.css deleted file mode 100644 index 5c28117..0000000 --- a/packages/quack-ui/src/components/Button.module.css +++ /dev/null @@ -1,4 +0,0 @@ -.button { - border: 10px solid rgb(0 0 0); - padding: 2rem; -} diff --git a/packages/quack-ui/src/components/Button.tsx b/packages/quack-ui/src/components/Button.tsx deleted file mode 100644 index 4fe386e..0000000 --- a/packages/quack-ui/src/components/Button.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { ComponentProps, FC } from "react"; -import styles from "./Button.module.css"; - -type Props = ComponentProps<"button">; - -const Button: FC = (props) => { - return