9b1903df77
* fix(i18n): do not defer render on locale Do not defer render on locale load. This delays the initial render of the page, effectively delaying to LCP. Lingui allows the page to render with no text while a locale is loading. A fallback locale is only used when loading a locale fails - not while it is pending. * perf(i18n): include default language in initial bundle
165 lines
5.8 KiB
JSON
165 lines
5.8 KiB
JSON
{
|
|
"name": "@uniswap/interface",
|
|
"description": "Uniswap Interface",
|
|
"homepage": ".",
|
|
"private": true,
|
|
"devDependencies": {
|
|
"@davatar/react": "1.1.0",
|
|
"@ethersproject/experimental": "^5.4.0",
|
|
"@gnosis.pm/safe-apps-web3-react": "^0.6.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",
|
|
"@lingui/macro": "^3.9.0",
|
|
"@lingui/react": "^3.9.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",
|
|
"@testing-library/jest-dom": "^5.14.1",
|
|
"@testing-library/react": "^12.0.0",
|
|
"@testing-library/react-hooks": "^7.0.2",
|
|
"@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/luxon": "^1.24.4",
|
|
"@types/ms.macro": "^2.0.0",
|
|
"@types/multicodec": "^1.0.0",
|
|
"@types/node": "^13.13.5",
|
|
"@types/qs": "^6.9.2",
|
|
"@types/react": "^17.0.2",
|
|
"@types/react-dom": "^17.0.1",
|
|
"@types/react-redux": "^7.1.16",
|
|
"@types/react-router-dom": "^5.0.0",
|
|
"@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.1.0",
|
|
"@typescript-eslint/parser": "^4.1.0",
|
|
"@uniswap/default-token-list": "^2.0.0",
|
|
"@uniswap/governance": "^1.0.2",
|
|
"@uniswap/liquidity-staker": "^1.0.2",
|
|
"@uniswap/merkle-distributor": "1.0.1",
|
|
"@uniswap/sdk-core": "^3.0.1",
|
|
"@uniswap/token-lists": "^1.0.0-beta.25",
|
|
"@uniswap/v2-core": "1.0.0",
|
|
"@uniswap/v2-periphery": "^1.1.0-beta.0",
|
|
"@uniswap/v2-sdk": "^3.0.0-alpha.2",
|
|
"@uniswap/v3-core": "1.0.0",
|
|
"@uniswap/v3-periphery": "^1.1.1",
|
|
"@uniswap/v3-sdk": "^3.4.1",
|
|
"@web3-react/core": "^6.0.9",
|
|
"@web3-react/fortmatic-connector": "^6.0.9",
|
|
"@web3-react/injected-connector": "^6.0.7",
|
|
"@web3-react/portis-connector": "^6.0.9",
|
|
"@web3-react/walletconnect-connector": "^7.0.2-alpha.0",
|
|
"@web3-react/walletlink-connector": "^6.2.3",
|
|
"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",
|
|
"cypress": "^7.7.0",
|
|
"d3": "^7.0.0",
|
|
"eslint": "^7.11.0",
|
|
"eslint-config-prettier": "^6.11.0",
|
|
"eslint-plugin-prettier": "^3.1.3",
|
|
"eslint-plugin-react": "^7.19.0",
|
|
"eslint-plugin-react-hooks": "^4.0.0",
|
|
"ethers": "^5.4.6",
|
|
"graphql": "^15.5.0",
|
|
"graphql-request": "^3.4.0",
|
|
"inter-ui": "^3.13.1",
|
|
"jest-styled-components": "^7.0.5",
|
|
"luxon": "^1.25.0",
|
|
"ms.macro": "^2.0.0",
|
|
"multicodec": "^3.0.1",
|
|
"multihashes": "^4.0.2",
|
|
"node-vibrant": "^3.1.5",
|
|
"polished": "^3.3.2",
|
|
"polyfill-object.fromentries": "^1.0.1",
|
|
"prettier": "^2.2.1",
|
|
"qs": "^6.9.4",
|
|
"react": "^17.0.1",
|
|
"react-confetti": "^6.0.0",
|
|
"react-device-detect": "^1.6.2",
|
|
"react-dom": "^17.0.1",
|
|
"react-feather": "^2.0.8",
|
|
"react-ga": "^2.5.7",
|
|
"react-is": "^17.0.2",
|
|
"react-markdown": "^4.3.1",
|
|
"react-popper": "^2.2.3",
|
|
"react-redux": "^7.2.2",
|
|
"react-router-dom": "^5.0.0",
|
|
"react-scripts": "^4.0.3",
|
|
"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-localstorage-simple": "^2.3.1",
|
|
"serve": "^11.3.2",
|
|
"start-server-and-test": "^1.11.0",
|
|
"styled-components": "^5.3.0",
|
|
"typechain": "^5.0.0",
|
|
"typescript": "^4.2.3",
|
|
"ua-parser-js": "^0.7.28",
|
|
"use-count-up": "^2.2.5",
|
|
"wcag-contrast": "^3.0.0",
|
|
"web-vitals": "^2.1.0",
|
|
"workbox-core": "^6.1.0",
|
|
"workbox-precaching": "^6.1.0",
|
|
"workbox-routing": "^6.1.0"
|
|
},
|
|
"resolutions": {
|
|
"@walletconnect/ethereum-provider": "1.6.5"
|
|
},
|
|
"scripts": {
|
|
"compile-contract-types": "yarn compile-external-abi-types && yarn compile-v3-contract-types",
|
|
"compile-external-abi-types": "typechain --target ethers-v5 --out-dir src/abis/types './src/abis/**/*.json'",
|
|
"compile-v3-contract-types": "typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json'",
|
|
"build": "yarn compile-contract-types && yarn graphql:generate && yarn i18n:extract && yarn i18n:compile && react-scripts build",
|
|
"i18n:extract": "lingui extract --locale en-US",
|
|
"i18n:compile": "lingui compile",
|
|
"integration-test": "start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run --record'",
|
|
"graphql:generate": "graphql-codegen --config codegen.yml",
|
|
"postinstall": "yarn compile-contract-types",
|
|
"start": "yarn compile-contract-types && react-scripts start",
|
|
"test": "react-scripts test --env=./custom-test-env.js",
|
|
"prei18n:extract": "touch src/locales/en-US.po",
|
|
"prestart": "yarn graphql:generate && yarn prei18n:extract && yarn i18n:compile"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": "react-app",
|
|
"ignorePatterns": [
|
|
"node_modules"
|
|
]
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"license": "GPL-3.0-or-later",
|
|
"dependencies": {}
|
|
}
|