* Bump deps

* Use override

* additional override
This commit is contained in:
Jaco 2021-06-23 12:21:24 +03:00 committed by GitHub
parent f9d13ad8af
commit a44faff60d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
44 changed files with 713 additions and 839 deletions

View File

@ -25,7 +25,7 @@
"@polkadot/x-rxjs": "^6.9.1",
"babel-core": "^7.0.0-bridge.0",
"styled-components": "^5.2.0",
"typescript": "^4.3.2"
"typescript": "^4.3.4"
},
"scripts": {
"analyze": "yarn clean && BUILD_ANALYZE=1 yarn run build:code && yarn source-map-explorer packages/apps/build/main.*.js",
@ -67,23 +67,23 @@
"start:electron": "yarn clean:electronBuild && concurrently 'yarn build:devElectronMain && cd packages/apps-electron && electron ./build/electron.js' 'yarn build:devElectronRenderer'"
},
"devDependencies": {
"@babel/core": "^7.14.3",
"@babel/register": "^7.13.16",
"@babel/runtime": "^7.14.0",
"@babel/core": "^7.14.6",
"@babel/register": "^7.14.5",
"@babel/runtime": "^7.14.6",
"@crustio/crust-pin": "^0.0.1",
"@pinata/sdk": "^1.1.23",
"@polkadot/dev": "^0.62.42",
"@polkadot/ts": "^0.3.90",
"@polkadot/dev": "^0.62.43",
"@polkadot/ts": "^0.3.91",
"@types/bn.js": "^4.11.6",
"@types/chart.js": "^2.9.32",
"@types/file-saver": "^2.0.2",
"@types/jest": "^26.0.23",
"@types/react-beautiful-dnd": "^13.0.0",
"@types/react-copy-to-clipboard": "^5.0.0",
"@types/react-dom": "^17.0.6",
"@types/react-dom": "^17.0.8",
"@types/react-router-dom": "^5.1.7",
"@types/store": "^2.0.2",
"@types/styled-components": "^5.1.9",
"@types/styled-components": "^5.1.10",
"@types/styled-theming": "^2.2.5",
"concurrently": "^6.2.0",
"devtron": "^1.4.0",
@ -100,7 +100,7 @@
"stylelint": "^13.13.1",
"stylelint-config-recommended": "^5.0.0",
"stylelint-config-styled-components": "^0.1.1",
"webpack": "^5.38.1",
"webpack-cli": "^4.7.0"
"webpack": "^5.40.0",
"webpack-cli": "^4.7.2"
}
}

View File

@ -8,22 +8,22 @@
"repository": "github:polkadot-js/apps",
"dependencies": {
"@acala-network/type-definitions": "^0.7.4-11",
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@crustio/type-definitions": "0.0.10",
"@darwinia/types": "^1.1.0-alpha.21",
"@digitalnative/type-definitions": "^1.1.9",
"@docknetwork/node-types": "^0.4.6",
"@edgeware/node-types": "^3.5.1-erup-4",
"@equilab/definitions": "1.2.3",
"@interlay/polkabtc-types": "^0.7.3",
"@kiltprotocol/type-definitions": "^0.1.6",
"@equilab/definitions": "1.2.4",
"@interlay/polkabtc-types": "^0.7.4",
"@kiltprotocol/type-definitions": "^0.1.7",
"@laminar/type-definitions": "^0.3.1",
"@phala/typedefs": "^0.1.5",
"@polkadot/networks": "^6.9.1",
"@polymathnetwork/polymesh-types": "^0.0.2",
"@snowfork/snowbridge-types": "^0.2.3",
"@sora-substrate/type-definitions": "^1.3.17",
"@subsocial/types": "^0.5.5",
"@sora-substrate/type-definitions": "^1.3.29",
"@subsocial/types": "^0.5.8",
"@zeitgeistpm/type-defs": "^0.2.0",
"moonbeam-types-bundle": "1.1.22",
"pontem-types-bundle": "^1.0.5"

View File

@ -4,15 +4,15 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/core": "^7.14.3",
"@babel/core": "^7.14.6",
"@babel/polyfill": "^7.12.1",
"@polkadot/dev": "^0.62.42",
"@polkadot/dev": "^0.62.43",
"@polkadot/react-components": "^0.93.2-38",
"electron-log": "^4.3.5",
"electron-updater": "^4.3.9"
},
"devDependencies": {
"@types/react-dom": "^17.0.6",
"@types/react-dom": "^17.0.8",
"@types/tmp": "^0.2.0",
"babel-loader": "^8.2.2",
"copy-webpack-plugin": "^7.0.0",
@ -21,6 +21,6 @@
"react-dom": "^17.0.2",
"thread-loader": "^3.0.4",
"tmp": "^0.2.1",
"webpack": "^5.38.1"
"webpack": "^5.40.0"
}
}

