65129604bd
* chore: upgrade to react 18 * fix: update tests * fix: fix lint issues and remove unnecessary react hooks testing library * fix: add types for stricter typescript checks * fix: fix additional typescript check issues * fix: revert to prev commmit * rebase * rebase * fix: fix lint issues and remove unnecessary react hooks testing library * fix: add types for stricter typescript checks * fix: fix additional typescript check issues * rebase * fix: rebase * fix * eslint fix * fix: package.json changes * fix: package.json changes * fix yarn lock * fix version package.json * fix: downgrade react-router-dom to original * fix: undo modification of .github/workflows/release.yaml * fix: revert cypress testing version update * rebase * rebase * fix: fix lint issues and remove unnecessary react hooks testing library * fix: add types for stricter typescript checks * fix: fix additional typescript check issues * rebase * chore: upgrade to react 18 * fix: update tests * fix: fix lint issues and remove unnecessary react hooks testing library * fix: add types for stricter typescript checks * fix: fix additional typescript check issues * fix * eslint fix * fix: package.json changes * fix: package.json changes * fix yarn lock * fix version package.json * fix: downgrade react-router-dom to original * fix: undo modification of .github/workflows/release.yaml * fix: revert cypress testing version update * fix * fix: error boundary change * yarn.lock change * fix: cypress tests finally passing due to zzmp redux multicall fix HOORAY * undo service worker changes * build: dedup lockfile * yarn.lock + lint * update snapshot tests * checkpoint * yarn.lock * fix: fix type errors during build * fixes * fix yarn.lock * dedup yarn * fix: import react components explicitly instead of all of react * dedup * yarn.lock * yarn.lock * dedup * yarn * dedup * dedupe use-sync-external-store * fix build issues * dedup use-sync-external-store Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
202 lines
6.8 KiB
JSON
202 lines
6.8 KiB
JSON
{
|
|
"name": "@uniswap/widgets",
|
|
"version": "1.0.7",
|
|
"description": "Uniswap Interface",
|
|
"homepage": ".",
|
|
"license": "GPL-3.0-or-later",
|
|
"scripts": {
|
|
"contracts:compile:abi": "typechain --target ethers-v5 --out-dir src/abis/types \"./src/abis/**/*.json\"",
|
|
"contracts:compile:v3": "typechain --target ethers-v5 --out-dir src/types/v3 \"./node_modules/@uniswap/**/artifacts/contracts/**/*[!dbg].json\"",
|
|
"contracts:compile": "yarn contracts:compile:abi && yarn contracts:compile:v3",
|
|
"graphql:generate": "graphql-codegen --config codegen.yml",
|
|
"prei18n:extract": "node prei18n-extract.js",
|
|
"i18n:extract": "lingui extract --locale en-US",
|
|
"i18n:compile": "yarn i18n:extract && lingui compile",
|
|
"i18n:pseudo": "lingui extract --locale pseudo && lingui compile",
|
|
"prepare": "yarn contracts:compile && yarn graphql:generate && yarn i18n:compile",
|
|
"start": "react-scripts start",
|
|
"build": "react-scripts build",
|
|
"serve": "serve build -l 3000",
|
|
"lint": "yarn eslint .",
|
|
"test": "react-scripts test --coverage",
|
|
"cypress:open": "cypress open --browser chrome --e2e",
|
|
"cypress:run": "cypress run --browser chrome --e2e"
|
|
},
|
|
"jest": {
|
|
"collectCoverageFrom": [
|
|
"src/components/**/*.ts*",
|
|
"src/hooks/**/*.ts*",
|
|
"src/lib/hooks/**/*.ts*",
|
|
"src/lib/state/**/*.ts*",
|
|
"src/lib/utils/**/*.ts*",
|
|
"src/pages/**/*.ts*",
|
|
"src/state/**/*.ts*",
|
|
"src/utils/**/*.ts*"
|
|
],
|
|
"coverageThreshold": {
|
|
"global": {
|
|
"branches": 4,
|
|
"functions": 6,
|
|
"lines": 9,
|
|
"statements": 9
|
|
}
|
|
}
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@ethersproject/experimental": "^5.4.0",
|
|
"@graphql-codegen/cli": "1.21.5",
|
|
"@graphql-codegen/typescript": "1.22.3",
|
|
"@graphql-codegen/typescript-operations": "^1.18.2",
|
|
"@graphql-codegen/typescript-rtk-query": "^1.1.1",
|
|
"@lingui/cli": "^3.9.0",
|
|
"@testing-library/jest-dom": "^5.16.4",
|
|
"@testing-library/react": "^13.1",
|
|
"@typechain/ethers-v5": "^7.0.0",
|
|
"@types/array.prototype.flat": "^1.2.1",
|
|
"@types/array.prototype.flatmap": "^1.2.2",
|
|
"@types/d3": "^6.7.1",
|
|
"@types/jest": "^25.2.1",
|
|
"@types/lingui__core": "^2.7.1",
|
|
"@types/lingui__macro": "^2.7.4",
|
|
"@types/lingui__react": "^2.8.3",
|
|
"@types/ms.macro": "^2.0.0",
|
|
"@types/multicodec": "^1.0.0",
|
|
"@types/node": "^13.13.5",
|
|
"@types/qs": "^6.9.2",
|
|
"@types/react": "^18.0.15",
|
|
"@types/react-dom": "^18.0.6",
|
|
"@types/react-redux": "^7.1.24",
|
|
"@types/react-router-dom": "^5.3.3",
|
|
"@types/react-virtualized-auto-sizer": "^1.0.0",
|
|
"@types/react-window": "^1.8.2",
|
|
"@types/rebass": "^4.0.7",
|
|
"@types/styled-components": "^5.1.0",
|
|
"@types/testing-library__cypress": "^5.0.5",
|
|
"@types/ua-parser-js": "^0.7.35",
|
|
"@types/wcag-contrast": "^3.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^4",
|
|
"@typescript-eslint/parser": "^4",
|
|
"cypress": "^10.1.0",
|
|
"env-cmd": "^10.1.0",
|
|
"eslint": "^7.11.0",
|
|
"eslint-config-prettier": "^6.11.0",
|
|
"eslint-plugin-better-styled-components": "^1.1.2",
|
|
"eslint-plugin-prettier": "^3.1.3",
|
|
"eslint-plugin-react": "^7.19.0",
|
|
"eslint-plugin-react-hooks": "^4.0.0",
|
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
"eslint-plugin-unused-imports": "^2.0.0",
|
|
"ms.macro": "^2.0.0",
|
|
"react-scripts": "^4.0.3",
|
|
"serve": "^11.3.2",
|
|
"typechain": "^5.0.0",
|
|
"typescript": "^4.4.3"
|
|
},
|
|
"dependencies": {
|
|
"@amplitude/analytics-browser": "^0.5.1",
|
|
"@coinbase/wallet-sdk": "^3.3.0",
|
|
"@fontsource/ibm-plex-mono": "^4.5.1",
|
|
"@fontsource/inter": "^4.5.1",
|
|
"@lingui/core": "^3.14.0",
|
|
"@lingui/macro": "^3.14.0",
|
|
"@lingui/react": "^3.14.0",
|
|
"@metamask/jazzicon": "^2.0.0",
|
|
"@popperjs/core": "^2.4.4",
|
|
"@reach/dialog": "^0.10.3",
|
|
"@reach/portal": "^0.10.3",
|
|
"@react-hook/window-scroll": "^1.3.0",
|
|
"@reduxjs/toolkit": "^1.6.1",
|
|
"@uniswap/governance": "^1.0.2",
|
|
"@uniswap/liquidity-staker": "^1.0.2",
|
|
"@uniswap/merkle-distributor": "1.0.1",
|
|
"@uniswap/redux-multicall": "^1.1.5",
|
|
"@uniswap/router-sdk": "^1.0.6",
|
|
"@uniswap/sdk-core": "^3.0.1",
|
|
"@uniswap/smart-order-router": "^2.5.26",
|
|
"@uniswap/token-lists": "^1.0.0-beta.30",
|
|
"@uniswap/v2-core": "1.0.0",
|
|
"@uniswap/v2-periphery": "^1.1.0-beta.0",
|
|
"@uniswap/v2-sdk": "^3.0.1",
|
|
"@uniswap/v3-core": "1.0.0",
|
|
"@uniswap/v3-periphery": "^1.1.1",
|
|
"@uniswap/v3-sdk": "^3.9.0",
|
|
"@walletconnect/ethereum-provider": "1.7.1",
|
|
"@web3-react/coinbase-wallet": "^8.0.34-beta.0",
|
|
"@web3-react/core": "^8.0.35-beta.0",
|
|
"@web3-react/eip1193": "^8.0.26-beta.0",
|
|
"@web3-react/empty": "^8.0.20-beta.0",
|
|
"@web3-react/gnosis-safe": "^8.0.6-beta.0",
|
|
"@web3-react/metamask": "^8.0.27-beta.0",
|
|
"@web3-react/network": "^8.0.27-beta.0",
|
|
"@web3-react/types": "^8.0.20-beta.0",
|
|
"@web3-react/url": "^8.0.25-beta.0",
|
|
"@web3-react/walletconnect": "^8.0.35-beta.0",
|
|
"ajv": "^6.12.3",
|
|
"array.prototype.flat": "^1.2.4",
|
|
"array.prototype.flatmap": "^1.2.4",
|
|
"cids": "^1.0.0",
|
|
"copy-to-clipboard": "^3.2.0",
|
|
"d3": "^7.0.0",
|
|
"ethers": "^5.1.4",
|
|
"firebase": "^9.1.3",
|
|
"fortmatic": "^2.4.0",
|
|
"graphql": "^15.5.0",
|
|
"graphql-request": "^3.4.0",
|
|
"immer": "^9.0.6",
|
|
"inter-ui": "^3.13.1",
|
|
"jest-styled-components": "^7.0.5",
|
|
"jotai": "^1.3.7",
|
|
"jsbi": "^3.1.4",
|
|
"make-plural": "^7.0.0",
|
|
"multicodec": "^3.0.1",
|
|
"multihashes": "^4.0.2",
|
|
"node-vibrant": "^3.2.1-alpha.1",
|
|
"polished": "^3.3.2",
|
|
"polyfill-object.fromentries": "^1.0.1",
|
|
"popper-max-size-modifier": "^0.2.0",
|
|
"prettier": "^2.2.1",
|
|
"qs": "^6.9.4",
|
|
"react": "^18.2.0",
|
|
"react-confetti": "^6.0.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-feather": "^2.0.8",
|
|
"react-ga4": "^1.4.1",
|
|
"react-is": "^17.0.2",
|
|
"react-markdown": "^4.3.1",
|
|
"react-popper": "^2.2.3",
|
|
"react-redux": "^8.0.2",
|
|
"react-router-dom": "^5.0.0",
|
|
"react-spring": "^8.0.27",
|
|
"react-use-gesture": "^6.0.14",
|
|
"react-virtualized-auto-sizer": "^1.0.2",
|
|
"react-window": "^1.8.5",
|
|
"rebass": "^4.0.7",
|
|
"redux": "^4.1.2",
|
|
"redux-localstorage-simple": "^2.3.1",
|
|
"setimmediate": "^1.0.5",
|
|
"styled-components": "^5.3.0",
|
|
"tiny-invariant": "^1.2.0",
|
|
"ua-parser-js": "^0.7.28",
|
|
"use-count-up": "^2.2.5",
|
|
"use-resize-observer": "^8.0.0",
|
|
"wcag-contrast": "^3.0.0",
|
|
"web-vitals": "^2.1.0",
|
|
"workbox-core": "^6.1.0",
|
|
"workbox-navigation-preload": "^6.1.0",
|
|
"workbox-precaching": "^6.1.0",
|
|
"workbox-routing": "^6.1.0"
|
|
}
|
|
}
|