From 27678e4b3d84ae7a7100d180a92e2d82a698e4f0 Mon Sep 17 00:00:00 2001 From: Albert Folch Date: Fri, 7 Jun 2024 09:23:10 +0200 Subject: [PATCH 1/2] chore: upgrade react-kit --- package-lock.json | 557 +++++++++++++++++- package.json | 2 +- src/components/widgets/commit/Commit.tsx | 2 + .../widgets/commit/CommitDisplay.tsx | 4 +- src/components/widgets/finance/Finance.tsx | 3 + src/components/widgets/redeem/Redeem.tsx | 3 + .../widgets/redeem/RedeemDisplay.tsx | 2 +- 7 files changed, 539 insertions(+), 34 deletions(-) diff --git a/package-lock.json b/package-lock.json index bcfdcc1..66d1e83 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.1.0", "hasInstallScript": true, "dependencies": { - "@bosonprotocol/react-kit": "^0.31.1", + "@bosonprotocol/react-kit": "^0.32.0-alpha.5", "@krakenjs/zoid": "^10.3.3", "@svgr/webpack": "^8.1.0", "@testing-library/jest-dom": "^5.16.5", @@ -2157,9 +2157,9 @@ } }, "node_modules/@bosonprotocol/common": { - "version": "1.27.3", - "resolved": "https://registry.npmjs.org/@bosonprotocol/common/-/common-1.27.3.tgz", - "integrity": "sha512-XXBpWLopa/pwODJPiXHbRGpffHtZ5/u3bYABPKM7QeoPf4WSdxH+skF4r722NwN0kvY5F18ykUt/52UcZsWk+g==", + "version": "1.28.0-alpha.3", + "resolved": "https://registry.npmjs.org/@bosonprotocol/common/-/common-1.28.0-alpha.3.tgz", + "integrity": "sha512-yGg2x3r40l55n6p3/aX5U6iVHcvx2wy5zLcH/WHGc4KiQ0oRC3YJo7SQVoXpvTCHbe5ceYATldn03L7skbrcsg==", "dependencies": { "@bosonprotocol/metadata": "^1.16.1", "@ethersproject/abi": "^5.5.0", @@ -2171,11 +2171,11 @@ } }, "node_modules/@bosonprotocol/core-sdk": { - "version": "1.40.3", - "resolved": "https://registry.npmjs.org/@bosonprotocol/core-sdk/-/core-sdk-1.40.3.tgz", - "integrity": "sha512-wBlo9+WJfh55B3CgRA5GHpILLaCyfHkdSvYIei/7pE73QUSGwcln9/x2VH25cq2E+iI3Qr1sG8we2XTNlLx+rw==", + "version": "1.40.4-alpha.3", + "resolved": "https://registry.npmjs.org/@bosonprotocol/core-sdk/-/core-sdk-1.40.4-alpha.3.tgz", + "integrity": "sha512-a1zKNuN56/iSBN8PXaF6CzA1Rhs8t2q07NZK03e+efre4w46BkWbcmhgi1SSdcTs/XkYNJC+SY6VRovLQxFUdg==", "dependencies": { - "@bosonprotocol/common": "^1.27.3", + "@bosonprotocol/common": "^1.28.0-alpha.3", "@ethersproject/abi": "^5.5.0", "@ethersproject/address": "^5.5.0", "@ethersproject/bignumber": "^5.5.0", @@ -2205,11 +2205,11 @@ } }, "node_modules/@bosonprotocol/ethers-sdk": { - "version": "1.14.3", - "resolved": "https://registry.npmjs.org/@bosonprotocol/ethers-sdk/-/ethers-sdk-1.14.3.tgz", - "integrity": "sha512-GKq+pWSzlPSbh7L9lGcKgvW8yEspyEyp70wjmcwuYrKfi+IACFyxQQMtwd7a+yvhH8FXUYPIlL9jybl2PfICaw==", + "version": "1.14.4-alpha.3", + "resolved": "https://registry.npmjs.org/@bosonprotocol/ethers-sdk/-/ethers-sdk-1.14.4-alpha.3.tgz", + "integrity": "sha512-tA2vDxTa+TU23iT9gaYJdyD3pDW67KZDPmA4r6Ik0cLASNT34xxRxPHVjNenZpFmKRK70Eu//IFNi+T5Wc56ug==", "dependencies": { - "@bosonprotocol/common": "^1.27.3" + "@bosonprotocol/common": "^1.28.0-alpha.3" }, "peerDependencies": { "ethers": "^5.5.0" @@ -2235,17 +2235,18 @@ } }, "node_modules/@bosonprotocol/react-kit": { - "version": "0.31.1", - "resolved": "https://registry.npmjs.org/@bosonprotocol/react-kit/-/react-kit-0.31.1.tgz", - "integrity": "sha512-RkejKgwdjT1wqYsfeAiWofUzuZP0yERQMvGs4EMRKId453tPB4BlpfCtglIMNPIWtSw8185Dt6wpMnmaYCmY4g==", + "version": "0.32.0-alpha.5", + "resolved": "https://registry.npmjs.org/@bosonprotocol/react-kit/-/react-kit-0.32.0-alpha.5.tgz", + "integrity": "sha512-fm0zaLq4U4ed+3IaRaWNkRxUB57bh1FB6t4PAmpjuzlLg3yj47JAbx1Z1iWkhlraRRPxE7Qofh4l27NbTiZH8w==", "dependencies": { "@bosonprotocol/chat-sdk": "^1.3.1-alpha.9", - "@bosonprotocol/core-sdk": "^1.40.3", - "@bosonprotocol/ethers-sdk": "^1.14.3", + "@bosonprotocol/core-sdk": "^1.40.4-alpha.3", + "@bosonprotocol/ethers-sdk": "^1.14.4-alpha.3", "@bosonprotocol/ipfs-storage": "^1.11.3", "@davatar/react": "1.11.1", "@ethersproject/units": "5.6.0", "@glidejs/glide": "3.6.0", + "@metamask/jazzicon": "^2.0.0", "@rainbow-me/rainbowkit": "^1.3.4", "@sentry/browser": "7.43.0", "@svgr/webpack": "^8.1.0", @@ -2253,6 +2254,14 @@ "@uniswap/redux-multicall": "^1.1.8", "@uniswap/sdk-core": "^4.0.7", "@uniswap/token-lists": "^1.0.0-beta.33", + "@uniswap/v2-sdk": "^3.3.0", + "@uniswap/v3-periphery": "^1.4.4", + "@web3-react/coinbase-wallet": "^8.2.3", + "@web3-react/core": "^8.2.3", + "@web3-react/gnosis-safe": "^8.2.4", + "@web3-react/metamask": "^8.2.4", + "@web3-react/network": "^8.2.3", + "@web3-react/walletconnect-v2": "^8.5.1", "ajv": "^8.12.0", "babel-plugin-styled-components": "^2.1.4", "chart.js": "^4.4.1", @@ -2261,15 +2270,17 @@ "eth-revert-reason": "^1.0.3", "formik": "2.2.9", "graphql-request": "5.2.0", + "jotai": "^1.13.1", "lodash.merge": "4.6.2", "lodash.uniqby": "4.7.0", "magic-sdk": "^20.1.1", "multicodec": "^3.2.1", "multiformats": "^13.1.0", "multihashes": "^4.0.3", - "phosphor-react": "1.4.1", + "phosphor-react": "^1.4.1", "polished": "^4.2.2", "react-chartjs-2": "^5.2.0", + "react-error-boundary": "^4.0.13", "react-hot-toast": "2.4.0", "react-markdown": "8.0.6", "react-phone-number-input": "3.2.19", @@ -2279,6 +2290,7 @@ "react-select": "5.7.0", "react-slick": "^0.29.0", "react-table": "7.8.0", + "react-use-gesture": "^9.1.3", "redux-persist": "^6.0.0", "rehype-raw": "6.1.1", "remark-gfm": "3.0.1", @@ -2286,7 +2298,9 @@ "styled-components": "^6.1.8", "stylis": "^4.3.0", "tippy.js": "6.3.7", + "ua-parser-js": "^1.0.38", "use-async-effect": "2.2.7", + "use-resize-observer": "^9.1.0", "utility-types": "3.10.0", "viem": "^1.21.4", "wagmi": "^1.4.13", @@ -5143,6 +5157,11 @@ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" }, + "node_modules/@juggle/resize-observer": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@juggle/resize-observer/-/resize-observer-3.4.0.tgz", + "integrity": "sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==" + }, "node_modules/@krakenjs/belter": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/@krakenjs/belter/-/belter-2.5.0.tgz", @@ -5249,6 +5268,62 @@ "resolved": "https://registry.npmjs.org/@magic-sdk/types/-/types-17.0.2.tgz", "integrity": "sha512-KARxkKYtiX9PnQfuXyyshatZKAis0HPIDWZUGBBiAz2hXl7m8qgdepIhrLzcQ9SHn1gMI7Jd69m1ODTMDbcZPw==" }, + "node_modules/@metamask/detect-provider": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@metamask/detect-provider/-/detect-provider-1.2.0.tgz", + "integrity": "sha512-ocA76vt+8D0thgXZ7LxFPyqw3H7988qblgzddTDA6B8a/yU0uKV42QR/DhA+Jh11rJjxW0jKvwb5htA6krNZDQ==", + "engines": { + "node": ">= 10" + } + }, + "node_modules/@metamask/jazzicon": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@metamask/jazzicon/-/jazzicon-2.0.0.tgz", + "integrity": "sha512-7M+WSZWKcQAo0LEhErKf1z+D3YX0tEDAcGvcKbDyvDg34uvgeKR00mFNIYwAhdAS9t8YXxhxZgsrRBBg6X8UQg==", + "dependencies": { + "color": "^0.11.3", + "mersenne-twister": "^1.1.0" + } + }, + "node_modules/@metamask/jazzicon/node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/@metamask/jazzicon/node_modules/color": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/color/-/color-0.11.4.tgz", + "integrity": "sha512-Ajpjd8asqZ6EdxQeqGzU5WBhhTfJ/0cA4Wlbre7e5vXfmDSmda7Ov6jeKoru+b0vHcb1CqvuroTHp5zIWzhVMA==", + "dependencies": { + "clone": "^1.0.2", + "color-convert": "^1.3.0", + "color-string": "^0.3.0" + } + }, + "node_modules/@metamask/jazzicon/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@metamask/jazzicon/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/@metamask/jazzicon/node_modules/color-string": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-0.3.0.tgz", + "integrity": "sha512-sz29j1bmSDfoAxKIEU6zwoIZXN6BrFbAMIhfYCNyiZXBDuU/aiHlN84lp/xDzL2ubyFhLDobHIlU1X70XRrMDA==", + "dependencies": { + "color-name": "^1.0.0" + } + }, "node_modules/@metamask/safe-event-emitter": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@metamask/safe-event-emitter/-/safe-event-emitter-2.0.0.tgz", @@ -6201,9 +6276,9 @@ } }, "node_modules/@opensea/seaport-js": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@opensea/seaport-js/-/seaport-js-4.0.0.tgz", - "integrity": "sha512-xL0kv4CDdtuuJd7w2zI+cWR0e33T10Y9Sor+R1e1DfBHfc8w0POcgCqG0LsyAM0ZuopuYw4gwYY1eVyoqLJfVg==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@opensea/seaport-js/-/seaport-js-4.0.1.tgz", + "integrity": "sha512-zcSXQ9XH55/9RG0dl8jwyUsUEmuZNfrh5OhHVUUAWYQvw1/allhqjwPdIZvKJp/EGXSB7vDBXR5j4T0fN9ssCA==", "hasInstallScript": true, "dependencies": { "ethers": "^6.9.0", @@ -6229,9 +6304,9 @@ "integrity": "sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==" }, "node_modules/@opensea/seaport-js/node_modules/ethers": { - "version": "6.12.1", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.12.1.tgz", - "integrity": "sha512-j6wcVoZf06nqEcBbDWkKg8Fp895SS96dSnTCjiXT+8vt2o02raTn4Lo9ERUuIVU5bAjoPYeA+7ytQFexFmLuVw==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.0.tgz", + "integrity": "sha512-+yyQQQWEntY5UVbCv++guA14RRVFm1rSnO1GoLFdrK7/XRWMoktNgyG9UjwxrQqGBfGyFKknNZ81YpUS2emCgg==", "funding": [ { "type": "individual", @@ -6280,6 +6355,11 @@ } } }, + "node_modules/@openzeppelin/contracts": { + "version": "3.4.2-solc-0.7", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-3.4.2-solc-0.7.tgz", + "integrity": "sha512-W6QmqgkADuFcTLzHL8vVoNBtkwjvQRpYIAom7KiUNoLKghyx3FgH0GBjt8NRvigV1ZmMOBllvE1By1C+bi8WpA==" + }, "node_modules/@parcel/watcher": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.4.0.tgz", @@ -8427,6 +8507,14 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@uniswap/lib": { + "version": "4.0.1-alpha", + "resolved": "https://registry.npmjs.org/@uniswap/lib/-/lib-4.0.1-alpha.tgz", + "integrity": "sha512-f6UIliwBbRsgVLxIaBANF6w09tYqc6Y/qXdsrbEmXHyFA7ILiKrIwRFXe1yOg8M3cksgVsO9N7yuL2DdCGQKBA==", + "engines": { + "node": ">=10" + } + }, "node_modules/@uniswap/redux-multicall": { "version": "1.1.8", "resolved": "https://registry.npmjs.org/@uniswap/redux-multicall/-/redux-multicall-1.1.8.tgz", @@ -8467,6 +8555,52 @@ "node": ">=10" } }, + "node_modules/@uniswap/v2-core": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@uniswap/v2-core/-/v2-core-1.0.1.tgz", + "integrity": "sha512-MtybtkUPSyysqLY2U210NBDeCHX+ltHt3oADGdjqoThZaFRDKwM6k1Nb3F0A3hk5hwuQvytFWhrWHOEq6nVJ8Q==", + "engines": { + "node": ">=10" + } + }, + "node_modules/@uniswap/v2-sdk": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/@uniswap/v2-sdk/-/v2-sdk-3.3.0.tgz", + "integrity": "sha512-cf5PjoNQN5tNELIOVJsqV4/VeuDtxFw6Zl8oFmFJ6PNoQ8sx+XnGoO0aGKTB/o5II3oQ7820xtY3k47UsXgd6A==", + "dependencies": { + "@ethersproject/address": "^5.0.0", + "@ethersproject/solidity": "^5.0.0", + "@uniswap/sdk-core": "^4.0.7", + "tiny-invariant": "^1.1.0", + "tiny-warning": "^1.0.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@uniswap/v3-core": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@uniswap/v3-core/-/v3-core-1.0.1.tgz", + "integrity": "sha512-7pVk4hEm00j9tc71Y9+ssYpO6ytkeI0y7WE9P6UcmNzhxPePwyAxImuhVsTqWK9YFvzgtvzJHi64pBl4jUzKMQ==", + "engines": { + "node": ">=10" + } + }, + "node_modules/@uniswap/v3-periphery": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/@uniswap/v3-periphery/-/v3-periphery-1.4.4.tgz", + "integrity": "sha512-S4+m+wh8HbWSO3DKk4LwUCPZJTpCugIsHrWR86m/OrUyvSqGDTXKFfc2sMuGXCZrD1ZqO3rhQsKgdWg3Hbb2Kw==", + "dependencies": { + "@openzeppelin/contracts": "3.4.2-solc-0.7", + "@uniswap/lib": "^4.0.1-alpha", + "@uniswap/v2-core": "^1.0.1", + "@uniswap/v3-core": "^1.0.0", + "base64-sol": "1.0.1" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@vanilla-extract/css": { "version": "1.14.0", "resolved": "https://registry.npmjs.org/@vanilla-extract/css/-/css-1.14.0.tgz", @@ -9027,6 +9161,275 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, + "node_modules/@web3-react/coinbase-wallet": { + "version": "8.2.3", + "resolved": "https://registry.npmjs.org/@web3-react/coinbase-wallet/-/coinbase-wallet-8.2.3.tgz", + "integrity": "sha512-hYrOwv0RzhwQuI87GBv9ZHAblgrFg7YomnObOyuH2tPZT8+cQAtgP4D293TDQhW9SR1NXxzoS0tbTECWd4yUAQ==", + "dependencies": { + "@web3-react/types": "^8.2.3" + }, + "peerDependencies": { + "@coinbase/wallet-sdk": "^3.0.4" + } + }, + "node_modules/@web3-react/core": { + "version": "8.2.3", + "resolved": "https://registry.npmjs.org/@web3-react/core/-/core-8.2.3.tgz", + "integrity": "sha512-0ezmRKhqQpoa9ct2/3erg60zBXfC/f/liYR1mfSGKtIroRkLnPARigZSV6pI+fi8bhfGJ0RKtFWyTCCWZzdq1w==", + "dependencies": { + "@web3-react/store": "^8.2.3", + "@web3-react/types": "^8.2.3", + "zustand": "4.4.0" + }, + "optionalDependencies": { + "@ethersproject/providers": "^5" + }, + "peerDependencies": { + "react": ">=16.8" + } + }, + "node_modules/@web3-react/core/node_modules/zustand": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.4.0.tgz", + "integrity": "sha512-2dq6wq4dSxbiPTamGar0NlIG/av0wpyWZJGeQYtUOLegIUvhM2Bf86ekPlmgpUtS5uR7HyetSiktYrGsdsyZgQ==", + "dependencies": { + "use-sync-external-store": "1.2.0" + }, + "engines": { + "node": ">=12.7.0" + }, + "peerDependencies": { + "@types/react": ">=16.8", + "immer": ">=9.0", + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "immer": { + "optional": true + }, + "react": { + "optional": true + } + } + }, + "node_modules/@web3-react/gnosis-safe": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/@web3-react/gnosis-safe/-/gnosis-safe-8.2.4.tgz", + "integrity": "sha512-4M0CFludHJXtLsKJlKBIeMZcdTO60e6psYhYm2GLy76do9K9JJvBE8U4YVFBHLpk7sWpySsrCuYcaVZyzZ/xtA==", + "dependencies": { + "@safe-global/safe-apps-provider": "^0.17.1", + "@safe-global/safe-apps-sdk": "^8.0.0", + "@web3-react/types": "^8.2.3" + } + }, + "node_modules/@web3-react/gnosis-safe/node_modules/@safe-global/safe-apps-provider": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/@safe-global/safe-apps-provider/-/safe-apps-provider-0.17.1.tgz", + "integrity": "sha512-lYfRqrbbK1aKU1/UGkYWc/X7PgySYcumXKc5FB2uuwAs2Ghj8uETuW5BrwPqyjBknRxutFbTv+gth/JzjxAhdQ==", + "dependencies": { + "@safe-global/safe-apps-sdk": "8.0.0", + "events": "^3.3.0" + } + }, + "node_modules/@web3-react/gnosis-safe/node_modules/@safe-global/safe-apps-sdk": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@safe-global/safe-apps-sdk/-/safe-apps-sdk-8.0.0.tgz", + "integrity": "sha512-gYw0ki/EAuV1oSyMxpqandHjnthZjYYy+YWpTAzf8BqfXM3ItcZLpjxfg+3+mXW8HIO+3jw6T9iiqEXsqHaMMw==", + "dependencies": { + "@safe-global/safe-gateway-typescript-sdk": "^3.5.3", + "viem": "^1.0.0" + } + }, + "node_modules/@web3-react/gnosis-safe/node_modules/abitype": { + "version": "0.9.8", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-0.9.8.tgz", + "integrity": "sha512-puLifILdm+8sjyss4S+fsUN09obiT1g2YW6CtcQF+QDzxR0euzgEB29MZujC6zMk2a6SVmtttq1fc6+YFA7WYQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "peerDependencies": { + "typescript": ">=5.0.4", + "zod": "^3 >=3.19.1" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, + "node_modules/@web3-react/gnosis-safe/node_modules/typescript": { + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", + "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "optional": true, + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/@web3-react/gnosis-safe/node_modules/viem": { + "version": "1.21.4", + "resolved": "https://registry.npmjs.org/viem/-/viem-1.21.4.tgz", + "integrity": "sha512-BNVYdSaUjeS2zKQgPs+49e5JKocfo60Ib2yiXOWBT6LuVxY1I/6fFX3waEtpXvL1Xn4qu+BVitVtMh9lyThyhQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "dependencies": { + "@adraffy/ens-normalize": "1.10.0", + "@noble/curves": "1.2.0", + "@noble/hashes": "1.3.2", + "@scure/bip32": "1.3.2", + "@scure/bip39": "1.2.1", + "abitype": "0.9.8", + "isows": "1.0.3", + "ws": "8.13.0" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@web3-react/gnosis-safe/node_modules/ws": { + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/@web3-react/metamask": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/@web3-react/metamask/-/metamask-8.2.4.tgz", + "integrity": "sha512-4yoqDgvcB0QKUGSk00/fUipA3z5rOXcQYAwE0CABPa5lbTRAIm5i8F0Gj8UW7QO0pQus4UtjX0+JxWdclB7UrA==", + "dependencies": { + "@metamask/detect-provider": "^1.2.0", + "@web3-react/types": "^8.2.3" + } + }, + "node_modules/@web3-react/network": { + "version": "8.2.3", + "resolved": "https://registry.npmjs.org/@web3-react/network/-/network-8.2.3.tgz", + "integrity": "sha512-OAlXo3aNhldANmHt/N88SuLrWihVQizJf0cNy1cqnbNIAg87292PnAqCZrj3Pwaq/s8hoSgapc87zl1KFJeTjA==", + "dependencies": { + "@ethersproject/providers": "^5", + "@web3-react/types": "^8.2.3" + } + }, + "node_modules/@web3-react/store": { + "version": "8.2.3", + "resolved": "https://registry.npmjs.org/@web3-react/store/-/store-8.2.3.tgz", + "integrity": "sha512-qUJQ5pDsYYDra+/+glq2BmIS43HYAiEZ22sLLVh6E75WiZKRNOOqUxBDPe33KTIn718DLt51j+wd2FT+oT/kJQ==", + "dependencies": { + "@ethersproject/address": "^5", + "@web3-react/types": "^8.2.3", + "zustand": "4.4.0" + } + }, + "node_modules/@web3-react/store/node_modules/zustand": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.4.0.tgz", + "integrity": "sha512-2dq6wq4dSxbiPTamGar0NlIG/av0wpyWZJGeQYtUOLegIUvhM2Bf86ekPlmgpUtS5uR7HyetSiktYrGsdsyZgQ==", + "dependencies": { + "use-sync-external-store": "1.2.0" + }, + "engines": { + "node": ">=12.7.0" + }, + "peerDependencies": { + "@types/react": ">=16.8", + "immer": ">=9.0", + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "immer": { + "optional": true + }, + "react": { + "optional": true + } + } + }, + "node_modules/@web3-react/types": { + "version": "8.2.3", + "resolved": "https://registry.npmjs.org/@web3-react/types/-/types-8.2.3.tgz", + "integrity": "sha512-kSG90QkN+n7IOtp10nQ44oS8J7jzfH9EmqnruwBpCGybh1FM/ohyRvUKWYZNfNE4wsjTSpKsINR0/VdDsZMHyg==", + "dependencies": { + "zustand": "4.4.0" + } + }, + "node_modules/@web3-react/types/node_modules/zustand": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.4.0.tgz", + "integrity": "sha512-2dq6wq4dSxbiPTamGar0NlIG/av0wpyWZJGeQYtUOLegIUvhM2Bf86ekPlmgpUtS5uR7HyetSiktYrGsdsyZgQ==", + "dependencies": { + "use-sync-external-store": "1.2.0" + }, + "engines": { + "node": ">=12.7.0" + }, + "peerDependencies": { + "@types/react": ">=16.8", + "immer": ">=9.0", + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "immer": { + "optional": true + }, + "react": { + "optional": true + } + } + }, + "node_modules/@web3-react/walletconnect-v2": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/@web3-react/walletconnect-v2/-/walletconnect-v2-8.5.1.tgz", + "integrity": "sha512-K6RjdllFpEftTDQw39fRfuVcBLNCWXDxx5oZiWDc7D2RW071C0m1WridOeUiELmCXykyDCrIjd2zAVwV4GGueA==", + "dependencies": { + "@walletconnect/ethereum-provider": "^2.10.1", + "@walletconnect/modal": "^2.6.2", + "@web3-react/types": "^8.2.3", + "eventemitter3": "^4.0.7" + } + }, "node_modules/@webassemblyjs/ast": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", @@ -10146,6 +10549,11 @@ } ] }, + "node_modules/base64-sol": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/base64-sol/-/base64-sol-1.0.1.tgz", + "integrity": "sha512-ld3cCNMeXt4uJXmLZBHFGMvVpK9KsLVEhPpFRXnvSVAqABKbuNZg/+dsq3NuM+wxFLb/UrVkz7m1ciWmkMfTbg==" + }, "node_modules/batch": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", @@ -19830,6 +20238,63 @@ "jiti": "bin/jiti.js" } }, + "node_modules/jotai": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/jotai/-/jotai-1.13.1.tgz", + "integrity": "sha512-RUmH1S4vLsG3V6fbGlKzGJnLrDcC/HNb5gH2AeA9DzuJknoVxSGvvg8OBB7lke+gDc4oXmdVsaKn/xDUhWZ0vw==", + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "@babel/core": "*", + "@babel/template": "*", + "jotai-devtools": "*", + "jotai-immer": "*", + "jotai-optics": "*", + "jotai-redux": "*", + "jotai-tanstack-query": "*", + "jotai-urql": "*", + "jotai-valtio": "*", + "jotai-xstate": "*", + "jotai-zustand": "*", + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@babel/template": { + "optional": true + }, + "jotai-devtools": { + "optional": true + }, + "jotai-immer": { + "optional": true + }, + "jotai-optics": { + "optional": true + }, + "jotai-redux": { + "optional": true + }, + "jotai-tanstack-query": { + "optional": true + }, + "jotai-urql": { + "optional": true + }, + "jotai-valtio": { + "optional": true + }, + "jotai-xstate": { + "optional": true + }, + "jotai-zustand": { + "optional": true + } + } + }, "node_modules/jquery": { "version": "3.7.1", "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", @@ -22831,9 +23296,9 @@ "integrity": "sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==" }, "node_modules/opensea-js/node_modules/ethers": { - "version": "6.12.1", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.12.1.tgz", - "integrity": "sha512-j6wcVoZf06nqEcBbDWkKg8Fp895SS96dSnTCjiXT+8vt2o02raTn4Lo9ERUuIVU5bAjoPYeA+7ytQFexFmLuVw==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.0.tgz", + "integrity": "sha512-+yyQQQWEntY5UVbCv++guA14RRVFm1rSnO1GoLFdrK7/XRWMoktNgyG9UjwxrQqGBfGyFKknNZ81YpUS2emCgg==", "funding": [ { "type": "individual", @@ -25165,6 +25630,17 @@ "react": "^18.2.0" } }, + "node_modules/react-error-boundary": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-4.0.13.tgz", + "integrity": "sha512-b6PwbdSv8XeOSYvjt8LpgpKrZ0yGdtZokYwkwV2wlcZbxgopHX/hgPl5VgpnoVOWd868n1hktM8Qm4b+02MiLQ==", + "dependencies": { + "@babel/runtime": "^7.12.5" + }, + "peerDependencies": { + "react": ">=16.13.1" + } + }, "node_modules/react-error-overlay": { "version": "6.0.11", "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", @@ -25966,6 +26442,15 @@ "react-dom": ">=16.6.0" } }, + "node_modules/react-use-gesture": { + "version": "9.1.3", + "resolved": "https://registry.npmjs.org/react-use-gesture/-/react-use-gesture-9.1.3.tgz", + "integrity": "sha512-CdqA2SmS/fj3kkS2W8ZU8wjTbVBAIwDWaRprX7OKaj7HlGwBasGEFggmk5qNklknqk9zK/h8D355bEJFTpqEMg==", + "deprecated": "This package is no longer maintained. Please use @use-gesture/react instead", + "peerDependencies": { + "react": ">= 16.8.0" + } + }, "node_modules/read-cache": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", @@ -29076,9 +29561,9 @@ } }, "node_modules/ua-parser-js": { - "version": "1.0.37", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.37.tgz", - "integrity": "sha512-bhTyI94tZofjo+Dn8SN6Zv8nBDvyXTymAdM3LDI/0IboIUwTu1rEhW7v2TfiVsoYWgkQ4kOVqnI8APUFbIQIFQ==", + "version": "1.0.38", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.38.tgz", + "integrity": "sha512-Aq5ppTOfvrCMgAPneW1HfWj66Xi7XL+/mIy996R1/CLS/rcyJQm6QZdsKrUeivDFQ+Oc9Wyuwor8Ze8peEoUoQ==", "funding": [ { "type": "opencollective", @@ -29576,6 +30061,18 @@ } } }, + "node_modules/use-resize-observer": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/use-resize-observer/-/use-resize-observer-9.1.0.tgz", + "integrity": "sha512-R25VqO9Wb3asSD4eqtcxk8sJalvIOYBqS8MNZlpDSQ4l4xMQxC/J7Id9HoTqPq8FwULIn0PVW+OAqF2dyYbjow==", + "dependencies": { + "@juggle/resize-observer": "^3.3.1" + }, + "peerDependencies": { + "react": "16.8.0 - 18", + "react-dom": "16.8.0 - 18" + } + }, "node_modules/use-sidecar": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.2.tgz", diff --git a/package.json b/package.json index b23deca..d9c11e6 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ ] }, "dependencies": { - "@bosonprotocol/react-kit": "^0.31.1", + "@bosonprotocol/react-kit": "^0.32.0-alpha.5", "@krakenjs/zoid": "^10.3.3", "@svgr/webpack": "^8.1.0", "@testing-library/jest-dom": "^5.16.5", diff --git a/src/components/widgets/commit/Commit.tsx b/src/components/widgets/commit/Commit.tsx index 54b79f4..a511917 100644 --- a/src/components/widgets/commit/Commit.tsx +++ b/src/components/widgets/commit/Commit.tsx @@ -64,6 +64,8 @@ export function Commit() { <> `; diff --git a/src/components/widgets/finance/Finance.tsx b/src/components/widgets/finance/Finance.tsx index 17e09ff..07f4517 100644 --- a/src/components/widgets/finance/Finance.tsx +++ b/src/components/widgets/finance/Finance.tsx @@ -20,6 +20,9 @@ export function Finance() { } return ( `; From d44b295bbfdc3fe3c0439880fea03ce6e535cc9c Mon Sep 17 00:00:00 2001 From: Albert Folch Date: Fri, 7 Jun 2024 09:26:42 +0200 Subject: [PATCH 2/2] set redux provider to true --- src/components/widgets/finance/Finance.tsx | 2 +- src/components/widgets/redeem/Redeem.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/widgets/finance/Finance.tsx b/src/components/widgets/finance/Finance.tsx index 07f4517..f83ae8f 100644 --- a/src/components/widgets/finance/Finance.tsx +++ b/src/components/widgets/finance/Finance.tsx @@ -20,7 +20,7 @@ export function Finance() { } return (