From e11e645c7407a37545e78bbf8976ecc31e40bee7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 14:35:12 +0000 Subject: [PATCH 1/3] Bump fuse.js from 6.6.2 to 7.0.0 (#2177) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Manan Tank --- .changeset/smart-poets-provide.md | 5 +++++ packages/react/package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .changeset/smart-poets-provide.md diff --git a/.changeset/smart-poets-provide.md b/.changeset/smart-poets-provide.md new file mode 100644 index 00000000000..786d6396316 --- /dev/null +++ b/.changeset/smart-poets-provide.md @@ -0,0 +1,5 @@ +--- +"@thirdweb-dev/react": patch +--- + +Bump fuse.js from 6.6.2 to 7.0.0 diff --git a/packages/react/package.json b/packages/react/package.json index 95b7b2f525b..99cc9f7b303 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -131,7 +131,7 @@ "buffer": "^6.0.3", "copy-to-clipboard": "^3.3.2", "detect-browser": "^5.3.0", - "fuse.js": "^6.6.2", + "fuse.js": "^7.0.0", "qrcode": "^1.5.3", "tiny-invariant": "^1.2.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 96b242fb98c..78bbdab3d73 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -642,8 +642,8 @@ importers: specifier: ^5.3.0 version: 5.3.0 fuse.js: - specifier: ^6.6.2 - version: 6.6.2 + specifier: ^7.0.0 + version: 7.0.0 qrcode: specifier: ^1.5.3 version: 1.5.3 @@ -20486,8 +20486,8 @@ packages: /functions-have-names@1.2.3: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} - /fuse.js@6.6.2: - resolution: {integrity: sha512-cJaJkxCCxC8qIIcPBF9yGxY0W/tVZS3uEISDxhYIdtk8OL93pe+6Zj7LjCqVV4dzbqcriOZ+kQ/NE4RXZHsIGA==} + /fuse.js@7.0.0: + resolution: {integrity: sha512-14F4hBIxqKvD4Zz/XjDc3y94mNZN6pRv3U13Udo0lNLCWRBUsrMv2xwcF/y/Z5sV6+FQW+/ow68cHpm4sunt8Q==} engines: {node: '>=10'} dev: false From 9e1455294a3029fc0a82a18c4075c54d269f3c82 Mon Sep 17 00:00:00 2001 From: Yash <67926590+Yash094@users.noreply.github.com> Date: Tue, 16 Jan 2024 20:05:30 +0530 Subject: [PATCH 2/3] Add: Example for useOwnedNFTs hook for queryParams (#2170) --- .../react-core/src/evm/hooks/async/nft.ts | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/packages/react-core/src/evm/hooks/async/nft.ts b/packages/react-core/src/evm/hooks/async/nft.ts index b311f8629a9..434aad43015 100644 --- a/packages/react-core/src/evm/hooks/async/nft.ts +++ b/packages/react-core/src/evm/hooks/async/nft.ts @@ -335,8 +335,26 @@ export function useTotalCirculatingSupply( * @param ownerWalletAddress - * The wallet address to get owned tokens for. Likely, you will want to view the connected wallet’s NFTs. use the `useAddress` hook to get this value. * - * @param queryParams - Query params to pass to the query for pagination + * @param queryParams - + * Paginate the results by providing a `queryParams` object as an argument. * + * ```jsx + * import { useOwnedNFTs, useContract, useAddress } from "@thirdweb-dev/react"; + * + * function App() { + * const { contract } = useContract(contractAddress); + * const address = useAddress(); + * const { data, isLoading, error } = useOwnedNFTs( + * contract, + * address + * { + * count: 10, // Limit the number of results + * start: 0, // Start from the nth result (useful for pagination) + * }, + * ); + * } + * ``` + * * @returns Query result object that includes the list of owned `NFT` objects * * @twfeature ERC721Enumerable | ERC1155Enumerable | ERC721Supply From 2e057827e34b34ba18c1bf258802da12983d2cf5 Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Tue, 16 Jan 2024 20:23:44 +0530 Subject: [PATCH 3/3] [react] Remove unused deps (#2181) --- packages/react/package.json | 2 -- pnpm-lock.yaml | 30 ------------------------------ 2 files changed, 32 deletions(-) diff --git a/packages/react/package.json b/packages/react/package.json index 99cc9f7b303..042e85902a9 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -84,7 +84,6 @@ "@thirdweb-dev/auth": "workspace:*", "@thirdweb-dev/sdk": "workspace:*", "@thirdweb-dev/tsconfig": "workspace:*", - "@types/color": "^3.0.3", "@types/qrcode": "^1.5.2", "@types/react": "^18.2.17", "@types/react-dom": "^18.2.7", @@ -121,7 +120,6 @@ "@radix-ui/react-popover": "^1.0.6", "@radix-ui/react-tabs": "^1.0.4", "@radix-ui/react-tooltip": "^1.0.6", - "@react-icons/all-files": "^4.1.0", "@tanstack/react-query": "^4.33.0", "@thirdweb-dev/chains": "workspace:*", "@thirdweb-dev/payments": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 78bbdab3d73..b6b7fe02d93 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -611,9 +611,6 @@ importers: '@radix-ui/react-tooltip': specifier: ^1.0.6 version: 1.0.6(@types/react-dom@18.2.7)(@types/react@18.2.17)(react-dom@18.2.0)(react@18.2.0) - '@react-icons/all-files': - specifier: ^4.1.0 - version: 4.1.0(react@18.2.0) '@tanstack/react-query': specifier: ^4.33.0 version: 4.33.0(react-dom@18.2.0)(react@18.2.0) @@ -684,9 +681,6 @@ importers: '@thirdweb-dev/tsconfig': specifier: workspace:* version: link:../tw-tsconfig - '@types/color': - specifier: ^3.0.3 - version: 3.0.3 '@types/qrcode': specifier: ^1.5.2 version: 1.5.2 @@ -11201,14 +11195,6 @@ packages: '@babel/runtime': 7.23.8 dev: false - /@react-icons/all-files@4.1.0(react@18.2.0): - resolution: {integrity: sha512-hxBI2UOuVaI3O/BhQfhtb4kcGn9ft12RWAFVMUeNjqqhLsHvFtzIkFaptBJpFDANTKoDfdVoHTKZDlwKCACbMQ==} - peerDependencies: - react: '*' - dependencies: - react: 18.2.0 - dev: false - /@react-native-async-storage/async-storage@1.18.2(react-native@0.71.11): resolution: {integrity: sha512-dM8AfdoeIxlh+zqgr0o5+vCTPQ0Ru1mrPzONZMsr7ufp5h+6WgNxQNza7t0r5qQ6b04AJqTlBNixTWZxqP649Q==} peerDependencies: @@ -13030,22 +13016,6 @@ packages: resolution: {integrity: sha512-mEo1sAde+UCE6b2hxn332f1g1E8WfYRu6p5SvTKr2ZKC1f7gFJXk4h5PyGP9Dt6gCaG8y8XhwnXWC6Iy2cmBng==} dev: true - /@types/color-convert@2.0.0: - resolution: {integrity: sha512-m7GG7IKKGuJUXvkZ1qqG3ChccdIM/qBBo913z+Xft0nKCX4hAU/IxKwZBU4cpRZ7GS5kV4vOblUkILtSShCPXQ==} - dependencies: - '@types/color-name': 1.1.1 - dev: true - - /@types/color-name@1.1.1: - resolution: {integrity: sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==} - dev: true - - /@types/color@3.0.3: - resolution: {integrity: sha512-X//qzJ3d3Zj82J9sC/C18ZY5f43utPbAJ6PhYt/M7uG6etcF6MRpKdN880KBy43B0BMzSfeT96MzrsNjFI3GbA==} - dependencies: - '@types/color-convert': 2.0.0 - dev: true - /@types/configstore@6.0.0: resolution: {integrity: sha512-GUvNiia85zTDDIx0iPrtF3pI8dwrQkfuokEqxqPDE55qxH0U5SZz4awVZjiJLWN2ZZRkXCUqgsMUbygXY+kytA==} dev: true