View File

@ -5,6 +5,6 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0"
"@babel/runtime": "^7.14.6"
}
}

View File

@ -6,12 +6,12 @@
"license": "Apache-2.0",
"homepage": ".",
"dependencies": {
"@babel/core": "^7.14.3",
"@babel/core": "^7.14.6",
"@babel/polyfill": "^7.12.1",
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/apps-config": "^0.93.2-38",
"@polkadot/apps-routing": "^0.93.2-38",
"@polkadot/dev": "^0.62.42",
"@polkadot/dev": "^0.62.43",
"@polkadot/react-api": "^0.93.2-38",
"@polkadot/react-components": "^0.93.2-38",
"@polkadot/react-hooks": "^0.93.2-38",
@ -19,7 +19,7 @@
"@polkadot/react-query": "^0.93.2-38",
"@polkadot/react-signer": "^0.93.2-38",
"punycode": "^2.1.1",
"query-string": "^7.0.0"
"query-string": "^7.0.1"
},
"devDependencies": {
"@types/punycode": "^2.1.0",
@ -39,9 +39,9 @@
"process": "^0.11.10",
"stream-browserify": "^3.0.0",
"url-loader": "^4.1.1",
"webpack": "^5.38.1",
"webpack-cli": "^4.7.0",
"webpack-dev-server": "^4.0.0-beta.0",
"webpack-merge": "^5.7.3"
"webpack": "^5.40.0",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^4.0.0-beta.3",
"webpack-merge": "^5.8.0"
}
}

View File

@ -5,8 +5,8 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@polkadot/phishing": "^0.6.206",
"@babel/runtime": "^7.14.6",
"@polkadot/phishing": "^0.6.207",
"@polkadot/react-components": "^0.93.2-38",
"@polkadot/vanitygen": "^0.39.1",
"detect-browser": "^5.2.0",

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38",
"file-saver": "^2.0.5"
},

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38"
}
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38"
},
"devDependencies": {

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38"
}
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38",
"secp256k1": "^3.8.0"
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/api-contract": "^4.15.2-2"
}
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38",
"@polkadot/react-query": "^0.93.2-38"
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38",
"@polkadot/react-query": "^0.93.2-38"
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38"
}
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38",
"@polkadot/react-params": "^0.93.2-38",
"@polkadot/react-signer": "^0.93.2-38"

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38"
}
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38"
}
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38",
"@polkadot/react-query": "^0.93.2-38"
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38",
"@polkadot/react-query": "^0.93.2-38"
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38"
}
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38"
}
}

View File

@ -5,10 +5,10 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/apps-config": "^0.93.2-38",
"@polkadot/react-components": "^0.93.2-38",
"@polkadot/react-query": "^0.93.2-38",
"query-string": "^7.0.0"
"query-string": "^7.0.1"
}
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38"
}
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38"
}
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/app-explorer": "^0.93.2-38",
"@polkadot/react-components": "^0.93.2-38",
"@polkadot/react-query": "^0.93.2-38"

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38",
"@polkadot/react-params": "^0.93.2-38"
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38"
}
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38",
"@polkadot/react-query": "^0.93.2-38"
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38",
"@polkadot/react-query": "^0.93.2-38"
}

