diff --git a/package-lock.json b/package-lock.json index a2b9a6f..e42237e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "widgets", "version": "0.1.0", "dependencies": { - "@bosonprotocol/react-kit": "^0.19.1-alpha.2", + "@bosonprotocol/react-kit": "^0.20.0-alpha.6", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", @@ -2147,11 +2147,11 @@ } }, "node_modules/@bosonprotocol/common": { - "version": "1.22.4", - "resolved": "https://registry.npmjs.org/@bosonprotocol/common/-/common-1.22.4.tgz", - "integrity": "sha512-VfIVE0ej4OVSpiUtATEVdcN70dO9c/3BlkpKVPFHahbl6X4C/3xAucOy7ZuqyE+ZFywujWzF6Vx7/aaEi+qhag==", + "version": "1.23.0-alpha.6", + "resolved": "https://registry.npmjs.org/@bosonprotocol/common/-/common-1.23.0-alpha.6.tgz", + "integrity": "sha512-knKlHRhNZ6wiWOBZawCFzPLFVHGZkgTscWcXaWlTp01H4uIbfvkFbqNdWyLdORCryVe5BAdAw1p4rgJdlpk0Fg==", "dependencies": { - "@bosonprotocol/metadata": "^1.12.1", + "@bosonprotocol/metadata": "^1.12.2-alpha.0", "@ethersproject/abi": "^5.5.0", "@ethersproject/address": "^5.5.0", "@ethersproject/bignumber": "^5.5.0", @@ -2161,11 +2161,11 @@ } }, "node_modules/@bosonprotocol/core-sdk": { - "version": "1.29.0", - "resolved": "https://registry.npmjs.org/@bosonprotocol/core-sdk/-/core-sdk-1.29.0.tgz", - "integrity": "sha512-8I4hLkzwMGkr/tnIn93ns2SES0iBy+oOUAlliVS+YxSZ5qFEg6vs2cWtHYorcoLqXWaJEiWGXix/PIbKC7nj1w==", + "version": "1.30.0-alpha.6", + "resolved": "https://registry.npmjs.org/@bosonprotocol/core-sdk/-/core-sdk-1.30.0-alpha.6.tgz", + "integrity": "sha512-hwV6anYVspJDNl8n9TtkcttIE3p1uUpUkhl0u/XZO4oBG9wU/Eh9kqmJK587n1exZZHm49e8YBG1Ugf6aSkyPg==", "dependencies": { - "@bosonprotocol/common": "^1.22.4", + "@bosonprotocol/common": "^1.23.0-alpha.6", "@ethersproject/abi": "^5.5.0", "@ethersproject/address": "^5.5.0", "@ethersproject/bignumber": "^5.5.0", @@ -2194,44 +2194,44 @@ } }, "node_modules/@bosonprotocol/ethers-sdk": { - "version": "1.12.6", - "resolved": "https://registry.npmjs.org/@bosonprotocol/ethers-sdk/-/ethers-sdk-1.12.6.tgz", - "integrity": "sha512-8hgnDWKXpVVI+lqHR71YcNh06ic79M1/CgZdYU7Ov2n2t0/XeAGhv9m9ZUWtPP/YisZv75cHAd91IEbxOSaiJg==", + "version": "1.12.7-alpha.6", + "resolved": "https://registry.npmjs.org/@bosonprotocol/ethers-sdk/-/ethers-sdk-1.12.7-alpha.6.tgz", + "integrity": "sha512-5DALBLbQree5UpGUTGp3U69c2lIk00S0J+7K0K+JAw90JFcv4C6VejJrGZa+EJQvRJ/dETmKoQIiqjSz39oung==", "dependencies": { - "@bosonprotocol/common": "^1.22.4" + "@bosonprotocol/common": "^1.23.0-alpha.6" }, "peerDependencies": { "ethers": "^5.5.0" } }, "node_modules/@bosonprotocol/ipfs-storage": { - "version": "1.10.8", - "resolved": "https://registry.npmjs.org/@bosonprotocol/ipfs-storage/-/ipfs-storage-1.10.8.tgz", - "integrity": "sha512-usc1/bhLd9CC30NqN5lua+Gvs1o8yazy8KHQcxDgA82/NwFlXPgdWLkMzy5oqEKDAOY2I4lwyVH37x16sz161g==", + "version": "1.10.9-alpha.0", + "resolved": "https://registry.npmjs.org/@bosonprotocol/ipfs-storage/-/ipfs-storage-1.10.9-alpha.0.tgz", + "integrity": "sha512-eNdZmpcQgYEFq+OzxrJVc6bvIYTzpX/lA/TIT2t/gX9PRN3KHj8xicRn6cq9dUEzIkvlnE9SQKtD0gk3aDYVrQ==", "dependencies": { - "@bosonprotocol/metadata": "^1.12.1", + "@bosonprotocol/metadata": "^1.12.2-alpha.0", "ipfs-http-client": "^56.0.1", "multiformats": "^9.6.4", "uint8arrays": "^3.0.0" } }, "node_modules/@bosonprotocol/metadata": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/@bosonprotocol/metadata/-/metadata-1.12.1.tgz", - "integrity": "sha512-FV1uOmuNu5j+j26+l6cedGUdgzRijRRT9oYqk45DDG8GC32g3EUYalEbh9bw9YYKEne3nuWONpKbmzT0cWCk+w==", + "version": "1.12.2-alpha.0", + "resolved": "https://registry.npmjs.org/@bosonprotocol/metadata/-/metadata-1.12.2-alpha.0.tgz", + "integrity": "sha512-unpb3q+NFHjVatzdhQdFOmEty7GmQRF0tGflGbbIpervuZETY856uSv2Mz3kPycrBk9s9VR6L0I0vWQbYcI/sw==", "dependencies": { "schema-to-yup": "^1.11.11" } }, "node_modules/@bosonprotocol/react-kit": { - "version": "0.19.1-alpha.2", - "resolved": "https://registry.npmjs.org/@bosonprotocol/react-kit/-/react-kit-0.19.1-alpha.2.tgz", - "integrity": "sha512-uP3Fryq7cLcE2THUFwf5Q5j5Evk/GVG5R7rSMs5bNlQY1p9nhLyjND68KnlLku1032ikpXW/jBWS975RRSSEIw==", + "version": "0.20.0-alpha.6", + "resolved": "https://registry.npmjs.org/@bosonprotocol/react-kit/-/react-kit-0.20.0-alpha.6.tgz", + "integrity": "sha512-Vt9eoKBSnQJwRll6ZkQxL9LlQR4PmdeApwHvOjiPsR6SACo86uaohBX8/oW3/BFbk6ekHVK8FztoL/h5dD+W9Q==", "dependencies": { "@bosonprotocol/chat-sdk": "^1.3.1-alpha.9", - "@bosonprotocol/core-sdk": "^1.29.0", - "@bosonprotocol/ethers-sdk": "^1.12.6", - "@bosonprotocol/ipfs-storage": "^1.10.8", + "@bosonprotocol/core-sdk": "^1.30.0-alpha.6", + "@bosonprotocol/ethers-sdk": "^1.12.7-alpha.6", + "@bosonprotocol/ipfs-storage": "^1.10.9-alpha.0", "@davatar/react": "1.11.1", "@ethersproject/units": "5.6.0", "@glidejs/glide": "3.6.0", @@ -17099,9 +17099,9 @@ "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" }, "node_modules/ipfs-unixfs/node_modules/protobufjs": { - "version": "6.11.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", - "integrity": "sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==", + "version": "6.11.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.4.tgz", + "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==", "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", @@ -30618,11 +30618,11 @@ } }, "@bosonprotocol/common": { - "version": "1.22.4", - "resolved": "https://registry.npmjs.org/@bosonprotocol/common/-/common-1.22.4.tgz", - "integrity": "sha512-VfIVE0ej4OVSpiUtATEVdcN70dO9c/3BlkpKVPFHahbl6X4C/3xAucOy7ZuqyE+ZFywujWzF6Vx7/aaEi+qhag==", + "version": "1.23.0-alpha.6", + "resolved": "https://registry.npmjs.org/@bosonprotocol/common/-/common-1.23.0-alpha.6.tgz", + "integrity": "sha512-knKlHRhNZ6wiWOBZawCFzPLFVHGZkgTscWcXaWlTp01H4uIbfvkFbqNdWyLdORCryVe5BAdAw1p4rgJdlpk0Fg==", "requires": { - "@bosonprotocol/metadata": "^1.12.1", + "@bosonprotocol/metadata": "^1.12.2-alpha.0", "@ethersproject/abi": "^5.5.0", "@ethersproject/address": "^5.5.0", "@ethersproject/bignumber": "^5.5.0", @@ -30632,11 +30632,11 @@ } }, "@bosonprotocol/core-sdk": { - "version": "1.29.0", - "resolved": "https://registry.npmjs.org/@bosonprotocol/core-sdk/-/core-sdk-1.29.0.tgz", - "integrity": "sha512-8I4hLkzwMGkr/tnIn93ns2SES0iBy+oOUAlliVS+YxSZ5qFEg6vs2cWtHYorcoLqXWaJEiWGXix/PIbKC7nj1w==", + "version": "1.30.0-alpha.6", + "resolved": "https://registry.npmjs.org/@bosonprotocol/core-sdk/-/core-sdk-1.30.0-alpha.6.tgz", + "integrity": "sha512-hwV6anYVspJDNl8n9TtkcttIE3p1uUpUkhl0u/XZO4oBG9wU/Eh9kqmJK587n1exZZHm49e8YBG1Ugf6aSkyPg==", "requires": { - "@bosonprotocol/common": "^1.22.4", + "@bosonprotocol/common": "^1.23.0-alpha.6", "@ethersproject/abi": "^5.5.0", "@ethersproject/address": "^5.5.0", "@ethersproject/bignumber": "^5.5.0", @@ -30664,41 +30664,41 @@ } }, "@bosonprotocol/ethers-sdk": { - "version": "1.12.6", - "resolved": "https://registry.npmjs.org/@bosonprotocol/ethers-sdk/-/ethers-sdk-1.12.6.tgz", - "integrity": "sha512-8hgnDWKXpVVI+lqHR71YcNh06ic79M1/CgZdYU7Ov2n2t0/XeAGhv9m9ZUWtPP/YisZv75cHAd91IEbxOSaiJg==", + "version": "1.12.7-alpha.6", + "resolved": "https://registry.npmjs.org/@bosonprotocol/ethers-sdk/-/ethers-sdk-1.12.7-alpha.6.tgz", + "integrity": "sha512-5DALBLbQree5UpGUTGp3U69c2lIk00S0J+7K0K+JAw90JFcv4C6VejJrGZa+EJQvRJ/dETmKoQIiqjSz39oung==", "requires": { - "@bosonprotocol/common": "^1.22.4" + "@bosonprotocol/common": "^1.23.0-alpha.6" } }, "@bosonprotocol/ipfs-storage": { - "version": "1.10.8", - "resolved": "https://registry.npmjs.org/@bosonprotocol/ipfs-storage/-/ipfs-storage-1.10.8.tgz", - "integrity": "sha512-usc1/bhLd9CC30NqN5lua+Gvs1o8yazy8KHQcxDgA82/NwFlXPgdWLkMzy5oqEKDAOY2I4lwyVH37x16sz161g==", + "version": "1.10.9-alpha.0", + "resolved": "https://registry.npmjs.org/@bosonprotocol/ipfs-storage/-/ipfs-storage-1.10.9-alpha.0.tgz", + "integrity": "sha512-eNdZmpcQgYEFq+OzxrJVc6bvIYTzpX/lA/TIT2t/gX9PRN3KHj8xicRn6cq9dUEzIkvlnE9SQKtD0gk3aDYVrQ==", "requires": { - "@bosonprotocol/metadata": "^1.12.1", + "@bosonprotocol/metadata": "^1.12.2-alpha.0", "ipfs-http-client": "^56.0.1", "multiformats": "^9.6.4", "uint8arrays": "^3.0.0" } }, "@bosonprotocol/metadata": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/@bosonprotocol/metadata/-/metadata-1.12.1.tgz", - "integrity": "sha512-FV1uOmuNu5j+j26+l6cedGUdgzRijRRT9oYqk45DDG8GC32g3EUYalEbh9bw9YYKEne3nuWONpKbmzT0cWCk+w==", + "version": "1.12.2-alpha.0", + "resolved": "https://registry.npmjs.org/@bosonprotocol/metadata/-/metadata-1.12.2-alpha.0.tgz", + "integrity": "sha512-unpb3q+NFHjVatzdhQdFOmEty7GmQRF0tGflGbbIpervuZETY856uSv2Mz3kPycrBk9s9VR6L0I0vWQbYcI/sw==", "requires": { "schema-to-yup": "^1.11.11" } }, "@bosonprotocol/react-kit": { - "version": "0.19.1-alpha.2", - "resolved": "https://registry.npmjs.org/@bosonprotocol/react-kit/-/react-kit-0.19.1-alpha.2.tgz", - "integrity": "sha512-uP3Fryq7cLcE2THUFwf5Q5j5Evk/GVG5R7rSMs5bNlQY1p9nhLyjND68KnlLku1032ikpXW/jBWS975RRSSEIw==", + "version": "0.20.0-alpha.6", + "resolved": "https://registry.npmjs.org/@bosonprotocol/react-kit/-/react-kit-0.20.0-alpha.6.tgz", + "integrity": "sha512-Vt9eoKBSnQJwRll6ZkQxL9LlQR4PmdeApwHvOjiPsR6SACo86uaohBX8/oW3/BFbk6ekHVK8FztoL/h5dD+W9Q==", "requires": { "@bosonprotocol/chat-sdk": "^1.3.1-alpha.9", - "@bosonprotocol/core-sdk": "^1.29.0", - "@bosonprotocol/ethers-sdk": "^1.12.6", - "@bosonprotocol/ipfs-storage": "^1.10.8", + "@bosonprotocol/core-sdk": "^1.30.0-alpha.6", + "@bosonprotocol/ethers-sdk": "^1.12.7-alpha.6", + "@bosonprotocol/ipfs-storage": "^1.10.9-alpha.0", "@davatar/react": "1.11.1", "@ethersproject/units": "5.6.0", "@glidejs/glide": "3.6.0", @@ -42030,9 +42030,9 @@ "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" }, "protobufjs": { - "version": "6.11.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", - "integrity": "sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==", + "version": "6.11.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.4.tgz", + "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==", "requires": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", diff --git a/package.json b/package.json index c6a4cbb..2e74f43 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@bosonprotocol/react-kit": "^0.19.1-alpha.2", + "@bosonprotocol/react-kit": "^0.20.0-alpha.6", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", diff --git a/src/components/widgets/finance/Finance.tsx b/src/components/widgets/finance/Finance.tsx index 7703808..c24a5ed 100644 --- a/src/components/widgets/finance/Finance.tsx +++ b/src/components/widgets/finance/Finance.tsx @@ -1,11 +1,13 @@ -import { FinanceWidget } from "@bosonprotocol/react-kit"; +import { ConfigId, FinanceWidget } from "@bosonprotocol/react-kit"; import { useSearchParams } from "react-router-dom"; import { CONFIG } from "../../../config"; +import { getDefaultConfigId } from "../../../utils"; export const financePath = "/finance"; export function Finance() { const [searchParams] = useSearchParams(); + const configId = (searchParams.get("configId") as ConfigId) || undefined; const sellerId = searchParams.get("sellerId"); if (!sellerId) { return

Missing 'sellerId' query param

; @@ -15,6 +17,7 @@ export function Finance() {