1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

package updates (#319)

* package updates

* bump lib & react

* 'fix' typing error

* seems Yup.SchemaOf does nos correctly handle Partial<Type>
This commit is contained in:
Matthias Kretschmann 2021-01-13 17:43:59 +01:00 committed by GitHub
parent ff34e263ef
commit 07f30108a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1915 additions and 2032 deletions

3855
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -24,16 +24,16 @@
"@coingecko/cryptoformat": "^0.4.2",
"@loadable/component": "^5.14.1",
"@oceanprotocol/art": "^3.0.0",
"@oceanprotocol/lib": "^0.9.19",
"@oceanprotocol/react": "^0.4.0",
"@oceanprotocol/lib": "^0.9.21",
"@oceanprotocol/react": "^0.4.1",
"@oceanprotocol/typographies": "^0.1.0",
"@sindresorhus/slugify": "^1.0.0",
"@tippyjs/react": "^4.2.0",
"@toruslabs/torus-embed": "^1.9.0",
"@toruslabs/torus-embed": "^1.9.5",
"@types/classnames": "^2.2.11",
"@vercel/node": "^1.8.5",
"@walletconnect/web3-provider": "^1.3.1",
"axios": "^0.21.0",
"@walletconnect/web3-provider": "^1.3.3",
"axios": "^0.21.1",
"chart.js": "^2.9.4",
"classnames": "^2.2.6",
"date-fns": "^2.16.1",
@ -43,28 +43,28 @@
"ethereum-address": "0.0.4",
"ethereum-blockies": "github:MyEtherWallet/blockies",
"filesize": "^6.1.0",
"formik": "^2.2.5",
"gatsby": "^2.28.2",
"gatsby-image": "^2.7.0",
"gatsby-plugin-google-analytics": "^2.7.0",
"gatsby-plugin-manifest": "^2.8.0",
"gatsby-plugin-react-helmet": "^3.6.0",
"gatsby-plugin-remove-trailing-slashes": "^2.6.0",
"gatsby-plugin-sharp": "^2.10.1",
"gatsby-plugin-svgr": "^2.0.2",
"formik": "^2.2.6",
"gatsby": "^2.30.2",
"gatsby-image": "^2.9.0",
"gatsby-plugin-google-analytics": "^2.9.0",
"gatsby-plugin-manifest": "^2.10.0",
"gatsby-plugin-react-helmet": "^3.8.0",
"gatsby-plugin-remove-trailing-slashes": "^2.8.0",
"gatsby-plugin-sharp": "^2.12.1",
"gatsby-plugin-svgr": "^2.1.0",
"gatsby-plugin-use-dark-mode": "^1.2.0",
"gatsby-plugin-webpack-size": "^1.0.0",
"gatsby-source-filesystem": "^2.7.0",
"gatsby-source-graphql": "^2.10.0",
"gatsby-transformer-json": "^2.7.0",
"gatsby-transformer-remark": "^2.12.0",
"gatsby-transformer-sharp": "^2.8.0",
"intersection-observer": "^0.11.0",
"gatsby-source-filesystem": "^2.9.0",
"gatsby-source-graphql": "^2.12.0",
"gatsby-transformer-json": "^2.9.0",
"gatsby-transformer-remark": "^2.14.0",
"gatsby-transformer-sharp": "^2.10.1",
"intersection-observer": "^0.12.0",
"is-url-superb": "^5.0.0",
"jwt-decode": "^3.1.2",
"lodash.debounce": "^4.0.8",
"lodash.omit": "^4.5.0",
"query-string": "^6.13.7",
"query-string": "^6.13.8",
"react": "^17.0.1",
"react-chartjs-2": "^2.11.1",
"react-data-table-component": "^6.11.6",
@ -75,32 +75,32 @@
"react-intersection-observer": "^8.31.0",
"react-markdown": "^5.0.3",
"react-modal": "^3.12.1",
"react-paginate": "^6.5.0",
"react-paginate": "^7.0.0",
"react-spring": "^8.0.27",
"react-tabs": "^3.1.1",
"react-tabs": "^3.1.2",
"react-toastify": "^6.2.0",
"remove-markdown": "^0.3.0",
"shortid": "^2.2.16",
"slugify": "^1.4.6",
"swr": "^0.3.9",
"swr": "^0.3.11",
"use-dark-mode": "^2.3.1",
"yup": "^0.32.6"
"yup": "^0.32.8"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@storybook/addon-actions": "^6.1.10",
"@storybook/addon-storyshots": "^6.1.10",
"@storybook/react": "^6.1.10",
"@storybook/addon-actions": "^6.1.14",
"@storybook/addon-storyshots": "^6.1.14",
"@storybook/react": "^6.1.14",
"@svgr/webpack": "^5.5.0",
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.2",
"@types/chart.js": "^2.9.28",
"@types/jest": "^26.0.18",
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^11.2.3",
"@types/chart.js": "^2.9.29",
"@types/jest": "^26.0.20",
"@types/loadable__component": "^5.13.1",
"@types/lodash.debounce": "^4.0.3",
"@types/lodash.omit": "^4.5.6",
"@types/node": "^14.14.12",
"@types/node": "^14.14.20",
"@types/react": "^17.0.0",
"@types/react-helmet": "^6.1.0",
"@types/react-modal": "^3.10.6",
@ -108,23 +108,23 @@
"@types/react-tabs": "^2.3.2",
"@types/remove-markdown": "^0.1.1",
"@types/shortid": "0.0.29",
"@types/yup": "^0.29.10",
"@typescript-eslint/eslint-plugin": "^4.9.1",
"@typescript-eslint/parser": "^4.9.1",
"@types/yup": "^0.29.11",
"@typescript-eslint/eslint-plugin": "^4.13.0",
"@typescript-eslint/parser": "^4.13.0",
"babel-loader": "^8.2.2",
"babel-preset-react-app": "^10.0.0",
"eslint": "^7.15.0",
"eslint": "^7.17.0",
"eslint-config-oceanprotocol": "^1.5.0",
"eslint-config-prettier": "^7.0.0",
"eslint-plugin-prettier": "^3.2.0",
"eslint-plugin-react": "^7.21.5",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"serve": "^11.3.2",
"source-map-explorer": "^2.5.1",
"typescript": "^4.1.2"
"source-map-explorer": "^2.5.2",
"typescript": "^4.1.3"
},
"repository": {
"type": "git",

View File

@ -1,9 +1,7 @@
import { MetadataMarket, MetadataPublishForm } from '../@types/MetaData'
import * as Yup from 'yup'
export const validationSchema: Yup.SchemaOf<
Partial<MetadataPublishForm>
> = Yup.object().shape({
export const validationSchema = Yup.object().shape({
name: Yup.string()
.min(4, (param) => `Title must be at least ${param.min} characters`)
.required('Required'),
@ -15,6 +13,6 @@ export function getInitialValues(
): Partial<MetadataPublishForm> {
return {
name: metadata.main.name,
description: metadata.additionalInformation.description
description: metadata.additionalInformation?.description
}
}