View File

@ -5,10 +5,10 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/api": "^4.15.2-2",
"@polkadot/extension-dapp": "^0.38.6",
"@polkadot/x-rxjs": "^6.9.1",
"fflate": "^0.7.0"
"fflate": "^0.7.1"
}
}

View File

@ -14,7 +14,7 @@ export default function withApi <P extends ApiProps> (Inner: React.ComponentType
class WithApi extends React.PureComponent<SubtractProps<P, ApiProps>> {
private component: any = React.createRef();
public render (): React.ReactNode {
public override render (): React.ReactNode {
return (
<ApiConsumer>
{(apiProps?: ApiProps): React.ReactNode => {

View File

@ -42,7 +42,7 @@ const errorred: Record<string, boolean> = {};
export default function withCall<P extends ApiProps> (endpoint: string, { at, atProp, callOnResult, fallbacks, isMulti = false, params = [], paramName, paramPick, paramValid = false, propName, skipIf = NO_SKIP, transform = echoTransform, withIndicator = false }: Options = {}): (Inner: React.ComponentType<ApiProps>) => React.ComponentType<any> {
return (Inner: React.ComponentType<ApiProps>): React.ComponentType<SubtractProps<P, ApiProps>> => {
class WithPromise extends React.Component<P, State> {
public state: State = {
public override state: State = {
callResult: undefined,
callUpdated: false,
callUpdatedAt: 0
@ -64,7 +64,7 @@ export default function withCall<P extends ApiProps> (endpoint: string, { at, at
this.propName = `${section}_${method}`;
}
public componentDidUpdate (prevProps: any): void {
public override componentDidUpdate (prevProps: any): void {
const oldParams = this.getParams(prevProps);
const newParams = this.getParams(this.props);
@ -76,7 +76,7 @@ export default function withCall<P extends ApiProps> (endpoint: string, { at, at
}
}
public componentDidMount (): void {
public override componentDidMount (): void {
this.isActive = true;
if (withIndicator) {
@ -100,7 +100,7 @@ export default function withCall<P extends ApiProps> (endpoint: string, { at, at
}, 0);
}
public componentWillUnmount (): void {
public override componentWillUnmount (): void {
this.isActive = false;
this.unsubscribe()
@ -279,7 +279,7 @@ export default function withCall<P extends ApiProps> (endpoint: string, { at, at
}
}
public render (): React.ReactNode {
public override render (): React.ReactNode {
const { callResult, callUpdated, callUpdatedAt } = this.state;
const _props = {
...this.props,

View File

@ -23,14 +23,14 @@ export default function withObservable<T, P> (observable: Observable<P>, { callO
class WithObservable extends React.Component<any, State> {
private isActive = true;
public state: State = {
public override state: State = {
callResult: undefined,
callUpdated: false,
callUpdatedAt: 0,
subscriptions: []
};
public componentDidMount (): void {
public override componentDidMount (): void {
this.setState({
subscriptions: [
observable
@ -44,7 +44,7 @@ export default function withObservable<T, P> (observable: Observable<P>, { callO
});
}
public componentWillUnmount (): void {
public override componentWillUnmount (): void {
this.isActive = false;
this.state.subscriptions.forEach((subscription): void =>
subscription.unsubscribe()
@ -69,7 +69,7 @@ export default function withObservable<T, P> (observable: Observable<P>, { callO
}
}
public render (): React.ReactNode {
public override render (): React.ReactNode {
const { children } = this.props;
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const { callResult, callUpdated, callUpdatedAt } = this.state;

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@fortawesome/fontawesome-svg-core": "^1.2.35",
"@fortawesome/free-solid-svg-icons": "^5.15.3",
"@fortawesome/react-fontawesome": "^0.1.14",
@ -21,7 +21,7 @@
"chart.js": "^2.9.4",
"codeflask": "^1.4.1",
"i18next": "^19.9.2",
"i18next-browser-languagedetector": "^6.1.1",
"i18next-browser-languagedetector": "^6.1.2",
"owasp-password-strength-test": "^1.3.0",
"react": "^17.0.2",
"react-beautiful-dnd": "^13.1.0",
@ -29,7 +29,7 @@
"react-copy-to-clipboard": "^5.0.3",
"react-dom": "^17.0.2",
"react-dropzone": "^11.3.2",
"react-i18next": "^11.10.0",
"react-i18next": "^11.11.0",
"react-is": "^17.0.2",
"react-markdown": "^5.0.3",
"react-router": "^5.2.0",

View File

@ -22,7 +22,7 @@ interface State {
// NOTE: This is the only way to do an error boundary, via extend
class ErrorBoundary extends React.Component<Props> {
state: State = { error: null, prevTrigger: null };
public override state: State = { error: null, prevTrigger: null };
static getDerivedStateFromError (error: Error): Partial<State> {
return { error };
@ -36,7 +36,7 @@ class ErrorBoundary extends React.Component<Props> {
: null;
}
public componentDidCatch (error: Error): void {
public override componentDidCatch (error: Error): void {
const { doThrow, onError } = this.props;
onError && onError();
@ -46,7 +46,7 @@ class ErrorBoundary extends React.Component<Props> {
}
}
public render (): React.ReactNode {
public override render (): React.ReactNode {
const { children, error: errorProps, t } = this.props;
const { error } = this.state;
const displayError = errorProps || error;

View File

@ -118,7 +118,7 @@ function setLastValue (type: KeyringOption$Type = DEFAULT_TYPE, value: string):
}
class InputAddress extends React.PureComponent<Props, State> {
public state: State = {};
public override state: State = {};
public static getDerivedStateFromProps ({ type, value }: Props, { lastValue }: State): Pick<State, never> | null {
try {
@ -133,7 +133,7 @@ class InputAddress extends React.PureComponent<Props, State> {
}
}
public render (): React.ReactNode {
public override render (): React.ReactNode {
const { className = '', defaultValue, help, hideAddress = false, isDisabled = false, isError, isMultiple, label, labelExtra, options, optionsAll, placeholder, type = DEFAULT_TYPE, withEllipsis, withLabel } = this.props;
const hasOptions = (options && options.length !== 0) || (optionsAll && Object.keys(optionsAll[type]).length !== 0);

View File

@ -5,6 +5,6 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0"
"@babel/runtime": "^7.14.6"
}
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38"
}
}

View File

@ -37,7 +37,7 @@ interface State {
export { Holder };
class Params extends React.PureComponent<Props, State> {
public state: State = {
public override state: State = {
params: null
};
@ -63,13 +63,13 @@ class Params extends React.PureComponent<Props, State> {
}
// Fire the initial onChange (we did update) when the component is loaded
public componentDidMount (): void {
public override componentDidMount (): void {
this.componentDidUpdate(null, {});
}
// This is needed in the case where the item changes, i.e. the values get
// initialized and we need to alert the parent that we have new values
public componentDidUpdate (_: Props | null, prevState: State): void {
public override componentDidUpdate (_: Props | null, prevState: State): void {
const { isDisabled } = this.props;
const { values } = this.state;
@ -78,7 +78,7 @@ class Params extends React.PureComponent<Props, State> {
}
}
public render (): React.ReactNode {
public override render (): React.ReactNode {
const { children, className = '', isDisabled, onEnter, onEscape, overrides, params, registry = api.registry, withBorder = true } = this.props;
const { values = this.props.values } = this.state;

View File

@ -5,6 +5,6 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0"
"@babel/runtime": "^7.14.6"
}
}

View File

@ -5,7 +5,7 @@
"version": "0.93.2-38",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.14.6",
"@polkadot/react-components": "^0.93.2-38"
}
}

View File

@ -9,7 +9,7 @@
"testcontainers": "^7.11.1"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.13.0",
"@testing-library/jest-dom": "^5.14.1",
"tsconfig-paths": "^3.9.0"
}
}

1382
yarn.lock

File diff suppressed because it is too large Load Diff