victory-errorbar 36.6.0 → 36.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/victory-errorbar.js +3 -1
- package/es/victory-errorbar.d.ts +143 -2
- package/lib/victory-errorbar.d.ts +143 -2
- package/package.json +24 -15
- package/src/victory-errorbar.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# victory-errorbar
|
|
2
2
|
|
|
3
|
+
## 36.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- - Removed Template Literal Types to increase TS compatibility (fixes [#2418](https://github.com/FormidableLabs/victory/issues/2418)) ([#2420](https://github.com/FormidableLabs/victory/pull/2420))
|
|
8
|
+
- Improved type for `VictoryLabelProps["textAnchor"]` (fixes [#2361](https://github.com/FormidableLabs/victory/issues/2361))
|
|
9
|
+
- Fixed exported types for `VictoryAxis`, `VictoryBoxPlot`, `VictoryErrorBar`, and `VictoryScatter` (fixes [#2411](https://github.com/FormidableLabs/victory/issues/2411))
|
|
10
|
+
- Migrate `victory-cursor-container` to TS (fixes [#2402](https://github.com/FormidableLabs/victory/issues/2402))
|
|
11
|
+
- Updated dependencies [[`d1f281104`](https://github.com/FormidableLabs/victory/commit/d1f281104c7598c43e220dafd57546ab03daeeb5)]:
|
|
12
|
+
- victory-core@36.6.1
|
|
13
|
+
|
|
3
14
|
## 36.6.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/dist/victory-errorbar.js
CHANGED
|
@@ -14332,7 +14332,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
14332
14332
|
var USER_PROPS_SAFELIST = {
|
|
14333
14333
|
startsWith: ["data-", "aria-"],
|
|
14334
14334
|
exactMatch: []
|
|
14335
|
-
};
|
|
14335
|
+
}; // Normally we'd use Template Literal Types, but we're avoiding it to maximize TS compatibility with TS < 4.1
|
|
14336
|
+
|
|
14337
|
+
// `data-${string}` | `aria-${string}`;
|
|
14336
14338
|
|
|
14337
14339
|
/**
|
|
14338
14340
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
package/es/victory-errorbar.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import PropTypes from "prop-types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { EventPropTypeInterface, StringOrNumberOrCallback, StringOrNumberOrList, VictoryDatableProps, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
|
|
2
4
|
export declare type VictoryErrorBarTTargetType = "data" | "labels" | "parent";
|
|
3
5
|
export declare type ErrorType = StringOrNumberOrList | ((...args: any[]) => StringOrNumberOrList);
|
|
4
6
|
export interface VictoryErrorBarProps extends Omit<VictoryCommonProps, "polar">, VictoryDatableProps, VictoryLabelableProps, VictoryMultiLabelableProps {
|
|
@@ -8,5 +10,144 @@ export interface VictoryErrorBarProps extends Omit<VictoryCommonProps, "polar">,
|
|
|
8
10
|
events?: EventPropTypeInterface<VictoryErrorBarTTargetType, StringOrNumberOrCallback>[];
|
|
9
11
|
style?: VictoryStyleInterface;
|
|
10
12
|
}
|
|
11
|
-
|
|
13
|
+
interface VictoryErrorBarBase extends EventsMixinClass<VictoryErrorBarProps> {
|
|
14
|
+
}
|
|
15
|
+
declare class VictoryErrorBarBase extends React.Component<VictoryErrorBarProps> {
|
|
16
|
+
static animationWhitelist: string[];
|
|
17
|
+
static displayName: string;
|
|
18
|
+
static role: string;
|
|
19
|
+
static defaultTransitions: import("victory-core").AnimatePropTypeInterface;
|
|
20
|
+
static propTypes: {
|
|
21
|
+
borderWidth: PropTypes.Requireable<number>;
|
|
22
|
+
errorX: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
|
|
23
|
+
errorY: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
|
|
24
|
+
horizontal: PropTypes.Requireable<boolean>;
|
|
25
|
+
categories?: React.Validator<import("victory-core").CategoryPropType | null | undefined> | undefined;
|
|
26
|
+
data?: React.Validator<readonly any[] | null | undefined> | undefined;
|
|
27
|
+
dataComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
28
|
+
domain?: React.Validator<import("victory-core").ForAxes<import("victory-core").DomainTuple> | null | undefined> | undefined;
|
|
29
|
+
domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined;
|
|
30
|
+
samples?: React.Validator<number | null | undefined> | undefined;
|
|
31
|
+
sortKey?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
32
|
+
sortOrder?: React.Validator<import("victory-core").SortOrderPropType | null | undefined> | undefined;
|
|
33
|
+
x?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
34
|
+
y?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
35
|
+
y0?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
36
|
+
theme?: React.Validator<import("victory-core").VictoryThemeDefinition | null | undefined> | undefined;
|
|
37
|
+
animate?: React.Validator<boolean | import("victory-core").AnimatePropTypeInterface | null | undefined> | undefined;
|
|
38
|
+
colorScale?: React.Validator<import("victory-core").ColorScalePropType | null | undefined> | undefined;
|
|
39
|
+
containerComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
40
|
+
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], StringOrNumberOrList>[] | null | undefined> | undefined;
|
|
41
|
+
groupComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
42
|
+
height?: React.Validator<number | null | undefined> | undefined;
|
|
43
|
+
maxDomain?: React.Validator<number | {
|
|
44
|
+
x?: number | undefined;
|
|
45
|
+
y?: number | undefined;
|
|
46
|
+
} | null | undefined> | undefined;
|
|
47
|
+
minDomain?: React.Validator<number | {
|
|
48
|
+
x?: number | undefined;
|
|
49
|
+
y?: number | undefined;
|
|
50
|
+
} | null | undefined> | undefined;
|
|
51
|
+
name?: React.Validator<string | null | undefined> | undefined;
|
|
52
|
+
origin?: React.Validator<import("victory-core").OriginType | null | undefined> | undefined;
|
|
53
|
+
padding?: React.Validator<import("victory-core").PaddingProps | null | undefined> | undefined;
|
|
54
|
+
polar?: React.Validator<boolean | null | undefined> | undefined;
|
|
55
|
+
range?: React.Validator<import("victory-core").ForAxes<import("victory-core").RangeTuple> | null | undefined> | undefined;
|
|
56
|
+
scale?: React.Validator<import("victory-core").D3Scale<any> | import("victory-core").ScaleName | {
|
|
57
|
+
x?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
|
|
58
|
+
y?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
|
|
59
|
+
} | null | undefined> | undefined;
|
|
60
|
+
sharedEvents?: React.Validator<{
|
|
61
|
+
events: any[];
|
|
62
|
+
getEventState: Function;
|
|
63
|
+
} | null | undefined> | undefined;
|
|
64
|
+
singleQuadrantDomainPadding?: React.Validator<boolean | {
|
|
65
|
+
x?: boolean | undefined;
|
|
66
|
+
y?: boolean | undefined;
|
|
67
|
+
} | null | undefined> | undefined;
|
|
68
|
+
standalone?: React.Validator<boolean | null | undefined> | undefined;
|
|
69
|
+
width?: React.Validator<number | null | undefined> | undefined;
|
|
70
|
+
};
|
|
71
|
+
static defaultProps: {
|
|
72
|
+
containerComponent: JSX.Element;
|
|
73
|
+
data: {
|
|
74
|
+
x: number;
|
|
75
|
+
y: number;
|
|
76
|
+
errorX: number;
|
|
77
|
+
errorY: number;
|
|
78
|
+
}[];
|
|
79
|
+
dataComponent: JSX.Element;
|
|
80
|
+
labelComponent: JSX.Element;
|
|
81
|
+
groupComponent: JSX.Element;
|
|
82
|
+
samples: number;
|
|
83
|
+
sortOrder: string;
|
|
84
|
+
standalone: boolean;
|
|
85
|
+
theme: import("victory-core").VictoryThemeDefinition;
|
|
86
|
+
};
|
|
87
|
+
static getDomain: (props: any, axis: any) => any;
|
|
88
|
+
static getData: (props: any) => any;
|
|
89
|
+
static getBaseProps: (props: any) => any;
|
|
90
|
+
static expectedComponents: string[];
|
|
91
|
+
shouldAnimate(): boolean;
|
|
92
|
+
render(): React.ReactElement;
|
|
93
|
+
}
|
|
94
|
+
export declare const VictoryErrorBar: {
|
|
95
|
+
new (props: import("victory-core").EventMixinCommonProps): {
|
|
96
|
+
state: {};
|
|
97
|
+
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
98
|
+
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
99
|
+
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
100
|
+
externalMutations: {} | undefined;
|
|
101
|
+
calculatedState: {};
|
|
102
|
+
globalEvents: {};
|
|
103
|
+
prevGlobalEventKeys: string[];
|
|
104
|
+
boundGlobalEvents: {};
|
|
105
|
+
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
106
|
+
componentDidMount(): void;
|
|
107
|
+
componentDidUpdate(prevProps: any): void;
|
|
108
|
+
componentWillUnmount(): void;
|
|
109
|
+
addGlobalListener(key: any): void;
|
|
110
|
+
removeGlobalListener(key: any): void;
|
|
111
|
+
getStateChanges(props: any): {};
|
|
112
|
+
applyExternalMutations(props: any, externalMutations: any): void;
|
|
113
|
+
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
114
|
+
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
115
|
+
cacheValues(obj: any): void;
|
|
116
|
+
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
117
|
+
getAllEvents(props: any): any;
|
|
118
|
+
getComponentProps(component: any, type: any, index: any): any;
|
|
119
|
+
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
120
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
121
|
+
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
122
|
+
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
123
|
+
context: unknown;
|
|
124
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
125
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
126
|
+
render(): React.ReactNode;
|
|
127
|
+
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
128
|
+
refs: {
|
|
129
|
+
[key: string]: React.ReactInstance;
|
|
130
|
+
};
|
|
131
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
132
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
133
|
+
componentWillMount?(): void;
|
|
134
|
+
UNSAFE_componentWillMount?(): void;
|
|
135
|
+
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
136
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
137
|
+
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
138
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
139
|
+
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
140
|
+
getSharedEventState: (key: string, value: string) => unknown;
|
|
141
|
+
baseProps: Record<string, object>;
|
|
142
|
+
dataKeys: string[];
|
|
143
|
+
hasEvents: unknown;
|
|
144
|
+
events: unknown;
|
|
145
|
+
};
|
|
146
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
147
|
+
role?: string | undefined;
|
|
148
|
+
expectedComponents?: string[] | undefined;
|
|
149
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
150
|
+
animationWhitelist?: string[] | undefined;
|
|
151
|
+
} & typeof VictoryErrorBarBase;
|
|
152
|
+
export {};
|
|
12
153
|
//# sourceMappingURL=victory-errorbar.d.ts.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import PropTypes from "prop-types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { EventPropTypeInterface, StringOrNumberOrCallback, StringOrNumberOrList, VictoryDatableProps, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core";
|
|
2
4
|
export declare type VictoryErrorBarTTargetType = "data" | "labels" | "parent";
|
|
3
5
|
export declare type ErrorType = StringOrNumberOrList | ((...args: any[]) => StringOrNumberOrList);
|
|
4
6
|
export interface VictoryErrorBarProps extends Omit<VictoryCommonProps, "polar">, VictoryDatableProps, VictoryLabelableProps, VictoryMultiLabelableProps {
|
|
@@ -8,5 +10,144 @@ export interface VictoryErrorBarProps extends Omit<VictoryCommonProps, "polar">,
|
|
|
8
10
|
events?: EventPropTypeInterface<VictoryErrorBarTTargetType, StringOrNumberOrCallback>[];
|
|
9
11
|
style?: VictoryStyleInterface;
|
|
10
12
|
}
|
|
11
|
-
|
|
13
|
+
interface VictoryErrorBarBase extends EventsMixinClass<VictoryErrorBarProps> {
|
|
14
|
+
}
|
|
15
|
+
declare class VictoryErrorBarBase extends React.Component<VictoryErrorBarProps> {
|
|
16
|
+
static animationWhitelist: string[];
|
|
17
|
+
static displayName: string;
|
|
18
|
+
static role: string;
|
|
19
|
+
static defaultTransitions: import("victory-core").AnimatePropTypeInterface;
|
|
20
|
+
static propTypes: {
|
|
21
|
+
borderWidth: PropTypes.Requireable<number>;
|
|
22
|
+
errorX: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
|
|
23
|
+
errorY: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>;
|
|
24
|
+
horizontal: PropTypes.Requireable<boolean>;
|
|
25
|
+
categories?: React.Validator<import("victory-core").CategoryPropType | null | undefined> | undefined;
|
|
26
|
+
data?: React.Validator<readonly any[] | null | undefined> | undefined;
|
|
27
|
+
dataComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
28
|
+
domain?: React.Validator<import("victory-core").ForAxes<import("victory-core").DomainTuple> | null | undefined> | undefined;
|
|
29
|
+
domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined;
|
|
30
|
+
samples?: React.Validator<number | null | undefined> | undefined;
|
|
31
|
+
sortKey?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
32
|
+
sortOrder?: React.Validator<import("victory-core").SortOrderPropType | null | undefined> | undefined;
|
|
33
|
+
x?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
34
|
+
y?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
35
|
+
y0?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined;
|
|
36
|
+
theme?: React.Validator<import("victory-core").VictoryThemeDefinition | null | undefined> | undefined;
|
|
37
|
+
animate?: React.Validator<boolean | import("victory-core").AnimatePropTypeInterface | null | undefined> | undefined;
|
|
38
|
+
colorScale?: React.Validator<import("victory-core").ColorScalePropType | null | undefined> | undefined;
|
|
39
|
+
containerComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
40
|
+
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], StringOrNumberOrList>[] | null | undefined> | undefined;
|
|
41
|
+
groupComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
42
|
+
height?: React.Validator<number | null | undefined> | undefined;
|
|
43
|
+
maxDomain?: React.Validator<number | {
|
|
44
|
+
x?: number | undefined;
|
|
45
|
+
y?: number | undefined;
|
|
46
|
+
} | null | undefined> | undefined;
|
|
47
|
+
minDomain?: React.Validator<number | {
|
|
48
|
+
x?: number | undefined;
|
|
49
|
+
y?: number | undefined;
|
|
50
|
+
} | null | undefined> | undefined;
|
|
51
|
+
name?: React.Validator<string | null | undefined> | undefined;
|
|
52
|
+
origin?: React.Validator<import("victory-core").OriginType | null | undefined> | undefined;
|
|
53
|
+
padding?: React.Validator<import("victory-core").PaddingProps | null | undefined> | undefined;
|
|
54
|
+
polar?: React.Validator<boolean | null | undefined> | undefined;
|
|
55
|
+
range?: React.Validator<import("victory-core").ForAxes<import("victory-core").RangeTuple> | null | undefined> | undefined;
|
|
56
|
+
scale?: React.Validator<import("victory-core").D3Scale<any> | import("victory-core").ScaleName | {
|
|
57
|
+
x?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
|
|
58
|
+
y?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
|
|
59
|
+
} | null | undefined> | undefined;
|
|
60
|
+
sharedEvents?: React.Validator<{
|
|
61
|
+
events: any[];
|
|
62
|
+
getEventState: Function;
|
|
63
|
+
} | null | undefined> | undefined;
|
|
64
|
+
singleQuadrantDomainPadding?: React.Validator<boolean | {
|
|
65
|
+
x?: boolean | undefined;
|
|
66
|
+
y?: boolean | undefined;
|
|
67
|
+
} | null | undefined> | undefined;
|
|
68
|
+
standalone?: React.Validator<boolean | null | undefined> | undefined;
|
|
69
|
+
width?: React.Validator<number | null | undefined> | undefined;
|
|
70
|
+
};
|
|
71
|
+
static defaultProps: {
|
|
72
|
+
containerComponent: JSX.Element;
|
|
73
|
+
data: {
|
|
74
|
+
x: number;
|
|
75
|
+
y: number;
|
|
76
|
+
errorX: number;
|
|
77
|
+
errorY: number;
|
|
78
|
+
}[];
|
|
79
|
+
dataComponent: JSX.Element;
|
|
80
|
+
labelComponent: JSX.Element;
|
|
81
|
+
groupComponent: JSX.Element;
|
|
82
|
+
samples: number;
|
|
83
|
+
sortOrder: string;
|
|
84
|
+
standalone: boolean;
|
|
85
|
+
theme: import("victory-core").VictoryThemeDefinition;
|
|
86
|
+
};
|
|
87
|
+
static getDomain: (props: any, axis: any) => any;
|
|
88
|
+
static getData: (props: any) => any;
|
|
89
|
+
static getBaseProps: (props: any) => any;
|
|
90
|
+
static expectedComponents: string[];
|
|
91
|
+
shouldAnimate(): boolean;
|
|
92
|
+
render(): React.ReactElement;
|
|
93
|
+
}
|
|
94
|
+
export declare const VictoryErrorBar: {
|
|
95
|
+
new (props: import("victory-core").EventMixinCommonProps): {
|
|
96
|
+
state: {};
|
|
97
|
+
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
98
|
+
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
99
|
+
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
100
|
+
externalMutations: {} | undefined;
|
|
101
|
+
calculatedState: {};
|
|
102
|
+
globalEvents: {};
|
|
103
|
+
prevGlobalEventKeys: string[];
|
|
104
|
+
boundGlobalEvents: {};
|
|
105
|
+
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
106
|
+
componentDidMount(): void;
|
|
107
|
+
componentDidUpdate(prevProps: any): void;
|
|
108
|
+
componentWillUnmount(): void;
|
|
109
|
+
addGlobalListener(key: any): void;
|
|
110
|
+
removeGlobalListener(key: any): void;
|
|
111
|
+
getStateChanges(props: any): {};
|
|
112
|
+
applyExternalMutations(props: any, externalMutations: any): void;
|
|
113
|
+
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
114
|
+
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
115
|
+
cacheValues(obj: any): void;
|
|
116
|
+
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
117
|
+
getAllEvents(props: any): any;
|
|
118
|
+
getComponentProps(component: any, type: any, index: any): any;
|
|
119
|
+
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
120
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
121
|
+
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
122
|
+
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
123
|
+
context: unknown;
|
|
124
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
125
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
126
|
+
render(): React.ReactNode;
|
|
127
|
+
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
128
|
+
refs: {
|
|
129
|
+
[key: string]: React.ReactInstance;
|
|
130
|
+
};
|
|
131
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
132
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
133
|
+
componentWillMount?(): void;
|
|
134
|
+
UNSAFE_componentWillMount?(): void;
|
|
135
|
+
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
136
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
137
|
+
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
138
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
139
|
+
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
140
|
+
getSharedEventState: (key: string, value: string) => unknown;
|
|
141
|
+
baseProps: Record<string, object>;
|
|
142
|
+
dataKeys: string[];
|
|
143
|
+
hasEvents: unknown;
|
|
144
|
+
events: unknown;
|
|
145
|
+
};
|
|
146
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
147
|
+
role?: string | undefined;
|
|
148
|
+
expectedComponents?: string[] | undefined;
|
|
149
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
150
|
+
animationWhitelist?: string[] | undefined;
|
|
151
|
+
} & typeof VictoryErrorBarBase;
|
|
152
|
+
export {};
|
|
12
153
|
//# sourceMappingURL=victory-errorbar.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-errorbar",
|
|
3
|
-
"version": "36.6.
|
|
3
|
+
"version": "36.6.1",
|
|
4
4
|
"description": "Error Bar Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
24
|
"prop-types": "^15.8.1",
|
|
25
|
-
"victory-core": "^36.6.
|
|
25
|
+
"victory-core": "^36.6.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=16.6.0"
|
|
@@ -126,6 +126,14 @@
|
|
|
126
126
|
"pnpm-lock.yaml"
|
|
127
127
|
]
|
|
128
128
|
},
|
|
129
|
+
"check": {
|
|
130
|
+
"dependencies": [
|
|
131
|
+
"types:check",
|
|
132
|
+
"jest",
|
|
133
|
+
"format",
|
|
134
|
+
"lint"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
129
137
|
"types:check": {
|
|
130
138
|
"command": "nps types:pkg:check",
|
|
131
139
|
"files": [
|
|
@@ -178,6 +186,19 @@
|
|
|
178
186
|
"pnpm-lock.yaml"
|
|
179
187
|
]
|
|
180
188
|
},
|
|
189
|
+
"format:fix": {
|
|
190
|
+
"command": "pnpm run format || nps format:pkg:fix",
|
|
191
|
+
"files": [
|
|
192
|
+
"src/**",
|
|
193
|
+
"*.json",
|
|
194
|
+
"../../.prettierignore",
|
|
195
|
+
"../../.prettierrc.json"
|
|
196
|
+
],
|
|
197
|
+
"output": [],
|
|
198
|
+
"packageLocks": [
|
|
199
|
+
"pnpm-lock.yaml"
|
|
200
|
+
]
|
|
201
|
+
},
|
|
181
202
|
"lint": {
|
|
182
203
|
"command": "nps lint:pkg",
|
|
183
204
|
"files": [
|
|
@@ -195,19 +216,6 @@
|
|
|
195
216
|
"pnpm-lock.yaml"
|
|
196
217
|
]
|
|
197
218
|
},
|
|
198
|
-
"format:fix": {
|
|
199
|
-
"command": "pnpm run format || nps format:pkg:fix",
|
|
200
|
-
"files": [
|
|
201
|
-
"src/**",
|
|
202
|
-
"*.json",
|
|
203
|
-
"../../.prettierignore",
|
|
204
|
-
"../../.prettierrc.json"
|
|
205
|
-
],
|
|
206
|
-
"output": [],
|
|
207
|
-
"packageLocks": [
|
|
208
|
-
"pnpm-lock.yaml"
|
|
209
|
-
]
|
|
210
|
-
},
|
|
211
219
|
"lint:fix": {
|
|
212
220
|
"command": "pnpm run lint || nps lint:pkg:fix",
|
|
213
221
|
"files": [
|
|
@@ -254,6 +262,7 @@
|
|
|
254
262
|
"build:dist": "wireit",
|
|
255
263
|
"build:dist:dev": "wireit",
|
|
256
264
|
"build:dist:min": "wireit",
|
|
265
|
+
"check": "wireit",
|
|
257
266
|
"types:check": "wireit",
|
|
258
267
|
"types:create": "wireit",
|
|
259
268
|
"format": "wireit",
|
package/src/victory-errorbar.tsx
CHANGED
|
@@ -129,7 +129,7 @@ class VictoryErrorBarBase extends React.Component<VictoryErrorBarProps> {
|
|
|
129
129
|
return !!this.props.animate;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
render() {
|
|
132
|
+
render(): React.ReactElement {
|
|
133
133
|
const { animationWhitelist, role } = VictoryErrorBar;
|
|
134
134
|
const props = Helpers.modifyProps(this.props, fallbackProps, role);
|
|
135
135
|
|