From 1306c1628ef72cccc8cbef0cdb51782ba5ca05e6 Mon Sep 17 00:00:00 2001 From: spaenleh Date: Mon, 13 Nov 2023 08:25:12 +0100 Subject: [PATCH] fix: upgrade sdk, query-client and ui without immutable --- package.json | 58 +- src/components/Redirection.tsx | 2 +- src/components/SignUp.tsx | 4 +- src/config/i18n.ts | 1 - yarn.lock | 3041 ++++++++++++++++---------------- 5 files changed, 1544 insertions(+), 1562 deletions(-) diff --git a/package.json b/package.json index f68e60dc..ba28df26 100644 --- a/package.json +++ b/package.json @@ -12,23 +12,23 @@ "@emotion/cache": "11.11.0", "@emotion/react": "11.11.1", "@emotion/styled": "11.11.0", - "@graasp/query-client": "1.11.1", - "@graasp/sdk": "1.9.2", - "@graasp/translations": "1.18.3", - "@graasp/ui": "3.5.4", + "@graasp/query-client": "2.0.1", + "@graasp/sdk": "2.1.0", + "@graasp/translations": "1.19.4", + "@graasp/ui": "4.0.0", "@mui/icons-material": "5.14.16", "@mui/lab": "5.0.0-alpha.151", - "@mui/material": "5.14.16", - "@sentry/react": "7.66.0", - "@sentry/tracing": "7.66.0", + "@mui/material": "5.14.17", + "@sentry/react": "7.80.0", + "@sentry/tracing": "7.80.0", "http-status-codes": "2.3.0", "qs": "6.11.2", "react": "18.2.0", "react-dom": "18.2.0", "react-ga4": "2.1.0", - "react-i18next": "13.2.2", - "react-router": "6.15.0", - "react-router-dom": "6.15.0", + "react-i18next": "13.4.0", + "react-router": "6.18.0", + "react-router-dom": "6.18.0", "react-toastify": "9.1.3", "stylis": "4.3.0", "stylis-plugin-rtl": "2.1.1", @@ -74,32 +74,32 @@ ] }, "devDependencies": { - "@commitlint/cli": "17.8.0", - "@commitlint/config-conventional": "17.8.0", - "@cypress/code-coverage": "3.12.5", + "@commitlint/cli": "18.4.1", + "@commitlint/config-conventional": "18.4.0", + "@cypress/code-coverage": "3.12.9", "@testing-library/jest-dom": "6.1.4", - "@testing-library/react": "14.0.0", + "@testing-library/react": "14.1.0", "@testing-library/user-event": "14.5.1", - "@trivago/prettier-plugin-sort-imports": "4.2.0", - "@types/jest": "29.5.5", - "@types/node": "18.18.6", - "@types/qs": "6.9.8", - "@types/react": "^18.2.28", - "@types/react-dom": "18.2.13", + "@trivago/prettier-plugin-sort-imports": "4.3.0", + "@types/jest": "29.5.8", + "@types/node": "20.9.0", + "@types/qs": "6.9.10", + "@types/react": "^18.2.37", + "@types/react-dom": "18.2.15", "@types/react-router-dom": "5.3.3", - "@types/validator": "13.11.3", - "@typescript-eslint/eslint-plugin": "6.9.0", - "@typescript-eslint/parser": "6.9.0", - "@vitejs/plugin-react": "4.1.0", - "concurrently": "8.2.1", - "cypress": "13.3.2", + "@types/validator": "13.11.6", + "@typescript-eslint/eslint-plugin": "6.10.0", + "@typescript-eslint/parser": "6.10.0", + "@vitejs/plugin-react": "4.1.1", + "concurrently": "8.2.2", + "cypress": "13.5.0", "env-cmd": "10.1.0", - "eslint": "^8.3.0", + "eslint": "^8.53.0", "eslint-config-prettier": "9.0.0", "eslint-config-react-app": "7.0.1", - "eslint-import-resolver-typescript": "3.6.0", + "eslint-import-resolver-typescript": "3.6.1", "husky": "8.0.3", - "istanbul-lib-coverage": "3.2.0", + "istanbul-lib-coverage": "3.2.2", "nyc": "15.1.0", "prettier": "3.1.0", "rollup-plugin-visualizer": "5.9.2", diff --git a/src/components/Redirection.tsx b/src/components/Redirection.tsx index ec25c6fb..192b4660 100644 --- a/src/components/Redirection.tsx +++ b/src/components/Redirection.tsx @@ -15,7 +15,7 @@ const Redirection: FC = ({ children }) => { const { data: member } = hooks.useCurrentMember(); const redirect = useRedirection(); - if (member?.get('id')) { + if (member) { redirectToSavedUrl(GRAASP_BUILDER_HOST); return ( diff --git a/src/components/SignUp.tsx b/src/components/SignUp.tsx index ce649303..eab53cf8 100644 --- a/src/components/SignUp.tsx +++ b/src/components/SignUp.tsx @@ -123,13 +123,13 @@ const SignUp = () => { helperText={nameError} onChange={handleNameOnChange} id={NAME_SIGN_UP_FIELD_ID} - disabled={Boolean(invitation?.get('name'))} + disabled={Boolean(invitation.name)} />