From 5f8f3e730cd0c30046ed916b854dcbb288f84bfe Mon Sep 17 00:00:00 2001 From: StanR Date: Tue, 15 Oct 2024 14:47:05 +0500 Subject: [PATCH] Minor frontend build fixes --- frontend/package-lock.json | 189 +++++++++--------- frontend/package.json | 4 +- .../components/ResponseSubmission.utils.tsx | 4 +- frontend/src/pages/_app.tsx | 2 +- 4 files changed, 100 insertions(+), 99 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index b1a2c75e..4488e042 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -16,8 +16,8 @@ "@mantine/dates": "^4.2.7", "@mantine/hooks": "^4.2.7", "@mantine/modals": "^4.2.7", - "@nivo/bar": "^0.79.1", - "@nivo/core": "^0.79.0", + "@nivo/bar": "^0.80.0", + "@nivo/core": "^0.80.0", "@reach/listbox": "^0.16.2", "@reach/menu-button": "^0.16.2", "@reach/tabs": "^0.16.4", @@ -3240,63 +3240,63 @@ } }, "node_modules/@nivo/annotations": { - "version": "0.79.1", - "resolved": "https://registry.npmjs.org/@nivo/annotations/-/annotations-0.79.1.tgz", - "integrity": "sha512-lYso9Luu0maSDtIufwvyVt2+Wue7R9Fh3CIjuRDmNR72UjAgAVEcCar27Fy865UXGsj2hRJZ7KY/1s6kT3gu/w==", + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@nivo/annotations/-/annotations-0.80.0.tgz", + "integrity": "sha512-bC9z0CLjU07LULTMWsqpjovRtHxP7n8oJjqBQBLmHOGB4IfiLbrryBfu9+aEZH3VN2jXHhdpWUz+HxeZzOzsLg==", "license": "MIT", "dependencies": { - "@nivo/colors": "0.79.1", - "@react-spring/web": "9.3.1", + "@nivo/colors": "0.80.0", + "@react-spring/web": "9.4.5", "lodash": "^4.17.21" }, "peerDependencies": { - "@nivo/core": "0.79.0", - "react": ">= 16.14.0 < 18.0.0" + "@nivo/core": "0.80.0", + "react": ">= 16.14.0 < 19.0.0" } }, "node_modules/@nivo/axes": { - "version": "0.79.0", - "resolved": "https://registry.npmjs.org/@nivo/axes/-/axes-0.79.0.tgz", - "integrity": "sha512-EhSeCPxtWEuxqnifeyF/pIJEzL7pRM3rfygL+MpfT5ypu5NcXYRGQo/Bw0Vh+GF1ML+tNAE0rRvCu2jgLSdVNQ==", + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@nivo/axes/-/axes-0.80.0.tgz", + "integrity": "sha512-AsUyaSHGwQVSEK8QXpsn8X+poZxvakLMYW7crKY1xTGPNw+SU4SSBohPVumm2jMH3fTSLNxLhAjWo71GBJXfdA==", "license": "MIT", "dependencies": { - "@nivo/scales": "0.79.0", - "@react-spring/web": "9.3.1", + "@nivo/scales": "0.80.0", + "@react-spring/web": "9.4.5", "d3-format": "^1.4.4", "d3-time-format": "^3.0.0" }, "peerDependencies": { - "@nivo/core": "0.79.0", + "@nivo/core": "0.80.0", "prop-types": ">= 15.5.10 < 16.0.0", - "react": ">= 16.14.0 < 18.0.0" + "react": ">= 16.14.0 < 19.0.0" } }, "node_modules/@nivo/bar": { - "version": "0.79.1", - "resolved": "https://registry.npmjs.org/@nivo/bar/-/bar-0.79.1.tgz", - "integrity": "sha512-swJ2FtFeRPWJK9O6aZiqTDi2J6GrU2Z6kIHBBCXBlFmq6+vfd5AqOHytdXPTaN80JsKDBBdtY7tqRjpRPlDZwQ==", - "license": "MIT", - "dependencies": { - "@nivo/annotations": "0.79.1", - "@nivo/axes": "0.79.0", - "@nivo/colors": "0.79.1", - "@nivo/legends": "0.79.1", - "@nivo/scales": "0.79.0", - "@nivo/tooltip": "0.79.0", - "@react-spring/web": "9.3.1", + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@nivo/bar/-/bar-0.80.0.tgz", + "integrity": "sha512-woE/S12Sp+RKQeOHtp302WXfy5usj73cV/gjP95PzJxMv+Rn01i1Uwys3BILzc9h4+OxYuWTFqLADAySAmi7qQ==", + "license": "MIT", + "dependencies": { + "@nivo/annotations": "0.80.0", + "@nivo/axes": "0.80.0", + "@nivo/colors": "0.80.0", + "@nivo/legends": "0.80.0", + "@nivo/scales": "0.80.0", + "@nivo/tooltip": "0.80.0", + "@react-spring/web": "9.4.5", "d3-scale": "^3.2.3", - "d3-shape": "^1.2.2", + "d3-shape": "^1.3.5", "lodash": "^4.17.21" }, "peerDependencies": { - "@nivo/core": "0.79.0", - "react": ">= 16.14.0 < 18.0.0" + "@nivo/core": "0.80.0", + "react": ">= 16.14.0 < 19.0.0" } }, "node_modules/@nivo/colors": { - "version": "0.79.1", - "resolved": "https://registry.npmjs.org/@nivo/colors/-/colors-0.79.1.tgz", - "integrity": "sha512-45huBmz46OoQtfqzHrnqDJ9msebOBX84fTijyOBi8mn8iTDOK2xWgzT7cCYP3hKE58IclkibkzVyWCeJ+rUlqg==", + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@nivo/colors/-/colors-0.80.0.tgz", + "integrity": "sha512-T695Zr411FU4RPo7WDINOAn8f79DPP10SFJmDdEqELE+cbzYVTpXqLGZ7JMv88ko7EOf9qxLQgcBqY69rp9tHQ==", "license": "MIT", "dependencies": { "d3-color": "^2.0.0", @@ -3305,19 +3305,19 @@ "lodash": "^4.17.21" }, "peerDependencies": { - "@nivo/core": "0.79.0", + "@nivo/core": "0.80.0", "prop-types": ">= 15.5.10 < 16.0.0", - "react": ">= 16.14.0 < 18.0.0" + "react": ">= 16.14.0 < 19.0.0" } }, "node_modules/@nivo/core": { - "version": "0.79.0", - "resolved": "https://registry.npmjs.org/@nivo/core/-/core-0.79.0.tgz", - "integrity": "sha512-e1iGodmGuXkF+QWAjhHVFc+lUnfBoUwaWqVcBXBfebzNc50tTJrTTMHyQczjgOIfTc8gEu23lAY4mVZCDKscig==", + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@nivo/core/-/core-0.80.0.tgz", + "integrity": "sha512-6caih0RavXdWWSfde+rC2pk17WrX9YQlqK26BrxIdXzv3Ydzlh5SkrC7dR2TEvMGBhunzVeLOfiC2DWT1S8CFg==", "license": "MIT", "dependencies": { - "@nivo/recompose": "0.79.0", - "@react-spring/web": "9.3.1", + "@nivo/recompose": "0.80.0", + "@react-spring/web": "9.4.5", "d3-color": "^2.0.0", "d3-format": "^1.4.4", "d3-interpolate": "^2.0.1", @@ -3328,38 +3328,38 @@ "lodash": "^4.17.21" }, "peerDependencies": { - "@nivo/tooltip": "0.79.0", + "@nivo/tooltip": "0.80.0", "prop-types": ">= 15.5.10 < 16.0.0", - "react": ">= 16.14.0 < 18.0.0" + "react": ">= 16.14.0 < 19.0.0" } }, "node_modules/@nivo/legends": { - "version": "0.79.1", - "resolved": "https://registry.npmjs.org/@nivo/legends/-/legends-0.79.1.tgz", - "integrity": "sha512-AoabiLherOAk3/HR/N791fONxNdwNk/gCTJC/6BKUo2nX+JngEYm3nVFmTC1R6RdjwJTeCb9Vtuc4MHA+mcgig==", + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@nivo/legends/-/legends-0.80.0.tgz", + "integrity": "sha512-h0IUIPGygpbKIZZZWIxkkxOw4SO0rqPrqDrykjaoQz4CvL4HtLIUS3YRA4akKOVNZfS5agmImjzvIe0s3RvqlQ==", "license": "MIT", "peerDependencies": { - "@nivo/core": "0.79.0", + "@nivo/core": "0.80.0", "prop-types": ">= 15.5.10 < 16.0.0", - "react": ">= 16.14.0 < 18.0.0" + "react": ">= 16.14.0 < 19.0.0" } }, "node_modules/@nivo/recompose": { - "version": "0.79.0", - "resolved": "https://registry.npmjs.org/@nivo/recompose/-/recompose-0.79.0.tgz", - "integrity": "sha512-2GFnOHfA2jzTOA5mdKMwJ6myCRGoXQQbQvFFQ7B/+hnHfU/yrOVpiGt6TPAn3qReC4dyDYrzy1hr9UeQh677ig==", + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@nivo/recompose/-/recompose-0.80.0.tgz", + "integrity": "sha512-iL3g7j3nJGD9+mRDbwNwt/IXDXH6E29mhShY1I7SP91xrfusZV9pSFf4EzyYgruNJk/2iqMuaqn+e+TVFra44A==", "license": "MIT", "dependencies": { "react-lifecycles-compat": "^3.0.4" }, "peerDependencies": { - "react": ">= 16.14.0 < 18.0.0" + "react": ">= 16.14.0 < 19.0.0" } }, "node_modules/@nivo/scales": { - "version": "0.79.0", - "resolved": "https://registry.npmjs.org/@nivo/scales/-/scales-0.79.0.tgz", - "integrity": "sha512-5fAt5Wejp8yzAk6qmA3KU+celCxNYrrBhfvOi2ECDG8KQi+orbDnrO6qjVF6+ebfOn9az8ZVukcSeGA5HceiMg==", + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@nivo/scales/-/scales-0.80.0.tgz", + "integrity": "sha512-4y2pQdCg+f3n4TKXC2tYuq71veZM+xPRQbOTgGYJpuBvMc7pQsXF9T5z7ryeIG9hkpXkrlyjecU6XcAG7tLSNg==", "license": "MIT", "dependencies": { "d3-scale": "^3.2.3", @@ -3369,15 +3369,15 @@ } }, "node_modules/@nivo/tooltip": { - "version": "0.79.0", - "resolved": "https://registry.npmjs.org/@nivo/tooltip/-/tooltip-0.79.0.tgz", - "integrity": "sha512-hsJsvhDVR9P/QqIEDIttaA6aslR3tU9So1s/k2jMdppL7J9ZH/IrVx9TbIP7jDKmnU5AMIP5uSstXj9JiKLhQA==", + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@nivo/tooltip/-/tooltip-0.80.0.tgz", + "integrity": "sha512-qGmrreRwnCsYjn/LAuwBtxBn/tvG8y+rwgd4gkANLBAoXd3bzJyvmkSe+QJPhUG64bq57ibDK+lO2pC48a3/fw==", "license": "MIT", "dependencies": { - "@react-spring/web": "9.3.1" + "@react-spring/web": "9.4.5" }, "peerDependencies": { - "@nivo/core": "0.79.0" + "@nivo/core": "0.80.0" } }, "node_modules/@nodelib/fs.scandir": { @@ -4284,75 +4284,76 @@ } }, "node_modules/@react-spring/animated": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.3.2.tgz", - "integrity": "sha512-pBvKydRHbTzuyaeHtxGIOvnskZxGo/S5/YK1rtYm88b9NQZuZa95Rgd3O0muFL+99nvBMBL8cvQGD0UJmsqQsg==", + "version": "9.4.5", + "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.4.5.tgz", + "integrity": "sha512-KWqrtvJSMx6Fj9nMJkhTwM9r6LIriExDRV6YHZV9HKQsaolUFppgkOXpC+rsL1JEtEvKv6EkLLmSqHTnuYjiIA==", "license": "MIT", "dependencies": { - "@react-spring/shared": "~9.3.0", - "@react-spring/types": "~9.3.0" + "@react-spring/shared": "~9.4.5", + "@react-spring/types": "~9.4.5" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0" + "react": "^16.8.0 || >=17.0.0 || >=18.0.0" } }, "node_modules/@react-spring/core": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.3.2.tgz", - "integrity": "sha512-kMRjkgdQ6LJ0lmb/wQlONpghaMT83UxglXHJC6m9kZS/GKVmN//TYMEK85xN1rC5Gg+BmjG61DtLCSkkLDTfNw==", + "version": "9.4.5", + "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.4.5.tgz", + "integrity": "sha512-83u3FzfQmGMJFwZLAJSwF24/ZJctwUkWtyPD7KYtNagrFeQKUH1I05ZuhmCmqW+2w1KDW1SFWQ43RawqfXKiiQ==", "license": "MIT", "dependencies": { - "@react-spring/animated": "~9.3.0", - "@react-spring/shared": "~9.3.0", - "@react-spring/types": "~9.3.0" + "@react-spring/animated": "~9.4.5", + "@react-spring/rafz": "~9.4.5", + "@react-spring/shared": "~9.4.5", + "@react-spring/types": "~9.4.5" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/react-spring/donate" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0" + "react": "^16.8.0 || >=17.0.0 || >=18.0.0" } }, "node_modules/@react-spring/rafz": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/@react-spring/rafz/-/rafz-9.3.2.tgz", - "integrity": "sha512-YtqNnAYp5bl6NdnDOD5TcYS40VJmB+Civ4LPtcWuRPKDAOa/XAf3nep48r0wPTmkK936mpX8aIm7h+luW59u5A==", + "version": "9.4.5", + "resolved": "https://registry.npmjs.org/@react-spring/rafz/-/rafz-9.4.5.tgz", + "integrity": "sha512-swGsutMwvnoyTRxvqhfJBtGM8Ipx6ks0RkIpNX9F/U7XmyPvBMGd3GgX/mqxZUpdlsuI1zr/jiYw+GXZxAlLcQ==", "license": "MIT" }, "node_modules/@react-spring/shared": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.3.2.tgz", - "integrity": "sha512-ypGQQ8w7mWnrELLon4h6mBCBxdd8j1pgLzmHXLpTC/f4ya2wdP+0WIKBWXJymIf+5NiTsXgSJra5SnHP5FBY+A==", + "version": "9.4.5", + "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.4.5.tgz", + "integrity": "sha512-JhMh3nFKsqyag0KM5IIM8BQANGscTdd0mMv3BXsUiMZrcjQTskyfnv5qxEeGWbJGGar52qr5kHuBHtCjQOzniA==", "license": "MIT", "dependencies": { - "@react-spring/rafz": "~9.3.0", - "@react-spring/types": "~9.3.0" + "@react-spring/rafz": "~9.4.5", + "@react-spring/types": "~9.4.5" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0" + "react": "^16.8.0 || >=17.0.0 || >=18.0.0" } }, "node_modules/@react-spring/types": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.3.2.tgz", - "integrity": "sha512-u+IK9z9Re4hjNkBYKebZr7xVDYTai2RNBsI4UPL/k0B6lCNSwuqWIXfKZUDVlMOeZHtDqayJn4xz6HcSkTj3FQ==", + "version": "9.4.5", + "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.4.5.tgz", + "integrity": "sha512-mpRIamoHwql0ogxEUh9yr4TP0xU5CWyZxVQeccGkHHF8kPMErtDXJlxyo0lj+telRF35XNihtPTWoflqtyARmg==", "license": "MIT" }, "node_modules/@react-spring/web": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.3.1.tgz", - "integrity": "sha512-sisZIgFGva/Z+xKWPSfXpukF0AP3kR9ALTxlHL87fVotMUCJX5vtH/YlVcywToEFwTHKt3MpI5Wy2M+vgVEeaw==", + "version": "9.4.5", + "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.4.5.tgz", + "integrity": "sha512-NGAkOtKmOzDEctL7MzRlQGv24sRce++0xAY7KlcxmeVkR7LRSGkoXHaIfm9ObzxPMcPHQYQhf3+X9jepIFNHQA==", "license": "MIT", "dependencies": { - "@react-spring/animated": "~9.3.0", - "@react-spring/core": "~9.3.0", - "@react-spring/shared": "~9.3.0", - "@react-spring/types": "~9.3.0" + "@react-spring/animated": "~9.4.5", + "@react-spring/core": "~9.4.5", + "@react-spring/shared": "~9.4.5", + "@react-spring/types": "~9.4.5" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0", - "react-dom": "^16.8.0 || ^17.0.0" + "react": "^16.8.0 || >=17.0.0 || >=18.0.0", + "react-dom": "^16.8.0 || >=17.0.0 || >=18.0.0" } }, "node_modules/@rtsao/scc": { diff --git a/frontend/package.json b/frontend/package.json index 22c6d535..e992a3a8 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -27,8 +27,8 @@ "@mantine/dates": "^4.2.7", "@mantine/hooks": "^4.2.7", "@mantine/modals": "^4.2.7", - "@nivo/bar": "^0.79.1", - "@nivo/core": "^0.79.0", + "@nivo/bar": "^0.80.0", + "@nivo/core": "^0.80.0", "@reach/listbox": "^0.16.2", "@reach/menu-button": "^0.16.2", "@reach/tabs": "^0.16.4", diff --git a/frontend/src/components/ResponseSubmission.utils.tsx b/frontend/src/components/ResponseSubmission.utils.tsx index 1f00b8ad..1e65833f 100644 --- a/frontend/src/components/ResponseSubmission.utils.tsx +++ b/frontend/src/components/ResponseSubmission.utils.tsx @@ -1,4 +1,4 @@ -import { DeepRequired, FieldErrorsImpl, FieldValues, UseFormRegister } from "react-hook-form"; +import { DeepRequired, FieldErrors, FieldValues, UseFormRegister } from "react-hook-form"; import { PostContract, Question, QuestionType, SubmissionContract } from "openapi"; import CheckboxQuestion from "./Questions/CheckboxQuestion"; @@ -8,7 +8,7 @@ import FreeformInputQuestion from "./Questions/FreeformInputQuestion"; export const switchQuestionType = ( question: Question, register: UseFormRegister, - errors: FieldErrorsImpl>, + errors: FieldErrors>, disableEditCondition: boolean ) => { switch (question.type) { diff --git a/frontend/src/pages/_app.tsx b/frontend/src/pages/_app.tsx index a05d4452..47892014 100644 --- a/frontend/src/pages/_app.tsx +++ b/frontend/src/pages/_app.tsx @@ -16,7 +16,7 @@ const isDevelopmentEnv = process.env.NODE_ENV === "development"; function MyApp({ Component, pageProps }: AppProps) { return ( - +