mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-03 05:55:03 +01:00
feat(deps): update deps without breaking changes
This commit is contained in:
36
package.json
36
package.json
@@ -94,24 +94,24 @@
|
||||
"@types/react": "18.0.32"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.22.5",
|
||||
"@babel/core": "^7.22.5",
|
||||
"@babel/node": "^7.22.5",
|
||||
"@babel/cli": "^7.23.0",
|
||||
"@babel/core": "^7.23.2",
|
||||
"@babel/node": "^7.22.19",
|
||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||
"@babel/plugin-transform-runtime": "^7.22.5",
|
||||
"@babel/preset-env": "^7.22.5",
|
||||
"@babel/preset-react": "^7.22.5",
|
||||
"@babel/preset-typescript": "^7.22.5",
|
||||
"@babel/runtime": "^7.22.5",
|
||||
"@babel/plugin-transform-runtime": "^7.23.2",
|
||||
"@babel/preset-env": "^7.23.2",
|
||||
"@babel/preset-react": "^7.22.15",
|
||||
"@babel/preset-typescript": "^7.23.2",
|
||||
"@babel/runtime": "^7.23.2",
|
||||
"@suite-common/wallet-types": "workspace:*",
|
||||
"@types/jest": "^26.0.24",
|
||||
"@types/node": "18.17.15",
|
||||
"@types/prettier": "^2.7.3",
|
||||
"@types/semver": "^7.5.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.60.0",
|
||||
"@typescript-eslint/parser": "^5.60.0",
|
||||
"@types/prettier": "^3.0.0",
|
||||
"@types/semver": "^7.5.4",
|
||||
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
||||
"@typescript-eslint/parser": "^6.9.1",
|
||||
"babel-jest": "^26.6.3",
|
||||
"eslint": "^8.52.0",
|
||||
"eslint": "^8.53.0",
|
||||
"eslint-config-airbnb": "^18.2.1",
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
"eslint-import-resolver-typescript": "^3.6.1",
|
||||
@@ -129,16 +129,16 @@
|
||||
"jest-expo": "^49.0.0",
|
||||
"metro-react-native-babel-preset": "0.76.4",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"nx": "^17.0.2",
|
||||
"patch-package": "7.0.0",
|
||||
"nx": "^17.0.3",
|
||||
"patch-package": "8.0.0",
|
||||
"prettier": "3.0.3",
|
||||
"prettier-eslint": "^15.0.1",
|
||||
"prettier-eslint": "^16.1.2",
|
||||
"rimraf": "^5.0.5",
|
||||
"semver": "^7.5.3",
|
||||
"semver": "^7.5.4",
|
||||
"ts-jest": "^26.5.6",
|
||||
"ts-node": "^10.9.1",
|
||||
"tsconfig-paths": "^4.2.0",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5",
|
||||
"version-bump-prompt": "^6.1.0"
|
||||
},
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
"express": "^4.18.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/cors": "^2.8.13",
|
||||
"@types/cors": "^2.8.15",
|
||||
"jest": "^26.6.3",
|
||||
"rimraf": "^5.0.5",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"rimraf": "^5.0.5",
|
||||
"ripple-lib": "^1.10.1",
|
||||
"socks-proxy-agent": "6.1.1",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"@trezor/type-utils": "workspace:*",
|
||||
"jest": "^26.6.3",
|
||||
"rimraf": "^5.0.5",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
"jest": "^26.6.3",
|
||||
"rimraf": "^5.0.5",
|
||||
"tiny-worker": "^2.3.0",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5",
|
||||
"webpack": "^5.89.0",
|
||||
"webpack-cli": "^5.1.4",
|
||||
@@ -71,7 +71,7 @@
|
||||
"@trezor/blockchain-link-utils": "workspace:*",
|
||||
"@trezor/utils": "workspace:*",
|
||||
"@trezor/utxo-lib": "workspace:*",
|
||||
"@types/web": "^0.0.100",
|
||||
"@types/web": "^0.0.119",
|
||||
"bignumber.js": "^9.1.1",
|
||||
"events": "^3.3.0",
|
||||
"ripple-lib": "^1.10.1",
|
||||
|
||||
@@ -30,13 +30,13 @@
|
||||
"@trezor/utils": "workspace:*",
|
||||
"@trezor/utxo-lib": "workspace:*",
|
||||
"bignumber.js": "^9.1.1",
|
||||
"cross-fetch": "^3.1.6",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"events": "^3.3.0",
|
||||
"golomb": "1.2.0",
|
||||
"n64": "^0.2.10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^29.5.0",
|
||||
"jest": "29.5.0",
|
||||
"rimraf": "^5.0.5",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
|
||||
@@ -23,15 +23,15 @@
|
||||
"@trezor/react-utils": "workspace:*",
|
||||
"@trezor/utils": "workspace:*",
|
||||
"date-fns": "^2.30.0",
|
||||
"framer-motion": "^10.12.16",
|
||||
"framer-motion": "^10.16.4",
|
||||
"lottie-react": "^2.4.0",
|
||||
"polished": "^4.2.2",
|
||||
"react": "18.2.0",
|
||||
"react-date-range": "^1.4.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-intl": "^6.4.4",
|
||||
"react-select": "^5.7.3",
|
||||
"react-svg": "^16.1.17",
|
||||
"react-intl": "^6.5.1",
|
||||
"react-select": "^5.8.0",
|
||||
"react-svg": "^16.1.29",
|
||||
"react-truncate": "^2.4.0",
|
||||
"react-use": "^17.4.0",
|
||||
"styled-components": "^5.3.10",
|
||||
@@ -39,22 +39,22 @@
|
||||
"zxcvbn": "^4.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-actions": "^7.5.2",
|
||||
"@storybook/addon-controls": "^7.5.2",
|
||||
"@storybook/addon-actions": "^7.5.3",
|
||||
"@storybook/addon-controls": "^7.5.3",
|
||||
"@storybook/addon-knobs": "^7.0.2",
|
||||
"@storybook/addon-links": "^7.5.2",
|
||||
"@storybook/addon-viewport": "^7.5.2",
|
||||
"@storybook/addons": "^7.5.2",
|
||||
"@storybook/client-api": "^7.5.2",
|
||||
"@storybook/react": "^7.5.2",
|
||||
"@storybook/react-webpack5": "^7.5.2",
|
||||
"@storybook/addon-links": "^7.5.3",
|
||||
"@storybook/addon-viewport": "^7.5.3",
|
||||
"@storybook/addons": "^7.5.3",
|
||||
"@storybook/client-api": "^7.5.3",
|
||||
"@storybook/react": "^7.5.3",
|
||||
"@storybook/react-webpack5": "^7.5.3",
|
||||
"@types/react": "18.0.32",
|
||||
"@types/react-date-range": "^1.4.4",
|
||||
"@types/react-truncate": "^2.3.4",
|
||||
"@types/styled-components": "^5.1.26",
|
||||
"@types/react-date-range": "^1.4.7",
|
||||
"@types/react-truncate": "^2.3.7",
|
||||
"@types/styled-components": "^5.1.29",
|
||||
"jest": "^26.6.3",
|
||||
"postcss-styled-syntax": "^0.5.0",
|
||||
"storybook": "^7.5.2",
|
||||
"storybook": "^7.5.3",
|
||||
"stylelint": "^15.11.0",
|
||||
"stylelint-config-standard": "^34.0.0",
|
||||
"typescript": "4.9.5",
|
||||
|
||||
1
packages/components/styled.d.ts
vendored
1
packages/components/styled.d.ts
vendored
@@ -3,6 +3,5 @@ import 'styled-components';
|
||||
import { SuiteThemeColors } from './src/support/types';
|
||||
|
||||
declare module 'styled-components' {
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
export interface DefaultTheme extends SuiteThemeColors {}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
"devDependencies": {
|
||||
"jest": "^26.6.3",
|
||||
"rimraf": "^5.0.5",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"@trezor/connect-web": "workspace:*",
|
||||
"@trezor/protobuf": "workspace:*",
|
||||
"copy-webpack-plugin": "^11.0.0",
|
||||
"markdown-it": "^13.0.1",
|
||||
"markdown-it": "^13.0.2",
|
||||
"markdown-it-link-attributes": "^4.0.1",
|
||||
"markdown-it-replace-link": "^1.2.0",
|
||||
"react": "18.2.0",
|
||||
@@ -30,11 +30,11 @@
|
||||
"styled-components": "^5.3.10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/markdown-it": "^12.2.3",
|
||||
"@types/markdown-it-link-attributes": "^3.0.1",
|
||||
"@types/markdown-it": "^13.0.5",
|
||||
"@types/markdown-it-link-attributes": "^3.0.3",
|
||||
"@types/react-router": "^5.1.20",
|
||||
"@types/react-router-dom": "^5.1.7",
|
||||
"@types/styled-components": "^5.1.26",
|
||||
"@types/styled-components": "^5.1.29",
|
||||
"babel-loader": "^9.1.3",
|
||||
"html-webpack-plugin": "^5.5.3",
|
||||
"jest": "^26.6.3",
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
"lib/"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"@metamask/eth-sig-util": "^6.0.0"
|
||||
"@metamask/eth-sig-util": "^7.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@metamask/eth-sig-util": "^6.0.0",
|
||||
"@metamask/eth-sig-util": "^7.0.0",
|
||||
"jest": "^26.6.3",
|
||||
"rimraf": "^5.0.5",
|
||||
"typescript": "4.9.5"
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
"@trezor/connect-common": "workspace:*",
|
||||
"@trezor/env-utils": "workspace:*",
|
||||
"@trezor/urls": "workspace:*",
|
||||
"react-intl": "^6.4.4"
|
||||
"react-intl": "^6.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "18.0.32",
|
||||
"@types/styled-components": "^5.1.26",
|
||||
"@types/styled-components": "^5.1.29",
|
||||
"jest": "^26.6.3",
|
||||
"typescript": "4.9.5"
|
||||
},
|
||||
|
||||
@@ -45,17 +45,17 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/browser-chromium": "^1.39.0",
|
||||
"@playwright/browser-webkit": "^1.39.0",
|
||||
"@playwright/browser-firefox": "^1.39.0",
|
||||
"@playwright/browser-webkit": "^1.39.0",
|
||||
"@playwright/test": "^1.39.0",
|
||||
"@types/chrome": "^0.0.237",
|
||||
"@types/w3c-web-usb": "^1.0.6",
|
||||
"@types/chrome": "^0.0.250",
|
||||
"@types/w3c-web-usb": "^1.0.9",
|
||||
"html-webpack-plugin": "^5.5.3",
|
||||
"jest": "^26.6.3",
|
||||
"rimraf": "^5.0.5",
|
||||
"selfsigned": "^2.1.1",
|
||||
"selfsigned": "^2.4.1",
|
||||
"terser-webpack-plugin": "^5.3.9",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5",
|
||||
"webpack": "^5.89.0",
|
||||
"webpack-cli": "^5.1.4",
|
||||
|
||||
@@ -63,14 +63,14 @@
|
||||
"blakejs": "^1.2.1",
|
||||
"bs58": "^5.0.0",
|
||||
"bs58check": "^3.0.1",
|
||||
"cross-fetch": "^3.1.6",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"events": "^3.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@trezor/trezor-user-env-link": "workspace:*",
|
||||
"@types/karma": "^6.3.4",
|
||||
"@types/parse-uri": "^1.0.0",
|
||||
"jest": "^29.5.0",
|
||||
"@types/karma": "^6.3.6",
|
||||
"@types/parse-uri": "^1.0.2",
|
||||
"jest": "29.5.0",
|
||||
"jest-environment-jsdom": "^29.5.0",
|
||||
"karma": "^6.4.2",
|
||||
"karma-babel-preprocessor": "^8.0.2",
|
||||
@@ -81,7 +81,7 @@
|
||||
"karma-webpack": "^5.0.0",
|
||||
"rimraf": "^5.0.5",
|
||||
"ts-node": "^10.9.1",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5",
|
||||
"webpack": "^5.89.0",
|
||||
"ws": "7.5.9"
|
||||
|
||||
@@ -83,6 +83,7 @@ export function validateParams<P extends Record<string, any>>(params: P, schema:
|
||||
`Parameter "${name}" has invalid type. "ArrayBuffer" expected.`,
|
||||
);
|
||||
}
|
||||
// eslint-disable-next-line valid-typeof
|
||||
} else if (typeof value !== type) {
|
||||
// invalid type
|
||||
throw invalidParameter(`Parameter "${name}" has invalid type. "${type}" expected.`);
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"dependencies": {
|
||||
"events": "^3.3.0",
|
||||
"express": "^4.18.2",
|
||||
"uuid": "^9.0.0",
|
||||
"uuid": "^9.0.1",
|
||||
"ws": "7.5.9"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,11 +25,11 @@
|
||||
"prepublish": "yarn tsx ../../scripts/prepublish.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"ua-parser-js": "^1.0.35"
|
||||
"ua-parser-js": "^1.0.37"
|
||||
},
|
||||
"devDependencies": {
|
||||
"rimraf": "^5.0.5",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -32,13 +32,13 @@
|
||||
"dependencies": {
|
||||
"bytebuffer": "^5.0.1",
|
||||
"long": "^4.0.0",
|
||||
"protobufjs": "7.2.4"
|
||||
"protobufjs": "7.2.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^29.5.0",
|
||||
"protobufjs-cli": "^1.1.1",
|
||||
"jest": "29.5.0",
|
||||
"protobufjs-cli": "^1.1.2",
|
||||
"rimraf": "^5.0.5",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,9 +28,9 @@
|
||||
"bytebuffer": "^5.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^29.5.0",
|
||||
"jest": "29.5.0",
|
||||
"rimraf": "^5.0.5",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
"socks-proxy-agent": "6.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"cross-fetch": "^3.1.6",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"jest": "^26.6.3",
|
||||
"rimraf": "^5.0.5",
|
||||
"ts-node": "^10.9.1",
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
"worker-loader": "^3.0.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
||||
"@sentry/webpack-plugin": "^2.3.0",
|
||||
"@types/copy-webpack-plugin": "^10.1.0",
|
||||
"@types/webpack-bundle-analyzer": "^4.6.2",
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@mobily/ts-belt": "^3.13.1",
|
||||
"@types/fs-extra": "^11.0.1",
|
||||
"autoprefixer": "^10.4.14",
|
||||
"@types/fs-extra": "^11.0.3",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"babel-loader": "^9.1.3",
|
||||
"css-loader": "^6.8.1",
|
||||
"fs-extra": "^11.1.1",
|
||||
@@ -37,9 +37,9 @@
|
||||
"postcss-modules-local-by-default": "^4.0.3",
|
||||
"postcss-modules-scope": "^3.0.0",
|
||||
"postcss-modules-values": "^4.0.0",
|
||||
"simple-git": "^3.19.0",
|
||||
"simple-git": "^3.20.0",
|
||||
"style-loader": "^3.3.3",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5",
|
||||
"webpack": "^5.89.0",
|
||||
"webpack-cli": "^5.1.4"
|
||||
|
||||
@@ -7,6 +7,7 @@ type OptionalPrimitive = Primitive | [Primitive, boolean];
|
||||
export const isPrimitive = (type: OptionalPrimitive, value: any) => {
|
||||
const [t, optional] = Array.isArray(type) ? type : [type];
|
||||
if (value == null && optional) return true;
|
||||
// eslint-disable-next-line valid-typeof
|
||||
return typeof value === t;
|
||||
};
|
||||
|
||||
|
||||
@@ -44,15 +44,15 @@
|
||||
"@playwright/browser-webkit": "^1.39.0",
|
||||
"@playwright/test": "^1.39.0",
|
||||
"@trezor/trezor-user-env-link": "workspace:*",
|
||||
"@types/electron-localshortcut": "^3.1.2",
|
||||
"cross-fetch": "^3.1.6",
|
||||
"@types/electron-localshortcut": "^3.1.3",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"electron": "26.4.2",
|
||||
"esbuild": "^0.19.5",
|
||||
"glob": "^10.3.10",
|
||||
"jest": "^26.6.3",
|
||||
"rimraf": "^5.0.5",
|
||||
"terser-webpack-plugin": "^5.3.9",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5",
|
||||
"webpack": "^5.87.0",
|
||||
"xvfb-maybe": "^0.2.1"
|
||||
|
||||
@@ -26,15 +26,15 @@
|
||||
"@trezor/utils": "workspace:*",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-markdown": "^8.0.7",
|
||||
"react-markdown": "^9.0.0",
|
||||
"react-redux": "8.0.7",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"styled-components": "^5.3.10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "18.0.32",
|
||||
"@types/react-dom": "18.2.6",
|
||||
"@types/styled-components": "^5.1.26",
|
||||
"@types/react-dom": "18.2.14",
|
||||
"@types/styled-components": "^5.1.29",
|
||||
"jest": "^26.6.3",
|
||||
"stylelint": "^15.11.0",
|
||||
"stylelint-config-standard": "^34.0.0",
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"browser": "./src/web/index.ts",
|
||||
"dependencies": {
|
||||
"@trezor/env-utils": "workspace:*",
|
||||
"broadcast-channel": "^5.1.0",
|
||||
"broadcast-channel": "^6.0.0",
|
||||
"idb": "^7.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -38,15 +38,15 @@
|
||||
"@trezor/transport": "workspace:*",
|
||||
"@trezor/trezor-user-env-link": "workspace:*",
|
||||
"@trezor/utils": "workspace:*",
|
||||
"@types/chrome-remote-interface": "^0.31.10",
|
||||
"@types/cypress-image-snapshot": "^3.1.6",
|
||||
"@types/chrome-remote-interface": "^0.31.12",
|
||||
"@types/cypress-image-snapshot": "^3.1.8",
|
||||
"@types/react": "18.0.32",
|
||||
"@types/react-dom": "18.2.6",
|
||||
"@types/react-helmet": "^6.1.6",
|
||||
"@types/react-dom": "18.2.14",
|
||||
"@types/react-helmet": "^6.1.8",
|
||||
"@types/react-router": "^5.1.20",
|
||||
"@types/react-router-dom": "^5.1.7",
|
||||
"@types/styled-components": "^5.1.26",
|
||||
"chrome-remote-interface": "^0.32.2",
|
||||
"@types/styled-components": "^5.1.29",
|
||||
"chrome-remote-interface": "^0.33.0",
|
||||
"cypress": "^13.4.0",
|
||||
"cypress-file-upload": "^5.0.8",
|
||||
"cypress-image-snapshot": "^4.0.1",
|
||||
@@ -54,7 +54,7 @@
|
||||
"rimraf": "^5.0.5",
|
||||
"stylelint": "^15.11.0",
|
||||
"stylelint-config-standard": "^34.0.0",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5",
|
||||
"webpack": "^5.89.0",
|
||||
"ws": "7.5.9",
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"dependencies": {
|
||||
"@ethereumjs/common": "^3.1.2",
|
||||
"@ethereumjs/tx": "^4.1.2",
|
||||
"@formatjs/intl": "2.9.0",
|
||||
"@formatjs/intl": "2.9.6",
|
||||
"@hookform/resolvers": "3.1.0",
|
||||
"@reduxjs/toolkit": "1.9.5",
|
||||
"@sentry/core": "^7.56.0",
|
||||
@@ -73,7 +73,7 @@
|
||||
"dropbox": "^10.34.0",
|
||||
"ethereumjs-util": "^7.1.5",
|
||||
"file-saver": "^2.0.5",
|
||||
"framer-motion": "^10.12.16",
|
||||
"framer-motion": "^10.16.4",
|
||||
"history": "^4.10.1",
|
||||
"idb": "^7.1.1",
|
||||
"immer": "9.0.21",
|
||||
@@ -84,55 +84,55 @@
|
||||
"qrcode.react": "^3.1.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-focus-lock": "^2.9.4",
|
||||
"react-focus-lock": "^2.9.6",
|
||||
"react-helmet": "^6.1.0",
|
||||
"react-hook-form": "7.44.3",
|
||||
"react-intl": "^6.4.4",
|
||||
"react-markdown": "^8.0.7",
|
||||
"react-hook-form": "^7.48.2",
|
||||
"react-intl": "^6.5.1",
|
||||
"react-markdown": "^9.0.0",
|
||||
"react-qr-reader": "^2.2.1",
|
||||
"react-redux": "8.0.7",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"react-select": "^5.7.3",
|
||||
"react-svg": "^16.1.17",
|
||||
"react-select": "^5.8.0",
|
||||
"react-svg": "^16.1.29",
|
||||
"react-toastify": "^9.1.3",
|
||||
"react-use": "^17.4.0",
|
||||
"react-window": "^1.8.9",
|
||||
"recharts": "^2.7.1",
|
||||
"recharts": "^2.9.2",
|
||||
"redux": "^4.2.1",
|
||||
"redux-logger": "^3.0.6",
|
||||
"redux-thunk": "^2.4.2",
|
||||
"semver": "^7.5.3",
|
||||
"semver": "^7.5.4",
|
||||
"styled-components": "^5.3.10",
|
||||
"trezor-address-validator": "^0.4.3",
|
||||
"uuid": "^9.0.0",
|
||||
"trezor-address-validator": "^0.4.4",
|
||||
"uuid": "^9.0.1",
|
||||
"web3-utils": "^1.10.0",
|
||||
"zxcvbn": "^4.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@crowdin/cli": "^3.13.0",
|
||||
"@formatjs/cli": "^6.1.3",
|
||||
"@crowdin/cli": "^3.15.0",
|
||||
"@formatjs/cli": "^6.2.1",
|
||||
"@testing-library/react": "14.0.0",
|
||||
"@testing-library/user-event": "14.4.3",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/invity-api": "^1.0.15",
|
||||
"@types/jws": "^3.2.5",
|
||||
"@types/pako": "^2.0.0",
|
||||
"@types/pdfmake": "^0.2.2",
|
||||
"@types/qrcode.react": "^1.0.2",
|
||||
"@testing-library/user-event": "14.5.1",
|
||||
"@types/file-saver": "^2.0.6",
|
||||
"@types/invity-api": "^1.0.17",
|
||||
"@types/jws": "^3.2.7",
|
||||
"@types/pako": "^2.0.2",
|
||||
"@types/pdfmake": "^0.2.8",
|
||||
"@types/qrcode.react": "^1.0.5",
|
||||
"@types/react": "18.0.32",
|
||||
"@types/react-dom": "18.2.6",
|
||||
"@types/react-qr-reader": "^2.1.4",
|
||||
"@types/react-test-renderer": "^18.0.0",
|
||||
"@types/react-window": "^1.8.5",
|
||||
"@types/redux-logger": "^3.0.9",
|
||||
"@types/redux-mock-store": "^1.0.3",
|
||||
"@types/semver": "^7.5.0",
|
||||
"@types/styled-components": "^5.1.26",
|
||||
"@types/ua-parser-js": "^0.7.36",
|
||||
"@types/uuid": "^9.0.2",
|
||||
"@types/zxcvbn": "^4.4.1",
|
||||
"jest": "^29.5.0",
|
||||
"jest-canvas-mock": "^2.5.1",
|
||||
"@types/react-dom": "18.2.14",
|
||||
"@types/react-qr-reader": "^2.1.7",
|
||||
"@types/react-test-renderer": "^18.0.5",
|
||||
"@types/react-window": "^1.8.7",
|
||||
"@types/redux-logger": "^3.0.11",
|
||||
"@types/redux-mock-store": "^1.0.5",
|
||||
"@types/semver": "^7.5.4",
|
||||
"@types/styled-components": "^5.1.29",
|
||||
"@types/ua-parser-js": "^0.7.38",
|
||||
"@types/uuid": "^9.0.6",
|
||||
"@types/zxcvbn": "^4.4.3",
|
||||
"jest": "29.5.0",
|
||||
"jest-canvas-mock": "^2.5.2",
|
||||
"jest-environment-jsdom": "^29.5.0",
|
||||
"jest-watch-typeahead": "0.6.5",
|
||||
"prettier": "3.0.3",
|
||||
@@ -141,7 +141,7 @@
|
||||
"redux-mock-store": "^1.5.4",
|
||||
"stylelint": "^15.11.0",
|
||||
"stylelint-config-standard": "^34.0.0",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5",
|
||||
"typescript-styled-plugin": "^0.18.3"
|
||||
}
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
export enum MAX_LENGTH {
|
||||
PIN = 50,
|
||||
PASSPHRASE = 50,
|
||||
export const MAX_LENGTH = {
|
||||
PIN: 50,
|
||||
PASSPHRASE: 50,
|
||||
|
||||
BTC_MESSAGE = 255,
|
||||
ETH_MESSAGE = 255,
|
||||
BTC_MESSAGE: 255,
|
||||
ETH_MESSAGE: 255,
|
||||
|
||||
// send form
|
||||
ADDRESS = 150,
|
||||
LABEL = 16,
|
||||
AMOUNT = 255,
|
||||
FIAT = 255,
|
||||
OP_RETURN = 255,
|
||||
ETH_DATA = 255,
|
||||
BTC_LOCKTIME = 10, // max: 4294967294
|
||||
XRP_DESTINATION_TAG = 10, // max: 4294967295
|
||||
}
|
||||
ADDRESS: 150,
|
||||
LABEL: 16,
|
||||
AMOUNT: 255,
|
||||
FIAT: 255,
|
||||
OP_RETURN: 255,
|
||||
ETH_DATA: 255,
|
||||
BTC_LOCKTIME: 10, // max: 4294967294
|
||||
XRP_DESTINATION_TAG: 10, // max: 4294967295
|
||||
} as const;
|
||||
|
||||
1
packages/suite/styled.d.ts
vendored
1
packages/suite/styled.d.ts
vendored
@@ -3,6 +3,5 @@ import 'styled-components';
|
||||
import { types } from '@trezor/components';
|
||||
|
||||
declare module 'styled-components' {
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
export interface DefaultTheme extends types.SuiteThemeColors {}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^26.6.3",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,14 +44,14 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@trezor/trezor-user-env-link": "workspace:*",
|
||||
"@types/bytebuffer": "^5.0.44",
|
||||
"@types/sharedworker": "^0.0.97",
|
||||
"@types/w3c-web-usb": "^1.0.6",
|
||||
"jest": "^29.5.0",
|
||||
"@types/bytebuffer": "^5.0.46",
|
||||
"@types/sharedworker": "^0.0.105",
|
||||
"@types/w3c-web-usb": "^1.0.9",
|
||||
"jest": "29.5.0",
|
||||
"jest-environment-jsdom": "^29.5.0",
|
||||
"rimraf": "^5.0.5",
|
||||
"ts-node": "^10.9.1",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -59,10 +59,10 @@
|
||||
"@trezor/protocol": "workspace:*",
|
||||
"@trezor/utils": "workspace:*",
|
||||
"bytebuffer": "^5.0.1",
|
||||
"cross-fetch": "^3.1.6",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"json-stable-stringify": "^1.0.2",
|
||||
"long": "^4.0.0",
|
||||
"protobufjs": "7.2.4",
|
||||
"protobufjs": "7.2.5",
|
||||
"usb": "^2.11.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@trezor/utils": "workspace:*",
|
||||
"cross-fetch": "^3.1.6",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"ws": "7.5.9"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"test:e2e": "jest -c ../../jest.config.base.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"cross-fetch": "^3.1.6",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"jest": "^26.6.3",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
"devDependencies": {
|
||||
"jest": "^26.6.3",
|
||||
"rimraf": "^5.0.5",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,6 +51,7 @@ export interface TypedEmitter<T extends EventMap> {
|
||||
rawListeners<K extends EventKey<T>>(eventName: K): EventReceiver<T[K]>[];
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
||||
export class TypedEmitter<T extends EventMap> extends EventEmitter {
|
||||
// implement at least one function
|
||||
listenerCount<K extends EventKey<T>>(eventName: K) {
|
||||
|
||||
@@ -53,19 +53,19 @@
|
||||
"tiny-secp256k1": "^1.1.6",
|
||||
"typeforce": "^1.18.0",
|
||||
"varuint-bitcoin": "^1.1.2",
|
||||
"wif": "^2.0.6"
|
||||
"wif": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bchaddrjs": "^0.4.0",
|
||||
"@types/bs58": "^4.0.1",
|
||||
"@types/bs58check": "^2.1.0",
|
||||
"@types/create-hash": "^1.2.2",
|
||||
"@types/create-hmac": "^1.1.0",
|
||||
"@types/wif": "^2.0.2",
|
||||
"@types/bchaddrjs": "^0.4.2",
|
||||
"@types/bs58": "^4.0.3",
|
||||
"@types/bs58check": "^2.1.1",
|
||||
"@types/create-hash": "^1.2.4",
|
||||
"@types/create-hmac": "^1.1.2",
|
||||
"@types/wif": "^2.0.4",
|
||||
"jest": "^26.6.3",
|
||||
"minimaldata": "^1.0.2",
|
||||
"rimraf": "^5.0.5",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
"yargs": "17.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/fs-extra": "^11.0.1",
|
||||
"@types/prettier": "^2.7.3",
|
||||
"@types/fs-extra": "^11.0.3",
|
||||
"@types/prettier": "^3.0.0",
|
||||
"jest": "^26.6.3",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^26.6.3",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"type-check": "tsc --build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@formatjs/intl": "2.9.0",
|
||||
"@formatjs/intl": "2.9.6",
|
||||
"@mobily/ts-belt": "^3.13.1",
|
||||
"@suite-common/suite-config": "workspace:*",
|
||||
"@suite-common/suite-constants": "workspace:*",
|
||||
@@ -24,7 +24,7 @@
|
||||
"bignumber.js": "^9.1.1",
|
||||
"date-fns": "^2.30.0",
|
||||
"react": "18.2.0",
|
||||
"react-intl": "^6.4.4",
|
||||
"react-intl": "^6.5.1",
|
||||
"react-redux": "8.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"devDependencies": {
|
||||
"jest": "^26.6.3",
|
||||
"svgo": "3.0.2",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"dependencies": {
|
||||
"@trezor/type-utils": "workspace:*",
|
||||
"react": "18.2.0",
|
||||
"react-intl": "^6.4.4"
|
||||
"react-intl": "^6.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^26.6.3",
|
||||
|
||||
@@ -26,16 +26,16 @@
|
||||
"@trezor/utils": "workspace:*",
|
||||
"ajv": "^8.12.0",
|
||||
"fs-extra": "^11.1.1",
|
||||
"json-schema-to-typescript": "^13.0.2",
|
||||
"json-schema-to-typescript": "^13.1.1",
|
||||
"jws": "^4.0.0",
|
||||
"proxy-memoize": "2.0.2",
|
||||
"semver": "^7.5.3"
|
||||
"semver": "^7.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@suite-common/test-utils": "workspace:*",
|
||||
"@types/fs-extra": "^11.0.1",
|
||||
"@types/fs-extra": "^11.0.3",
|
||||
"jest": "^26.6.3",
|
||||
"tsx": "^3.12.7",
|
||||
"tsx": "^3.14.0",
|
||||
"typescript": "4.9.5"
|
||||
},
|
||||
"nx": {
|
||||
|
||||
@@ -98,6 +98,7 @@ export abstract class AbstractMetadataProvider {
|
||||
/* isCloud means that this provider is not local and allows multi client sync. These providers are suitable for backing up data. */
|
||||
abstract isCloud: boolean;
|
||||
|
||||
// eslint-disable-next-line no-empty-function
|
||||
constructor(public type: MetadataProviderType) {}
|
||||
|
||||
abstract connect(): Result<void>;
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"@trezor/device-utils": "workspace:*",
|
||||
"@trezor/utils": "workspace:*",
|
||||
"dropbox": "^10.34.0",
|
||||
"fake-indexeddb": "^4.0.1",
|
||||
"fake-indexeddb": "^4.0.2",
|
||||
"redux": "^4.2.1",
|
||||
"redux-thunk": "^2.4.2"
|
||||
},
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"@trezor/type-utils": "workspace:*",
|
||||
"@trezor/utils": "workspace:*",
|
||||
"react": "18.2.0",
|
||||
"react-hook-form": "7.44.3"
|
||||
"react-hook-form": "^7.48.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^26.6.3",
|
||||
|
||||
@@ -32,12 +32,12 @@
|
||||
"ethereumjs-util": "^7.1.5",
|
||||
"pdfmake": "^0.2.7",
|
||||
"react": "18.2.0",
|
||||
"react-hook-form": "7.44.3",
|
||||
"trezor-address-validator": "^0.4.3",
|
||||
"react-hook-form": "^7.48.2",
|
||||
"trezor-address-validator": "^0.4.4",
|
||||
"web3-utils": "^1.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/pdfmake": "^0.2.2",
|
||||
"@types/pdfmake": "^0.2.8",
|
||||
"jest": "^26.6.3",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
"lottie-react-native": "^5.1.5",
|
||||
"node-libs-browser": "^2.2.1",
|
||||
"react": "18.2.0",
|
||||
"react-intl": "^6.4.4",
|
||||
"react-intl": "^6.5.1",
|
||||
"react-native": "0.71.8",
|
||||
"react-native-config": "^1.5.0",
|
||||
"react-native-flipper": "0.164.0",
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"@hookform/resolvers": "3.1.0",
|
||||
"@suite-native/atoms": "workspace:*",
|
||||
"react": "18.2.0",
|
||||
"react-hook-form": "7.44.3",
|
||||
"react-hook-form": "^7.48.2",
|
||||
"yup": "^0.32.11"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
"expo-haptics": "^12.4.0",
|
||||
"jotai": "1.9.1",
|
||||
"react": "18.2.0",
|
||||
"react-intl": "^6.4.2",
|
||||
"react-intl": "^6.5.1",
|
||||
"react-native": "0.71.8",
|
||||
"react-native-reanimated": "3.5.4",
|
||||
"react-redux": "8.0.7"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "18.2.0",
|
||||
"react-intl": "6.4.7",
|
||||
"react-intl": "^6.5.1",
|
||||
"react-native": "0.71.8"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
"date-fns": "^2.30.0",
|
||||
"jotai": "1.9.1",
|
||||
"react": "18.2.0",
|
||||
"react-hook-form": "7.44.3",
|
||||
"react-hook-form": "^7.48.2",
|
||||
"react-native": "0.71.8",
|
||||
"react-native-reanimated": "3.5.4",
|
||||
"react-redux": "8.0.7"
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"redux-persist": "6.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^26.6.3",
|
||||
"jest": "^26.6.3",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,6 @@
|
||||
"prettier": "3.0.3",
|
||||
"react": "18.2.0",
|
||||
"react-native": "0.71.8",
|
||||
"tsx": "^3.12.7"
|
||||
"tsx": "^3.14.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user