Bump deps (#381)
This commit is contained in:
parent
2219ab785f
commit
baf9a7b0a1
20
package.json
20
package.json
@ -8,11 +8,11 @@
|
||||
"packages/*"
|
||||
],
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^1.22.0-beta.1",
|
||||
"@polkadot/keyring": "^2.15.1",
|
||||
"@polkadot/types": "^1.22.0-beta.1",
|
||||
"@polkadot/util": "^2.15.1",
|
||||
"@polkadot/util-crypto": "^2.15.1",
|
||||
"@polkadot/api": "^1.23.0-beta.3",
|
||||
"@polkadot/keyring": "^2.16.1",
|
||||
"@polkadot/types": "^1.23.0-beta.3",
|
||||
"@polkadot/util": "^2.16.1",
|
||||
"@polkadot/util-crypto": "^2.16.1",
|
||||
"babel-core": "^7.0.0-bridge.0"
|
||||
},
|
||||
"scripts": {
|
||||
@ -31,11 +31,11 @@
|
||||
"watch": "cd packages/extension && yarn polkadot-exec-webpack --config webpack.config.js --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.10.3",
|
||||
"@polkadot/dev": "^0.55.12",
|
||||
"@polkadot/typegen": "^1.22.0-beta.1",
|
||||
"@types/jest": "^26.0.0",
|
||||
"copy-webpack-plugin": "^6.0.2",
|
||||
"@babel/core": "^7.10.4",
|
||||
"@polkadot/dev": "^0.55.18",
|
||||
"@polkadot/typegen": "^1.23.0-beta.3",
|
||||
"@types/jest": "^26.0.3",
|
||||
"copy-webpack-plugin": "^6.0.3",
|
||||
"sinon-chrome": "^3.0.1",
|
||||
"stylelint": "^13.6.1",
|
||||
"stylelint-config-recommended": "^3.0.0",
|
||||
|
||||
@ -5,10 +5,10 @@
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"license": "Apache-2",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.3",
|
||||
"@polkadot/api": "^1.22.0-beta.1",
|
||||
"@babel/runtime": "^7.10.4",
|
||||
"@polkadot/api": "^1.23.0-beta.3",
|
||||
"@polkadot/extension-inject": "0.32.0-beta.1",
|
||||
"@polkadot/keyring": "^2.15.1",
|
||||
"@polkadot/ui-keyring": "^0.55.0-beta.1"
|
||||
"@polkadot/keyring": "^2.16.1",
|
||||
"@polkadot/ui-keyring": "^0.55.0-beta.5"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"license": "Apache-2",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.3"
|
||||
"@babel/runtime": "^7.10.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/api": "*"
|
||||
|
||||
@ -5,10 +5,10 @@
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"license": "Apache-2",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.3",
|
||||
"@babel/runtime": "^7.10.4",
|
||||
"@polkadot/extension-inject": "0.32.0-beta.1",
|
||||
"@polkadot/util": "^2.15.1",
|
||||
"@polkadot/util-crypto": "^2.15.1"
|
||||
"@polkadot/util": "^2.16.1",
|
||||
"@polkadot/util-crypto": "^2.16.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/api": "*"
|
||||
|
||||
@ -5,11 +5,11 @@
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"license": "Apache-2",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.3"
|
||||
"@babel/runtime": "^7.10.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chrome": "^0.0.117",
|
||||
"@types/firefox-webext-browser": "^70.0.1"
|
||||
"@types/firefox-webext-browser": "^78.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/api": "*"
|
||||
|
||||
@ -5,14 +5,14 @@
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"license": "Apache-2",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.3",
|
||||
"@babel/runtime": "^7.10.4",
|
||||
"@polkadot/extension-base": "0.32.0-beta.1",
|
||||
"@polkadot/extension-inject": "0.32.0-beta.1",
|
||||
"@polkadot/keyring": "^2.15.1",
|
||||
"@polkadot/react-identicon": "^0.55.0-beta.1",
|
||||
"@polkadot/react-qr": "^0.55.0-beta.1",
|
||||
"@polkadot/util": "^2.15.1",
|
||||
"@polkadot/util-crypto": "^2.15.1",
|
||||
"@polkadot/keyring": "^2.16.1",
|
||||
"@polkadot/react-identicon": "^0.55.0-beta.5",
|
||||
"@polkadot/react-qr": "^0.55.0-beta.5",
|
||||
"@polkadot/util": "^2.16.1",
|
||||
"@polkadot/util-crypto": "^2.16.1",
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
"react-dropzone": "^11.0.1",
|
||||
|
||||
@ -22,6 +22,8 @@ interface EditState {
|
||||
toggleActions: number;
|
||||
}
|
||||
|
||||
// Prop types is severely broken
|
||||
// eslint-disable-next-line react/prop-types
|
||||
function Account ({ address, className, genesisHash, isExternal, isHidden, parentName, suri }: Props): React.ReactElement<Props> {
|
||||
const onAction = useContext(ActionContext);
|
||||
const [{ isEditing, toggleActions }, setEditing] = useState<EditState>({ isEditing: false, toggleActions: 0 });
|
||||
|
||||
@ -10,6 +10,8 @@ interface Props extends AccountWithChildren {
|
||||
parentName?: string;
|
||||
}
|
||||
|
||||
// Prop types is severely broken
|
||||
// eslint-disable-next-line react/prop-types
|
||||
export default function AccountsTree ({ parentName, suri, ...account }: Props): React.ReactElement<Props> {
|
||||
return (
|
||||
<>
|
||||
|
||||
@ -38,6 +38,9 @@ function isRawPayload (payload: SignerPayloadJSON | SignerPayloadRaw): payload i
|
||||
return !!(payload as SignerPayloadRaw).data;
|
||||
}
|
||||
|
||||
// broken, broken, broken
|
||||
/* eslint-disable react/prop-types */
|
||||
|
||||
export default function Request ({ account: { isExternal }, buttonText, isFirst, request, signId, url }: Props): React.ReactElement<Props> | null {
|
||||
const onAction = useContext(ActionContext);
|
||||
const [{ hexBytes, payload }, setData] = useState<Data>({ hexBytes: null, payload: null });
|
||||
|
||||
@ -17,7 +17,7 @@ function classes (...classNames: (boolean | null | string | undefined)[]): strin
|
||||
.join(' ');
|
||||
}
|
||||
|
||||
export interface InputFileProps extends ThemeProps {
|
||||
export interface InputFileProps {
|
||||
// Reference Example Usage: https://github.com/react-dropzone/react-dropzone/tree/master/examples/Accept
|
||||
// i.e. MIME types: 'application/json, text/plain', or '.json, .txt'
|
||||
className?: string;
|
||||
@ -58,6 +58,7 @@ function convertResult (result: ArrayBuffer, convertHex?: boolean): Uint8Array {
|
||||
return data;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line react/prop-types
|
||||
function InputFile ({ accept, className = '', clearContent, convertHex, isDisabled, isError = false, label, onChange, placeholder }: InputFileProps): React.ReactElement<InputFileProps> {
|
||||
const dropRef = createRef<DropzoneRef>();
|
||||
const [file, setFile] = useState<FileState | undefined>();
|
||||
@ -123,7 +124,7 @@ function InputFile ({ accept, className = '', clearContent, convertHex, isDisabl
|
||||
: dropZone;
|
||||
}
|
||||
|
||||
export default React.memo(styled(InputFile)(({ isError, theme }: InputFileProps) => `
|
||||
export default React.memo(styled(InputFile)(({ isError, theme }: InputFileProps & ThemeProps) => `
|
||||
border: 1px solid ${isError ? theme.errorBorderColor : theme.inputBorderColor};
|
||||
background: ${theme.inputBackground};
|
||||
border-radius: ${theme.borderRadius};
|
||||
|
||||
@ -8,7 +8,7 @@ import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { Link as RouterLink } from 'react-router-dom';
|
||||
|
||||
interface Props extends ThemeProps {
|
||||
interface Props {
|
||||
children?: React.ReactNode;
|
||||
className?: string;
|
||||
isDanger?: boolean;
|
||||
@ -17,6 +17,7 @@ interface Props extends ThemeProps {
|
||||
to?: string;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line react/prop-types
|
||||
function Link ({ children, className = '', isDisabled, onClick, to }: Props): React.ReactElement<Props> {
|
||||
if (isDisabled) {
|
||||
return (
|
||||
@ -45,7 +46,7 @@ function Link ({ children, className = '', isDisabled, onClick, to }: Props): Re
|
||||
);
|
||||
}
|
||||
|
||||
export default styled(Link)(({ isDanger, theme }: Props) => `
|
||||
export default styled(Link)(({ isDanger, theme }: Props & ThemeProps) => `
|
||||
align-items: center;
|
||||
color: ${isDanger ? theme.textColorDanger : theme.textColor};
|
||||
display: flex;
|
||||
|
||||
@ -5,13 +5,13 @@
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"license": "Apache-2",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.3",
|
||||
"@babel/runtime": "^7.10.4",
|
||||
"@polkadot/extension-base": "0.32.0-beta.1",
|
||||
"@polkadot/extension-inject": "0.32.0-beta.1",
|
||||
"@polkadot/extension-ui": "0.32.0-beta.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.55.12",
|
||||
"@polkadot/dev": "^0.55.18",
|
||||
"babel-loader": "^8.1.0",
|
||||
"extract-loader": "^5.1.0",
|
||||
"file-loader": "^6.0.0",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user