diff --git a/.lintstagedrc b/.lintstagedrc index 2128754..f5a7edc 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,9 +1,4 @@ { - "*.{ts,tsx,js,sol,json}": [ - "eslint --cache --fix", - "prettier --write" - ], - "*.md": [ - "prettier --write" - ] + "*.{ts,tsx,js,sol,json}": ["eslint --cache --fix", "prettier --write"], + "*.md": ["prettier --write"] } diff --git a/package.json b/package.json index 0f0345a..9f20bb6 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "private": true, "devDependencies": { "@types/luxon": "^3.1.0", - "@commitlint/config-conventional": "^17.2.0", - "commitlint": "^17.2.0", - "prettier": "^2.7.1", + "@commitlint/config-conventional": "^17.3.0", + "commitlint": "^17.3.0", + "prettier": "^2.8.0", "git-cz": "^4.9.0", "husky": "^8.0.2", "@testing-library/jest-dom": "^5.16.5", @@ -28,17 +28,17 @@ "eslint-plugin-prettier": "^4.2.1", "eslint-config-prettier": "^8.5.0", "ethers": "^5.7.2", - "wagmi": "^0.8.5", + "wagmi": "^0.8.8", "@rainbow-me/rainbowkit": "^0.8.0", - "@mui/material": "^5.10.15", - "@mui/joy": "^5.0.0-alpha.54", - "@mui/icons-material": "^5.10.15", + "@mui/material": "^5.10.16", + "@mui/joy": "^5.0.0-alpha.56", + "@mui/icons-material": "^5.10.16", "@emotion/react": "^11.10.5", "@emotion/styled": "^11.10.5", "@fontsource/public-sans": "^4.5.11", - "axios": "^1.1.3", + "axios": "^1.2.0", "qs": "^6.11.0", - "react-hook-form": "^7.39.5", + "react-hook-form": "^7.40.0", "@windingtree/org.id-utils": "1.2.4", "@windingtree/org.id-auth": "1.2.4", "@windingtree/org.json-schema": "1.0.2", @@ -48,7 +48,8 @@ "@rpldy/upload-button": "^1.3.0", "@rpldy/upload-preview": "^1.3.0", "@rpldy/upload-drop-zone": "^1.3.0", - "@rpldy/upload-url-input": "^1.3.0" + "@rpldy/upload-url-input": "^1.3.0", + "@rpldy/shared-ui": "^1.3.0" }, "scripts": { "start": "react-scripts start", diff --git a/src/components/ProfileForm.tsx b/src/components/ProfileForm.tsx index 63326a8..f0e9901 100644 --- a/src/components/ProfileForm.tsx +++ b/src/components/ProfileForm.tsx @@ -25,6 +25,7 @@ export type FormErrors = any; export interface ProfileConfig { profileConfig?: ProfileOption[]; + isUnit?: boolean; } export interface ProfileFormProps { diff --git a/src/components/ProfileImage.tsx b/src/components/ProfileImage.tsx index 6848111..8d4478b 100644 --- a/src/components/ProfileImage.tsx +++ b/src/components/ProfileImage.tsx @@ -1,8 +1,9 @@ -import { useState, forwardRef, useEffect } from 'react'; +import { useState, useEffect, forwardRef } from 'react'; import Uploady, { useItemStartListener, useItemFinishListener, useItemErrorListener, + useUploadyContext, } from '@rpldy/uploady'; import { asUploadButton } from '@rpldy/upload-button'; import { SxProps } from '@mui/joy/styles/types'; @@ -16,6 +17,7 @@ import { FormControl, FormLabel, CircularProgress, + Input, } from '@mui/joy'; import ImageIcon from '@mui/icons-material/Image'; import UploadIcon from '@mui/icons-material/Upload'; @@ -24,6 +26,7 @@ import { BE_URI } from '../config'; import { Message } from './Message'; export interface ProfileImageProps { + url?: string; label: string; required?: boolean; onChange: (url?: string) => void; @@ -31,6 +34,7 @@ export interface ProfileImageProps { } export interface ImageCardProps { + value?: string; onChange: (url?: string) => void; } @@ -46,14 +50,16 @@ export const CustomUploadButton = asUploadButton( endDecorator={loading && } disabled={loading} > - Upload image + Browse )), ); -export const ImageCard = ({ onChange }: ImageCardProps) => { +export const ImageCard = ({ value, onChange }: ImageCardProps) => { + const ctx = useUploadyContext(); const [loading, setLoading] = useState(false); - const [url, setUrl] = useState(); + const [url, setUrl] = useState(value); + const [customUrl, setCustomUrl] = useState(value || ''); const [error, setError] = useState(); useItemStartListener(() => { setError(undefined); @@ -63,14 +69,28 @@ export const ImageCard = ({ onChange }: ImageCardProps) => { if (uploadResponse) { setLoading(false); setUrl(uploadResponse.data.url); + setCustomUrl(uploadResponse.data.url); } }); useItemErrorListener(({ uploadResponse }) => { setLoading(false); setError(uploadResponse?.data?.message ?? 'Unknown error'); }); + useEffect(() => { + if (value) { + setUrl(value); + setCustomUrl(value); + } + }, [value]); useEffect(() => { onChange(url); + if (url && !url.startsWith('https://w3s.link/ipfs')) { + ctx.upload(url, { + destination: { + url: `${BE_URI}/api/fileUri`, + }, + }); + } }, [url]); const onReset = () => { setLoading(false); @@ -95,13 +115,45 @@ export const ImageCard = ({ onChange }: ImageCardProps) => { - + + + + { + setCustomUrl(target.value); + }} + /> + + { + setUrl(customUrl); + }} + > + + + + {error} @@ -110,12 +162,18 @@ export const ImageCard = ({ onChange }: ImageCardProps) => { ); }; -export const ProfileImage = ({ label, required, onChange, sx }: ProfileImageProps) => { +export const ProfileImage = ({ + url, + label, + required, + onChange, + sx, +}: ProfileImageProps) => { return ( {label} - + ); diff --git a/src/pages/Profile.tsx b/src/pages/Profile.tsx index 71f3d35..ca12e95 100644 --- a/src/pages/Profile.tsx +++ b/src/pages/Profile.tsx @@ -95,6 +95,13 @@ export const MigrationConfirmation = ({ onClose(data); }; + useEffect(() => { + if (rawOrgJson) { + // eslint-disable-next-line no-console + console.log('rawOrgJson:', rawOrgJson); + } + }, [rawOrgJson]); + useEffect(() => { if (vc) { // eslint-disable-next-line no-console @@ -215,13 +222,16 @@ export const Profile = () => { } = useForm(); const watchForm = watch(); const { orgJson, loading, error } = useOldOrgId(did); - const { profileConfig } = useMemo(() => { + const { profileConfig, isUnit } = useMemo(() => { let profileConfig: ProfileOption[] | undefined; + let isUnit: boolean | undefined; if (orgJson) { profileConfig = orgJson.organizationalUnit ? unitConfig : legalEntityConfig; + isUnit = orgJson.organizationalUnit !== undefined; } return { profileConfig, + isUnit, }; }, [orgJson]); @@ -304,7 +314,13 @@ export const Profile = () => {
- + {!logotype && ( { unregister={unregister} errors={errors as FormErrors} /> - + {error} diff --git a/yarn.lock b/yarn.lock index a77a273..332c57d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1102,26 +1102,26 @@ stream-browserify "^3.0.0" util "^0.12.4" -"@commitlint/cli@^17.2.0": - version "17.2.0" - resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-17.2.0.tgz#75cb39181cea98ccc3c9ec122c367af4252d0b5a" - integrity sha512-kd1zykcrjIKyDRftWW1E1TJqkgzeosEkv1BiYPCdzkb/g/3BrfgwZUHR1vg+HO3qKUb/0dN+jNXArhGGAHpmaQ== +"@commitlint/cli@^17.3.0": + version "17.3.0" + resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-17.3.0.tgz#d8497f03e27a5161178e802168d77de2941959a0" + integrity sha512-/H0md7TsKflKzVPz226VfXzVafJFO1f9+r2KcFvmBu08V0T56lZU1s8WL7/xlxqLMqBTVaBf7Ixtc4bskdEEZg== dependencies: "@commitlint/format" "^17.0.0" - "@commitlint/lint" "^17.2.0" - "@commitlint/load" "^17.2.0" + "@commitlint/lint" "^17.3.0" + "@commitlint/load" "^17.3.0" "@commitlint/read" "^17.2.0" "@commitlint/types" "^17.0.0" execa "^5.0.0" - lodash "^4.17.19" + lodash.isfunction "^3.0.9" resolve-from "5.0.0" resolve-global "1.0.0" yargs "^17.0.0" -"@commitlint/config-conventional@^17.2.0": - version "17.2.0" - resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-17.2.0.tgz#245086582cb02901eb4beaa52bc87d138238178f" - integrity sha512-g5hQqRa80f++SYS233dbDSg16YdyounMTAhVcmqtInNeY/GF3aA4st9SVtJxpeGrGmueMrU4L+BBb+6Vs5wrcg== +"@commitlint/config-conventional@^17.3.0": + version "17.3.0" + resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-17.3.0.tgz#77bcfabfed932bc80e97f31f2201ba05f504e145" + integrity sha512-hgI+fN5xF8nhS9uG/V06xyT0nlcyvHHMkq0kwRSr96vl5BFlRGaL2C0/YY4kQagfU087tmj01bJkG9Ek98Wllw== dependencies: conventional-changelog-conventionalcommits "^5.0.0" @@ -1133,13 +1133,17 @@ "@commitlint/types" "^17.0.0" ajv "^8.11.0" -"@commitlint/ensure@^17.0.0": - version "17.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/ensure/-/ensure-17.0.0.tgz#781ff5f8870cb98ce4496d5c71649a4cd122a0e0" - integrity sha512-M2hkJnNXvEni59S0QPOnqCKIK52G1XyXBGw51mvh7OXDudCmZ9tZiIPpU882p475Mhx48Ien1MbWjCP1zlyC0A== +"@commitlint/ensure@^17.3.0": + version "17.3.0" + resolved "https://registry.yarnpkg.com/@commitlint/ensure/-/ensure-17.3.0.tgz#d7bb60291a254152b468ccb2be8c0dc79667247e" + integrity sha512-kWbrQHDoW5veIUQx30gXoLOCjWvwC6OOEofhPCLl5ytRPBDAQObMbxTha1Bt2aSyNE/IrJ0s0xkdZ1Gi3wJwQg== dependencies: "@commitlint/types" "^17.0.0" - lodash "^4.17.19" + lodash.camelcase "^4.3.0" + lodash.kebabcase "^4.1.1" + lodash.snakecase "^4.1.1" + lodash.startcase "^4.4.0" + lodash.upperfirst "^4.3.1" "@commitlint/execute-rule@^17.0.0": version "17.0.0" @@ -1162,30 +1166,32 @@ "@commitlint/types" "^17.0.0" semver "7.3.7" -"@commitlint/lint@^17.2.0": - version "17.2.0" - resolved "https://registry.yarnpkg.com/@commitlint/lint/-/lint-17.2.0.tgz#a793579d56c3e73416c750d76f09510bc8a6479f" - integrity sha512-N2oLn4Dj672wKH5qJ4LGO+73UkYXGHO+NTVUusGw83SjEv7GjpqPGKU6KALW2kFQ/GsDefSvOjpSi3CzWHQBDg== +"@commitlint/lint@^17.3.0": + version "17.3.0" + resolved "https://registry.yarnpkg.com/@commitlint/lint/-/lint-17.3.0.tgz#16506deaa347d61bd1195b17df1c6809a553d2a0" + integrity sha512-VilOTPg0i9A7CCWM49E9bl5jytfTvfTxf9iwbWAWNjxJ/A5mhPKbm3sHuAdwJ87tDk1k4j8vomYfH23iaY+1Rw== dependencies: "@commitlint/is-ignored" "^17.2.0" "@commitlint/parse" "^17.2.0" - "@commitlint/rules" "^17.2.0" + "@commitlint/rules" "^17.3.0" "@commitlint/types" "^17.0.0" -"@commitlint/load@^17.2.0": - version "17.2.0" - resolved "https://registry.yarnpkg.com/@commitlint/load/-/load-17.2.0.tgz#11c9fb23a967ff1507a28931c91aae7f978ea4ae" - integrity sha512-HDD57qSqNrk399R4TIjw31AWBG8dBjNj1MrDKZKmC/wvimtnIFlqzcu1+sxfXIOHj/+M6tcMWDtvknGUd7SU+g== +"@commitlint/load@^17.3.0": + version "17.3.0" + resolved "https://registry.yarnpkg.com/@commitlint/load/-/load-17.3.0.tgz#ebfec0198dd1627627e32a2b2ae4744d297599a8" + integrity sha512-u/pV6rCAJrCUN+HylBHLzZ4qj1Ew3+eN9GBPhNi9otGxtOfA8b+8nJSxaNbcC23Ins/kcpjGf9zPSVW7628Umw== dependencies: "@commitlint/config-validator" "^17.1.0" "@commitlint/execute-rule" "^17.0.0" - "@commitlint/resolve-extends" "^17.1.0" + "@commitlint/resolve-extends" "^17.3.0" "@commitlint/types" "^17.0.0" "@types/node" "^14.0.0" chalk "^4.1.0" cosmiconfig "^7.0.0" cosmiconfig-typescript-loader "^4.0.0" - lodash "^4.17.19" + lodash.isplainobject "^4.0.6" + lodash.merge "^4.6.2" + lodash.uniq "^4.5.0" resolve-from "^5.0.0" ts-node "^10.8.1" typescript "^4.6.4" @@ -1215,24 +1221,24 @@ git-raw-commits "^2.0.0" minimist "^1.2.6" -"@commitlint/resolve-extends@^17.1.0": - version "17.1.0" - resolved "https://registry.yarnpkg.com/@commitlint/resolve-extends/-/resolve-extends-17.1.0.tgz#7cf04fa13096c8a6544a4af13321fdf8d0d50694" - integrity sha512-jqKm00LJ59T0O8O4bH4oMa4XyJVEOK4GzH8Qye9XKji+Q1FxhZznxMV/bDLyYkzbTodBt9sL0WLql8wMtRTbqQ== +"@commitlint/resolve-extends@^17.3.0": + version "17.3.0" + resolved "https://registry.yarnpkg.com/@commitlint/resolve-extends/-/resolve-extends-17.3.0.tgz#413a9ec393266d0673e6b9ec2f0974c358ed662d" + integrity sha512-Lf3JufJlc5yVEtJWC8o4IAZaB8FQAUaVlhlAHRACd0TTFizV2Lk2VH70et23KgvbQNf7kQzHs/2B4QZalBv6Cg== dependencies: "@commitlint/config-validator" "^17.1.0" "@commitlint/types" "^17.0.0" import-fresh "^3.0.0" - lodash "^4.17.19" + lodash.mergewith "^4.6.2" resolve-from "^5.0.0" resolve-global "^1.0.0" -"@commitlint/rules@^17.2.0": - version "17.2.0" - resolved "https://registry.yarnpkg.com/@commitlint/rules/-/rules-17.2.0.tgz#b49d5ee3b5f599d7c21aab453bb055ecdc6c2e7c" - integrity sha512-1YynwD4Eh7HXZNpqG8mtUlL2pSX2jBy61EejYJv4ooZPcg50Ak7LPOyD3a9UZnsE76AXWFBz+yo9Hv4MIpAa0Q== +"@commitlint/rules@^17.3.0": + version "17.3.0" + resolved "https://registry.yarnpkg.com/@commitlint/rules/-/rules-17.3.0.tgz#4b31d6739f7eb8c7222b323b0bc2b63bd298a4ad" + integrity sha512-s2UhDjC5yP2utx3WWqsnZRzjgzAX8BMwr1nltC0u0p8T/nzpkx4TojEfhlsOUj1t7efxzZRjUAV0NxNwdJyk+g== dependencies: - "@commitlint/ensure" "^17.0.0" + "@commitlint/ensure" "^17.3.0" "@commitlint/message" "^17.2.0" "@commitlint/to-lines" "^17.0.0" "@commitlint/types" "^17.0.0" @@ -2238,78 +2244,59 @@ resolved "https://registry.yarnpkg.com/@metamask/safe-event-emitter/-/safe-event-emitter-2.0.0.tgz#af577b477c683fad17c619a78208cede06f9605c" integrity sha512-/kSXhY692qiV1MXu6EeOZvg5nECLclxNXcKCxJ3cXQgYuRymRHpdx/t7JXfsK+JLjwA1e1c1/SBrlQYpusC29Q== -"@mui/base@5.0.0-alpha.106": - version "5.0.0-alpha.106" - resolved "https://registry.yarnpkg.com/@mui/base/-/base-5.0.0-alpha.106.tgz#23e5f61639b5786318be873d7e6d26db412c5211" - integrity sha512-xJQQtwPCPwr6hGWTBdvDwHYwExn3Bw7nPQkN8Fuz8kHpZqoMVWQvvaFS557AIkkI2AFLV3DxVIMjbCvrIntBWg== - dependencies: - "@babel/runtime" "^7.20.1" - "@emotion/is-prop-valid" "^1.2.0" - "@mui/types" "^7.2.1" - "@mui/utils" "^5.10.14" - "@popperjs/core" "^2.11.6" - clsx "^1.2.1" - prop-types "^15.8.1" - react-is "^18.2.0" - -"@mui/base@5.0.0-alpha.107": - version "5.0.0-alpha.107" - resolved "https://registry.yarnpkg.com/@mui/base/-/base-5.0.0-alpha.107.tgz#5547bf3aaea148b58456e6898f74bc183bdcffa9" - integrity sha512-HX/BD8CSe+Y/dpbZ5aKJScJhKQ/Hw6du2yd68Upv2cO67bwixyZ64h3aNcdDu7RQzI7nrZQm0JykffP1Orgq0g== +"@mui/base@5.0.0-alpha.108": + version "5.0.0-alpha.108" + resolved "https://registry.yarnpkg.com/@mui/base/-/base-5.0.0-alpha.108.tgz#4e4639ba6769dd178ef475dba4cc36bf8a3f1dc6" + integrity sha512-KjzRUts2i/ODlMfywhFTqTzQl+Cr9nlDSZxJcnYjrbOV/iRyQNBTDoiFJt+XEdRi0fZBHnk74AFbnP56ehybsA== dependencies: "@babel/runtime" "^7.20.1" "@emotion/is-prop-valid" "^1.2.0" - "@mui/types" "^7.2.1" - "@mui/utils" "^5.10.15" + "@mui/types" "^7.2.2" + "@mui/utils" "^5.10.16" "@popperjs/core" "^2.11.6" clsx "^1.2.1" prop-types "^15.8.1" react-is "^18.2.0" -"@mui/core-downloads-tracker@^5.10.14": - version "5.10.14" - resolved "https://registry.yarnpkg.com/@mui/core-downloads-tracker/-/core-downloads-tracker-5.10.14.tgz#498a35c1aeab006ba5029f4e3954829f78c204c1" - integrity sha512-qLgIJNOR9Dre8JiZ/neVzOf4jf88J6YtOkQqugtMrleLjbfRVUSS4LWl9CSOjNq76quYdmYWnSDgfQqOooT2cQ== +"@mui/core-downloads-tracker@^5.10.16": + version "5.10.16" + resolved "https://registry.yarnpkg.com/@mui/core-downloads-tracker/-/core-downloads-tracker-5.10.16.tgz#4c2d36bcab58cb6250596b20601f499bfadc0642" + integrity sha512-eK9+olw2ZbXX+vGrtKnN01/vLP1aX0Lq0xok35bqWM1aB93Dcmky/xPNf8h31oJ/C+IzJBjZaZMEDzVZg4Qc0A== -"@mui/core-downloads-tracker@^5.10.15": - version "5.10.15" - resolved "https://registry.yarnpkg.com/@mui/core-downloads-tracker/-/core-downloads-tracker-5.10.15.tgz#490f3dea5327c892f063496a0219c48301da0fa0" - integrity sha512-xFcS0LpdF0Q1qJrrNsYUv9PU+ovvhCEPTOMw2jcpEFtl3CA87dLpvztORR5oE2UBFjWF7qLQLOwboQU1+xC7Cw== - -"@mui/icons-material@^5.10.15": - version "5.10.15" - resolved "https://registry.yarnpkg.com/@mui/icons-material/-/icons-material-5.10.15.tgz#c93f1ba8d2b55fe0a16f559a568304df172cbbcb" - integrity sha512-fXkz7CtYTt4AH4YYT67VFhM/A3YCUqZGGLp/3BlzRPQRNEfFKknw3MgG1S5UYrY5weti8jxMx3mwwfhVP8OMhQ== +"@mui/icons-material@^5.10.16": + version "5.10.16" + resolved "https://registry.yarnpkg.com/@mui/icons-material/-/icons-material-5.10.16.tgz#9c16054d0cc54d40267447128a07e79b516ead1e" + integrity sha512-jjCc0IF6iyLiucQCu5igg3fOscSqbbvRCmyRxXgzOcLR56B0sg2L8o+ZfJ0dAg59+wvgtXaxvjze/mJg0B4iWA== dependencies: "@babel/runtime" "^7.20.1" -"@mui/joy@^5.0.0-alpha.54": - version "5.0.0-alpha.54" - resolved "https://registry.yarnpkg.com/@mui/joy/-/joy-5.0.0-alpha.54.tgz#8351363fb2c44702a8f37cd26f1ea8b3c8b6b035" - integrity sha512-vUnKljreBBpOEnpDBV5GNQnMDWAHEE942TnGkf+Y4atcR1OJ0RO7rroSG522K+0bjMQF4N3lyn4YB62+yeLi3A== +"@mui/joy@^5.0.0-alpha.56": + version "5.0.0-alpha.56" + resolved "https://registry.yarnpkg.com/@mui/joy/-/joy-5.0.0-alpha.56.tgz#34346df0e6ab14bb464c7f706ab58b4374be54e6" + integrity sha512-xl6KrHxQEqIkId9HI6V0KN4YRvXsZY1TfP09GT0vS8MZ9nvbwxHLuOpzwHzlQ6BTU1LqfzJDSNooiaU2J5W3TA== dependencies: "@babel/runtime" "^7.20.1" - "@mui/base" "5.0.0-alpha.106" - "@mui/core-downloads-tracker" "^5.10.14" - "@mui/system" "^5.10.14" - "@mui/types" "^7.2.1" - "@mui/utils" "^5.10.14" + "@mui/base" "5.0.0-alpha.108" + "@mui/core-downloads-tracker" "^5.10.16" + "@mui/system" "^5.10.16" + "@mui/types" "^7.2.2" + "@mui/utils" "^5.10.16" clsx "^1.2.1" csstype "^3.1.1" prop-types "^15.8.1" react-is "^18.2.0" -"@mui/material@^5.10.15": - version "5.10.15" - resolved "https://registry.yarnpkg.com/@mui/material/-/material-5.10.15.tgz#37345f5a3d71c662703af7b5be0cca229b2a1416" - integrity sha512-OqoHfUtVMppFHgk2M95j+pR8MWfLKhzSdz4aKEfIpFrHIHbYang+oY7Iy/exX+vqpZSEGHgHQ0cGX0hGTGx9cg== +"@mui/material@^5.10.16": + version "5.10.16" + resolved "https://registry.yarnpkg.com/@mui/material/-/material-5.10.16.tgz#4ad6e69d81f11487f502591d8d060143d2e89b97" + integrity sha512-JSHcDQQ+k30NKkCM/0KX6jq4F5LOrbFKZpS+cEl7scZWOCJpUPH5ccAT5a7O8wzrgNZ8Y9PnwzNvWBrfShpJFw== dependencies: "@babel/runtime" "^7.20.1" - "@mui/base" "5.0.0-alpha.107" - "@mui/core-downloads-tracker" "^5.10.15" - "@mui/system" "^5.10.15" - "@mui/types" "^7.2.1" - "@mui/utils" "^5.10.15" + "@mui/base" "5.0.0-alpha.108" + "@mui/core-downloads-tracker" "^5.10.16" + "@mui/system" "^5.10.16" + "@mui/types" "^7.2.2" + "@mui/utils" "^5.10.16" "@types/react-transition-group" "^4.4.5" clsx "^1.2.1" csstype "^3.1.1" @@ -2317,82 +2304,48 @@ react-is "^18.2.0" react-transition-group "^4.4.5" -"@mui/private-theming@^5.10.14": - version "5.10.14" - resolved "https://registry.yarnpkg.com/@mui/private-theming/-/private-theming-5.10.14.tgz#3517f71a4c86de969f61fddc1db5023271627813" - integrity sha512-3aIBe8WK65CwAPDY8nB11hYnzE1CZMymi76UnaFrA/DdGDwl5Y8F6uB+StKrkVmsqF1po7Mp2odqVkHj320gXw== - dependencies: - "@babel/runtime" "^7.20.1" - "@mui/utils" "^5.10.14" - prop-types "^15.8.1" - -"@mui/private-theming@^5.10.15": - version "5.10.15" - resolved "https://registry.yarnpkg.com/@mui/private-theming/-/private-theming-5.10.15.tgz#f039181e197d04d100630829c58b5c33ede209bc" - integrity sha512-l7CsUj5kYdYz118/JHSvZZTYE9WnIWwln0td5jYATnYw9cNX4ygD6AkKOUYZ1Jitp1YLJqcO8jCP9E5/Nql9IQ== +"@mui/private-theming@^5.10.16": + version "5.10.16" + resolved "https://registry.yarnpkg.com/@mui/private-theming/-/private-theming-5.10.16.tgz#181ab7568a3cf0c6b12cc12f5a91aeb4509df1ce" + integrity sha512-0MArkJaOHRCKqL/GWjngGZmyOeRz+uxffhx82bKcewr8swqV7xx7EFP02pk0L/gLdfcvYdqwH4YTVjG/+TaKrg== dependencies: "@babel/runtime" "^7.20.1" - "@mui/utils" "^5.10.15" + "@mui/utils" "^5.10.16" prop-types "^15.8.1" -"@mui/styled-engine@^5.10.14": - version "5.10.14" - resolved "https://registry.yarnpkg.com/@mui/styled-engine/-/styled-engine-5.10.14.tgz#4395198a1919254a3edabf6e8fc8d43c9c59b5c3" - integrity sha512-bgKdM57ExogWpIfhL/ngSlzF4FhbH00vYF+Y5VALTob4uslFqje0xzoWmbfcCn4cZt2NXxZJIwhsq4vzo5itlw== +"@mui/styled-engine@^5.10.16": + version "5.10.16" + resolved "https://registry.yarnpkg.com/@mui/styled-engine/-/styled-engine-5.10.16.tgz#52a2d31e4012958d21c92b42acaca4c3e79841b4" + integrity sha512-ZMSjXvtiGwGDKqrSlXhpxK2voUaF2/lpC/pSTfFmZvKH9j9a9h1/iwo3ybgjFVYGgbfNeW4h0xEchiRohu9xsw== dependencies: "@babel/runtime" "^7.20.1" "@emotion/cache" "^11.10.5" csstype "^3.1.1" prop-types "^15.8.1" -"@mui/system@^5.10.14": - version "5.10.14" - resolved "https://registry.yarnpkg.com/@mui/system/-/system-5.10.14.tgz#3bcc2d471c7faeaffecbb62e6b9087396a533c21" - integrity sha512-2de7XCjRb1j8Od0Stmo0LwFMLpOMNT4wzfINuExXI1TVSuyxXIXUxiC5FEgJW3GMvf/a7SUR8VOiMoKlKWzukw== +"@mui/system@^5.10.16": + version "5.10.16" + resolved "https://registry.yarnpkg.com/@mui/system/-/system-5.10.16.tgz#2b07d78eb5e337463045b81a59f718795807fdc7" + integrity sha512-OqI9B1jZ9zQ/dmoqseku4CzdEs9DbLiiMOaWxC3WeAJxM1UavlCgXz0encqm93LIlmSL7TjuHN1/rW8BJCnU8A== dependencies: "@babel/runtime" "^7.20.1" - "@mui/private-theming" "^5.10.14" - "@mui/styled-engine" "^5.10.14" - "@mui/types" "^7.2.1" - "@mui/utils" "^5.10.14" + "@mui/private-theming" "^5.10.16" + "@mui/styled-engine" "^5.10.16" + "@mui/types" "^7.2.2" + "@mui/utils" "^5.10.16" clsx "^1.2.1" csstype "^3.1.1" prop-types "^15.8.1" -"@mui/system@^5.10.15": - version "5.10.15" - resolved "https://registry.yarnpkg.com/@mui/system/-/system-5.10.15.tgz#4bb58d1d1a531137559b775038a18d6050d9ee57" - integrity sha512-WZmgmpYTMXAaD++QetaaM/miwhNh1JJY1dH7MJH/3Fuv3r3gnhfzE6A55lDqWxkQmlWUO2DCn/cnNZ0FkSdZUg== - dependencies: - "@babel/runtime" "^7.20.1" - "@mui/private-theming" "^5.10.15" - "@mui/styled-engine" "^5.10.14" - "@mui/types" "^7.2.1" - "@mui/utils" "^5.10.15" - clsx "^1.2.1" - csstype "^3.1.1" - prop-types "^15.8.1" - -"@mui/types@^7.2.1": - version "7.2.1" - resolved "https://registry.yarnpkg.com/@mui/types/-/types-7.2.1.tgz#1eb2bc182c595029884047f2525ad4dbefea318e" - integrity sha512-c5mSM7ivD8EsqK6HUi9hQPr5V7TJ/IRThUQ9nWNYPdhCGriTSQV4vL6DflT99LkM+wLiIS1rVjphpEWxERep7A== - -"@mui/utils@^5.10.14": - version "5.10.14" - resolved "https://registry.yarnpkg.com/@mui/utils/-/utils-5.10.14.tgz#260bf52b2eb5a95ee80f2de4092ebf25d3d83e88" - integrity sha512-12p59+wDZpA++XVJmKwqsZmrA1nmUQ5d0a1yQWtcDjxNyER1EDzozYN/db+FY2i5ceQh2TynPTEwGms2mXDwFg== - dependencies: - "@babel/runtime" "^7.20.1" - "@types/prop-types" "^15.7.5" - "@types/react-is" "^16.7.1 || ^17.0.0" - prop-types "^15.8.1" - react-is "^18.2.0" +"@mui/types@^7.2.2": + version "7.2.2" + resolved "https://registry.yarnpkg.com/@mui/types/-/types-7.2.2.tgz#723f6d40c25c89c2e0352a7e51794e8eb77cdbe3" + integrity sha512-siex8cZDtWeC916cXOoUOnEQQejuMYmHtc4hM6VkKVYaBICz3VIiqyiAomRboTQHt2jchxQ5Q5ATlbcDekTxDA== -"@mui/utils@^5.10.15": - version "5.10.15" - resolved "https://registry.yarnpkg.com/@mui/utils/-/utils-5.10.15.tgz#54fc1b373508d20dd5568070b2dcc0818e6bebba" - integrity sha512-6AW4MLBUijJi31hxx+6utTJM2q/4hbO+QiMdtwM+f4Iy+BfFnh/elhb08apxNYLfuugPnXXpkDmzEjg+8uDU9g== +"@mui/utils@^5.10.16": + version "5.10.16" + resolved "https://registry.yarnpkg.com/@mui/utils/-/utils-5.10.16.tgz#7a981444855968ebdb1830d76e298d1ac47eaaf6" + integrity sha512-3MB/SGsgiiu9Z55CFmAfiONUoR7AAue/H4F6w3mc2LnhFQCsoVvXhioDPcsiRpUMIQr34jDPzGXdCuqWooPCXQ== dependencies: "@babel/runtime" "^7.20.1" "@types/prop-types" "^15.7.5" @@ -3394,10 +3347,10 @@ resolved "https://registry.yarnpkg.com/@vanilla-extract/sprinkles/-/sprinkles-1.5.0.tgz#c921183ae518bb484299c2dc81f2acefd91c3dbe" integrity sha512-W58f2Rzz5lLmk0jbhgStVlZl5wEiPB1Ur3fRvUaBM+MrifZ3qskmFq/CiH//fEYeG5Dh9vF1qRviMMH46cX9Nw== -"@wagmi/core@0.7.4": - version "0.7.4" - resolved "https://registry.yarnpkg.com/@wagmi/core/-/core-0.7.4.tgz#cc5201e7dc405a88886b5eddc74ac4e3e2f1c15f" - integrity sha512-HhN5p0C9dlU1pWNF54hBEXLn12n5ueUJAxl0eg4YtcTTw/VIg/GSINm0eYkVznFPf4qus9ODA9BGTQ7k79d2gQ== +"@wagmi/core@0.7.7": + version "0.7.7" + resolved "https://registry.yarnpkg.com/@wagmi/core/-/core-0.7.7.tgz#eb42f1986763207fe8ccffdb80752a08bbec605f" + integrity sha512-28SRBNfU41Urf5AOVdjZPbWE9wvOZd8DE2FYiPqgHb4RFlVh76TAMBDBAsX7WLXfH7D4cFxYwTFX1tub/fAksQ== dependencies: abitype "^0.1.8" eventemitter3 "^4.0.7" @@ -4140,7 +4093,7 @@ axe-core@^4.4.3: resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.5.2.tgz#823fdf491ff717ac3c58a52631d4206930c1d9f7" integrity sha512-u2MVsXfew5HBvjsczCv+xlwdNnB1oQR9HlAcsejZttNjKKSkeDNVwB1vMThIUIFI9GoT57Vtk8iQLwqOfAkboA== -axios@1.1.3, axios@^1.1.3: +axios@1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/axios/-/axios-1.1.3.tgz#8274250dada2edf53814ed7db644b9c2866c1e35" integrity sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA== @@ -4156,6 +4109,15 @@ axios@^0.21.0: dependencies: follow-redirects "^1.14.0" +axios@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.2.0.tgz#1cb65bd75162c70e9f8d118a905126c4a201d383" + integrity sha512-zT7wZyNYu3N5Bu0wuZ6QccIf93Qk1eV8LOewxgjOZFd2DenOs98cJ7+Y6703d0wkaXGY6/nZd4EweJaHz9uzQw== + dependencies: + follow-redirects "^1.15.0" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + axobject-query@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.2.0.tgz#943d47e10c0b704aa42275e20edf3722648989be" @@ -4862,12 +4824,12 @@ commander@^8.3.0: resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== -commitlint@^17.2.0: - version "17.2.0" - resolved "https://registry.yarnpkg.com/commitlint/-/commitlint-17.2.0.tgz#0cc0b15aec02d4e2d87a20cf9922295481b17b76" - integrity sha512-0EWPSQUkAO/cF3uDsxANw4mPzIsrgJs46WOFJybwF5n4yLTYeaGdrzkzsqOIUU2c6Wn0sdYv+xZSFRlCnzIfgw== +commitlint@^17.3.0: + version "17.3.0" + resolved "https://registry.yarnpkg.com/commitlint/-/commitlint-17.3.0.tgz#325f3786e2f765d96fd1d7a18f8e78362e959385" + integrity sha512-jKytr2eesn2HpRZrr/37O1AQkDsR4VTIVRoAe4oJF3Eg22jp8gaIMvC0/YDoLzNPQEH5VXNhP/uvco70ritGEA== dependencies: - "@commitlint/cli" "^17.2.0" + "@commitlint/cli" "^17.3.0" "@commitlint/types" "^17.0.0" common-path-prefix@^3.0.0: @@ -8462,11 +8424,31 @@ locate-path@^6.0.0: dependencies: p-locate "^5.0.0" +lodash.camelcase@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" + integrity sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA== + lodash.debounce@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== +lodash.isfunction@^3.0.9: + version "3.0.9" + resolved "https://registry.yarnpkg.com/lodash.isfunction/-/lodash.isfunction-3.0.9.tgz#06de25df4db327ac931981d1bdb067e5af68d051" + integrity sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw== + +lodash.isplainobject@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" + integrity sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA== + +lodash.kebabcase@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz#8489b1cb0d29ff88195cceca448ff6d6cc295c36" + integrity sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g== + lodash.memoize@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" @@ -8477,17 +8459,37 @@ lodash.merge@^4.6.2: resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== +lodash.mergewith@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz#617121f89ac55f59047c7aec1ccd6654c6590f55" + integrity sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ== + +lodash.snakecase@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz#39d714a35357147837aefd64b5dcbb16becd8f8d" + integrity sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw== + lodash.sortby@^4.7.0: version "4.7.0" resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" integrity sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA== +lodash.startcase@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.startcase/-/lodash.startcase-4.4.0.tgz#9436e34ed26093ed7ffae1936144350915d9add8" + integrity sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg== + lodash.uniq@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ== -lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.7.0: +lodash.upperfirst@^4.3.1: + version "4.3.1" + resolved "https://registry.yarnpkg.com/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz#1365edf431480481ef0d1c68957a5ed99d49f7ce" + integrity sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg== + +lodash@^4.17.15, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.7.0: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -9807,10 +9809,10 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@^2.7.1: - version "2.7.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" - integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== +prettier@^2.8.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.0.tgz#c7df58393c9ba77d6fba3921ae01faf994fb9dc9" + integrity sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA== pretty-bytes@^5.3.0, pretty-bytes@^5.4.1: version "5.6.0" @@ -10053,10 +10055,10 @@ react-error-overlay@^6.0.11: resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.11.tgz#92835de5841c5cf08ba00ddd2d677b6d17ff9adb" integrity sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg== -react-hook-form@^7.39.5: - version "7.39.5" - resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.39.5.tgz#a4272b60288ef5e1bb42bbb6ba3b36d243ab2879" - integrity sha512-OE0HKyz5IPc6svN2wd+e+evidZrw4O4WZWAWYzQVZuHi+hYnHFSLnxOq0ddjbdmaLIsLHut/ab7j72y2QT3+KA== +react-hook-form@^7.40.0: + version "7.40.0" + resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.40.0.tgz#62bc939dddca88522cd7f5135b6603192ccf7e17" + integrity sha512-0rokdxMPJs0k9bvFtY6dbcSydyNhnZNXCR49jgDr/aR03FDHFOK6gfh8ccqB3fl696Mk7lqh04xdm+agqWXKSw== react-is@^16.13.1, react-is@^16.7.0: version "16.13.1" @@ -11726,16 +11728,16 @@ w3c-xmlserializer@^2.0.0: dependencies: xml-name-validator "^3.0.0" -wagmi@^0.8.5: - version "0.8.5" - resolved "https://registry.yarnpkg.com/wagmi/-/wagmi-0.8.5.tgz#f15de70b8b7bca11bf9faccae2dd3eea980ce1df" - integrity sha512-LKxolobNPwTPsidtbgoA4x5zWUFeRAzaGqNE7AiSsM8wHRuClO6Mrp3XtGzVy/UfaMFE/yR1xWIJbiHXzeeEmA== +wagmi@^0.8.8: + version "0.8.8" + resolved "https://registry.yarnpkg.com/wagmi/-/wagmi-0.8.8.tgz#8a297c08999fa1560c14659401684755ee033cd6" + integrity sha512-KrDPkXLzQjxWY4Umu3HPAvJHerXK+7myB+X0z9RlDmgXhuoWgqQheW21XC/AQfeHFxHusLyjCgCXpJmz/DPVyA== dependencies: "@coinbase/wallet-sdk" "^3.5.3" "@tanstack/query-sync-storage-persister" "^4.14.5" "@tanstack/react-query" "^4.14.5" "@tanstack/react-query-persist-client" "^4.14.5" - "@wagmi/core" "0.7.4" + "@wagmi/core" "0.7.7" "@walletconnect/ethereum-provider" "^1.8.0" abitype "^0.1.7" use-sync-external-store "^1.2.0"