@react-financial-charts/utils
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.1.0](https://github.com/reactivemarkets/react-financial-charts/compare/v1.0.1...v1.1.0) (2021-02-26) | ||
### Features | ||
* adding react 17 as peer dependency ([569209b](https://github.com/reactivemarkets/react-financial-charts/commit/569209b6eb00f3c93eae1b5a9e4f014c055c93c7)), closes [#468](https://github.com/reactivemarkets/react-financial-charts/issues/468) | ||
# [1.0.0](https://github.com/reactivemarkets/react-financial-charts/compare/v1.0.0-alpha.16...v1.0.0) (2020-12-30) | ||
@@ -8,0 +19,0 @@ |
@@ -9,3 +9,3 @@ import * as React from "react"; | ||
export declare const withDeviceRatio: () => <TProps extends WithRatioProps>(OriginalComponent: React.ComponentClass<TProps, any>) => { | ||
new (props: Pick<TProps, Exclude<keyof TProps, "ratio">> | Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>): { | ||
new (props: Omit<TProps, "ratio"> | Readonly<Omit<TProps, "ratio">>): { | ||
readonly ref: React.RefObject<HTMLCanvasElement>; | ||
@@ -15,5 +15,5 @@ componentDidMount(): void; | ||
context: any; | ||
setState<K extends "ratio">(state: WithRatioState | ((prevState: Readonly<WithRatioState>, props: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>) => WithRatioState | Pick<WithRatioState, K> | null) | Pick<WithRatioState, K> | null, callback?: (() => void) | undefined): void; | ||
setState<K extends "ratio">(state: WithRatioState | ((prevState: Readonly<WithRatioState>, props: Readonly<Omit<TProps, "ratio">>) => WithRatioState | Pick<WithRatioState, K> | null) | Pick<WithRatioState, K> | null, callback?: (() => void) | undefined): void; | ||
forceUpdate(callback?: (() => void) | undefined): void; | ||
readonly props: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>> & Readonly<{ | ||
readonly props: Readonly<Omit<TProps, "ratio">> & Readonly<{ | ||
children?: React.ReactNode; | ||
@@ -25,15 +25,15 @@ }>; | ||
}; | ||
shouldComponentUpdate?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>, nextState: Readonly<WithRatioState>, nextContext: any): boolean; | ||
shouldComponentUpdate?(nextProps: Readonly<Omit<TProps, "ratio">>, nextState: Readonly<WithRatioState>, nextContext: any): boolean; | ||
componentWillUnmount?(): void; | ||
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; | ||
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>, prevState: Readonly<WithRatioState>): any; | ||
componentDidUpdate?(prevProps: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>, prevState: Readonly<WithRatioState>, snapshot?: any): void; | ||
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<TProps, "ratio">>, prevState: Readonly<WithRatioState>): any; | ||
componentDidUpdate?(prevProps: Readonly<Omit<TProps, "ratio">>, prevState: Readonly<WithRatioState>, snapshot?: any): void; | ||
componentWillMount?(): void; | ||
UNSAFE_componentWillMount?(): void; | ||
componentWillReceiveProps?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>, nextContext: any): void; | ||
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>, nextContext: any): void; | ||
componentWillUpdate?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>, nextState: Readonly<WithRatioState>, nextContext: any): void; | ||
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>, nextState: Readonly<WithRatioState>, nextContext: any): void; | ||
componentWillReceiveProps?(nextProps: Readonly<Omit<TProps, "ratio">>, nextContext: any): void; | ||
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<TProps, "ratio">>, nextContext: any): void; | ||
componentWillUpdate?(nextProps: Readonly<Omit<TProps, "ratio">>, nextState: Readonly<WithRatioState>, nextContext: any): void; | ||
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<TProps, "ratio">>, nextState: Readonly<WithRatioState>, nextContext: any): void; | ||
}; | ||
new (props: Pick<TProps, Exclude<keyof TProps, "ratio">>, context: any): { | ||
new (props: Omit<TProps, "ratio">, context: any): { | ||
readonly ref: React.RefObject<HTMLCanvasElement>; | ||
@@ -43,5 +43,5 @@ componentDidMount(): void; | ||
context: any; | ||
setState<K extends "ratio">(state: WithRatioState | ((prevState: Readonly<WithRatioState>, props: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>) => WithRatioState | Pick<WithRatioState, K> | null) | Pick<WithRatioState, K> | null, callback?: (() => void) | undefined): void; | ||
setState<K extends "ratio">(state: WithRatioState | ((prevState: Readonly<WithRatioState>, props: Readonly<Omit<TProps, "ratio">>) => WithRatioState | Pick<WithRatioState, K> | null) | Pick<WithRatioState, K> | null, callback?: (() => void) | undefined): void; | ||
forceUpdate(callback?: (() => void) | undefined): void; | ||
readonly props: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>> & Readonly<{ | ||
readonly props: Readonly<Omit<TProps, "ratio">> & Readonly<{ | ||
children?: React.ReactNode; | ||
@@ -53,15 +53,15 @@ }>; | ||
}; | ||
shouldComponentUpdate?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>, nextState: Readonly<WithRatioState>, nextContext: any): boolean; | ||
shouldComponentUpdate?(nextProps: Readonly<Omit<TProps, "ratio">>, nextState: Readonly<WithRatioState>, nextContext: any): boolean; | ||
componentWillUnmount?(): void; | ||
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; | ||
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>, prevState: Readonly<WithRatioState>): any; | ||
componentDidUpdate?(prevProps: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>, prevState: Readonly<WithRatioState>, snapshot?: any): void; | ||
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<TProps, "ratio">>, prevState: Readonly<WithRatioState>): any; | ||
componentDidUpdate?(prevProps: Readonly<Omit<TProps, "ratio">>, prevState: Readonly<WithRatioState>, snapshot?: any): void; | ||
componentWillMount?(): void; | ||
UNSAFE_componentWillMount?(): void; | ||
componentWillReceiveProps?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>, nextContext: any): void; | ||
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>, nextContext: any): void; | ||
componentWillUpdate?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>, nextState: Readonly<WithRatioState>, nextContext: any): void; | ||
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>, nextState: Readonly<WithRatioState>, nextContext: any): void; | ||
componentWillReceiveProps?(nextProps: Readonly<Omit<TProps, "ratio">>, nextContext: any): void; | ||
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<TProps, "ratio">>, nextContext: any): void; | ||
componentWillUpdate?(nextProps: Readonly<Omit<TProps, "ratio">>, nextState: Readonly<WithRatioState>, nextContext: any): void; | ||
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<TProps, "ratio">>, nextState: Readonly<WithRatioState>, nextContext: any): void; | ||
}; | ||
contextType?: React.Context<any> | undefined; | ||
}; |
@@ -7,9 +7,9 @@ import * as React from "react"; | ||
} | ||
export declare const withSize: (props?: Pick<AutoSizerProps, "style" | "className" | "defaultHeight" | "defaultWidth" | "disableHeight" | "disableWidth" | "nonce" | "onResize"> | undefined) => <TProps extends WithSizeProps>(OriginalComponent: React.ComponentClass<TProps, any>) => { | ||
new (props: Pick<TProps, Exclude<keyof TProps, "height" | "width">> | Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>): { | ||
export declare const withSize: (props?: Omit<AutoSizerProps, "children"> | undefined) => <TProps extends WithSizeProps>(OriginalComponent: React.ComponentClass<TProps, any>) => { | ||
new (props: Omit<TProps, "height" | "width"> | Readonly<Omit<TProps, "height" | "width">>): { | ||
render(): JSX.Element; | ||
context: any; | ||
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; | ||
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<TProps, "height" | "width">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; | ||
forceUpdate(callback?: (() => void) | undefined): void; | ||
readonly props: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>> & Readonly<{ | ||
readonly props: Readonly<Omit<TProps, "height" | "width">> & Readonly<{ | ||
children?: React.ReactNode; | ||
@@ -22,20 +22,20 @@ }>; | ||
componentDidMount?(): void; | ||
shouldComponentUpdate?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>, nextState: Readonly<{}>, nextContext: any): boolean; | ||
shouldComponentUpdate?(nextProps: Readonly<Omit<TProps, "height" | "width">>, nextState: Readonly<{}>, nextContext: any): boolean; | ||
componentWillUnmount?(): void; | ||
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; | ||
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>, prevState: Readonly<{}>): any; | ||
componentDidUpdate?(prevProps: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>, prevState: Readonly<{}>, snapshot?: any): void; | ||
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<TProps, "height" | "width">>, prevState: Readonly<{}>): any; | ||
componentDidUpdate?(prevProps: Readonly<Omit<TProps, "height" | "width">>, prevState: Readonly<{}>, snapshot?: any): void; | ||
componentWillMount?(): void; | ||
UNSAFE_componentWillMount?(): void; | ||
componentWillReceiveProps?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>, nextContext: any): void; | ||
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>, nextContext: any): void; | ||
componentWillUpdate?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>, nextState: Readonly<{}>, nextContext: any): void; | ||
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>, nextState: Readonly<{}>, nextContext: any): void; | ||
componentWillReceiveProps?(nextProps: Readonly<Omit<TProps, "height" | "width">>, nextContext: any): void; | ||
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<TProps, "height" | "width">>, nextContext: any): void; | ||
componentWillUpdate?(nextProps: Readonly<Omit<TProps, "height" | "width">>, nextState: Readonly<{}>, nextContext: any): void; | ||
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<TProps, "height" | "width">>, nextState: Readonly<{}>, nextContext: any): void; | ||
}; | ||
new (props: Pick<TProps, Exclude<keyof TProps, "height" | "width">>, context: any): { | ||
new (props: Omit<TProps, "height" | "width">, context: any): { | ||
render(): JSX.Element; | ||
context: any; | ||
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; | ||
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<TProps, "height" | "width">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; | ||
forceUpdate(callback?: (() => void) | undefined): void; | ||
readonly props: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>> & Readonly<{ | ||
readonly props: Readonly<Omit<TProps, "height" | "width">> & Readonly<{ | ||
children?: React.ReactNode; | ||
@@ -48,15 +48,15 @@ }>; | ||
componentDidMount?(): void; | ||
shouldComponentUpdate?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>, nextState: Readonly<{}>, nextContext: any): boolean; | ||
shouldComponentUpdate?(nextProps: Readonly<Omit<TProps, "height" | "width">>, nextState: Readonly<{}>, nextContext: any): boolean; | ||
componentWillUnmount?(): void; | ||
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; | ||
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>, prevState: Readonly<{}>): any; | ||
componentDidUpdate?(prevProps: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>, prevState: Readonly<{}>, snapshot?: any): void; | ||
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<TProps, "height" | "width">>, prevState: Readonly<{}>): any; | ||
componentDidUpdate?(prevProps: Readonly<Omit<TProps, "height" | "width">>, prevState: Readonly<{}>, snapshot?: any): void; | ||
componentWillMount?(): void; | ||
UNSAFE_componentWillMount?(): void; | ||
componentWillReceiveProps?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>, nextContext: any): void; | ||
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>, nextContext: any): void; | ||
componentWillUpdate?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>, nextState: Readonly<{}>, nextContext: any): void; | ||
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<TProps, Exclude<keyof TProps, "height" | "width">>>, nextState: Readonly<{}>, nextContext: any): void; | ||
componentWillReceiveProps?(nextProps: Readonly<Omit<TProps, "height" | "width">>, nextContext: any): void; | ||
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<TProps, "height" | "width">>, nextContext: any): void; | ||
componentWillUpdate?(nextProps: Readonly<Omit<TProps, "height" | "width">>, nextState: Readonly<{}>, nextContext: any): void; | ||
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<TProps, "height" | "width">>, nextState: Readonly<{}>, nextContext: any): void; | ||
}; | ||
contextType?: React.Context<any> | undefined; | ||
}; |
{ | ||
"name": "@react-financial-charts/utils", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Utils for react-financial-charts", | ||
@@ -42,9 +42,9 @@ "publishConfig": { | ||
"@types/react-virtualized-auto-sizer": "^1.0.0", | ||
"react-virtualized-auto-sizer": "^1.0.3" | ||
"react-virtualized-auto-sizer": "^1.0.4" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0" | ||
"react": "^16.0.0 || ^17.0.0", | ||
"react-dom": "^16.0.0 || ^17.0.0" | ||
}, | ||
"gitHead": "4fb31cfd7facea518167d8112defa66101432f7e" | ||
"gitHead": "a1a1b311172f8ad818040ccb99c8dc35dbf74212" | ||
} |
Sorry, the diff of this file is not supported yet
20299
+ Addedreact@17.0.2(transitive)
+ Addedreact-dom@17.0.2(transitive)
+ Addedscheduler@0.20.2(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-dom@16.14.0(transitive)
- Removedreact-is@16.13.1(transitive)
- Removedscheduler@0.19.1(transitive)