victory-errorbar 36.6.0 → 36.6.3

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 CHANGED
@@ -1,5 +1,32 @@
1
1
  # victory-errorbar
2
2
 
3
+ ## 36.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Do not generate \*.js.map sourcemaps (fixes [#2346](https://github.com/FormidableLabs/victory/issues/2346)) ([#2432](https://github.com/FormidableLabs/victory/pull/2432))
8
+
9
+ - Updated dependencies [[`4bfc65df5`](https://github.com/FormidableLabs/victory/commit/4bfc65df5a10aa6a10084882ed5c6d0d894dec6f)]:
10
+ - victory-core@36.6.3
11
+
12
+ ## 36.6.2
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies []:
17
+ - victory-core@36.6.2
18
+
19
+ ## 36.6.1
20
+
21
+ ### Patch Changes
22
+
23
+ - - 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))
24
+ - Improved type for `VictoryLabelProps["textAnchor"]` (fixes [#2361](https://github.com/FormidableLabs/victory/issues/2361))
25
+ - Fixed exported types for `VictoryAxis`, `VictoryBoxPlot`, `VictoryErrorBar`, and `VictoryScatter` (fixes [#2411](https://github.com/FormidableLabs/victory/issues/2411))
26
+ - Migrate `victory-cursor-container` to TS (fixes [#2402](https://github.com/FormidableLabs/victory/issues/2402))
27
+ - Updated dependencies [[`d1f281104`](https://github.com/FormidableLabs/victory/commit/d1f281104c7598c43e220dafd57546ab03daeeb5)]:
28
+ - victory-core@36.6.1
29
+
3
30
  ## 36.6.0
4
31
 
5
32
  ### Minor Changes
@@ -7331,7 +7331,6 @@ var victoryInterpolator = function (a, b) {
7331
7331
 
7332
7332
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__.interpolate)(a, b);
7333
7333
  };
7334
- //# sourceMappingURL=util.js.map
7335
7334
 
7336
7335
  /***/ }),
7337
7336
 
@@ -7594,7 +7593,6 @@ VictoryAnimation.defaultProps = {
7594
7593
  easing: "quadInOut"
7595
7594
  };
7596
7595
  VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
7597
- //# sourceMappingURL=victory-animation.js.map
7598
7596
 
7599
7597
  /***/ }),
7600
7598
 
@@ -7908,7 +7906,6 @@ VictoryContainer.defaultProps = {
7908
7906
  role: "img"
7909
7907
  };
7910
7908
  VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
7911
- //# sourceMappingURL=victory-container.js.map
7912
7909
 
7913
7910
  /***/ }),
7914
7911
 
@@ -8550,7 +8547,6 @@ VictoryLabel.defaultProps = {
8550
8547
  // Magic number from d3.
8551
8548
  lineHeight: 1
8552
8549
  };
8553
- //# sourceMappingURL=victory-label.js.map
8554
8550
 
8555
8551
  /***/ }),
8556
8552
 
@@ -8575,7 +8571,6 @@ __webpack_require__.r(__webpack_exports__);
8575
8571
  */
8576
8572
  var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
8577
8573
  PortalContext.displayName = "PortalContext";
8578
- //# sourceMappingURL=portal-context.js.map
8579
8574
 
8580
8575
  /***/ }),
8581
8576
 
@@ -8687,7 +8682,6 @@ Portal.propTypes = {
8687
8682
  viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
8688
8683
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
8689
8684
  };
8690
- //# sourceMappingURL=portal.js.map
8691
8685
 
8692
8686
  /***/ }),
8693
8687
 
@@ -8831,7 +8825,6 @@ VictoryPortal.defaultProps = {
8831
8825
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
8832
8826
  };
8833
8827
  VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
8834
- //# sourceMappingURL=victory-portal.js.map
8835
8828
 
8836
8829
  /***/ }),
8837
8830
 
@@ -8874,7 +8867,6 @@ var Line = function (props) {
8874
8867
  vectorEffect: "non-scaling-stroke"
8875
8868
  }, rest));
8876
8869
  };
8877
- //# sourceMappingURL=line.js.map
8878
8870
 
8879
8871
  /***/ }),
8880
8872
 
@@ -8917,7 +8909,6 @@ var Rect = function (props) {
8917
8909
  vectorEffect: "non-scaling-stroke"
8918
8910
  }, rest));
8919
8911
  };
8920
- //# sourceMappingURL=rect.js.map
8921
8912
 
8922
8913
  /***/ }),
8923
8914
 
@@ -8961,7 +8952,6 @@ Text.propTypes = {
8961
8952
  desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
8962
8953
  title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
8963
8954
  };
8964
- //# sourceMappingURL=text.js.map
8965
8955
 
8966
8956
  /***/ }),
8967
8957
 
@@ -8986,7 +8976,6 @@ var TSpan = function (props) {
8986
8976
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
8987
8977
  );
8988
8978
  };
8989
- //# sourceMappingURL=tspan.js.map
8990
8979
 
8991
8980
  /***/ }),
8992
8981
 
@@ -9262,7 +9251,6 @@ var grayscale = {
9262
9251
  }
9263
9252
  }, baseProps)
9264
9253
  };
9265
- //# sourceMappingURL=grayscale.js.map
9266
9254
 
9267
9255
  /***/ }),
9268
9256
 
@@ -9565,7 +9553,6 @@ var material = {
9565
9553
  }
9566
9554
  }, baseProps)
9567
9555
  };
9568
- //# sourceMappingURL=material.js.map
9569
9556
 
9570
9557
  /***/ }),
9571
9558
 
@@ -9589,7 +9576,6 @@ var VictoryTheme = {
9589
9576
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
9590
9577
  material: _material__WEBPACK_IMPORTED_MODULE_1__.material
9591
9578
  };
9592
- //# sourceMappingURL=victory-theme.js.map
9593
9579
 
9594
9580
  /***/ }),
9595
9581
 
@@ -9858,7 +9844,6 @@ VictoryTransition.propTypes = {
9858
9844
  children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
9859
9845
  };
9860
9846
  VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
9861
- //# sourceMappingURL=victory-transition.js.map
9862
9847
 
9863
9848
  /***/ }),
9864
9849
 
@@ -10324,7 +10309,6 @@ function addEvents(WrappedComponent) {
10324
10309
 
10325
10310
  return AddEventsMixin;
10326
10311
  }
10327
- //# sourceMappingURL=add-events.js.map
10328
10312
 
10329
10313
  /***/ }),
10330
10314
 
@@ -10408,7 +10392,6 @@ function getMinValue(arr) {
10408
10392
  return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
10409
10393
  : Math.min.apply(Math, _toConsumableArray(array));
10410
10394
  }
10411
- //# sourceMappingURL=collection.js.map
10412
10395
 
10413
10396
  /***/ }),
10414
10397
 
@@ -10558,7 +10541,6 @@ var CommonProps = {
10558
10541
  baseProps: baseProps,
10559
10542
  primitiveProps: primitiveProps
10560
10543
  };
10561
- //# sourceMappingURL=common-props.js.map
10562
10544
 
10563
10545
  /***/ }),
10564
10546
 
@@ -11072,7 +11054,6 @@ function isDataComponent(component) {
11072
11054
  var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
11073
11055
  return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
11074
11056
  }
11075
- //# sourceMappingURL=data.js.map
11076
11057
 
11077
11058
  /***/ }),
11078
11059
 
@@ -11195,7 +11176,6 @@ function discreteTransitions() {
11195
11176
  }
11196
11177
  };
11197
11178
  }
11198
- //# sourceMappingURL=default-transitions.js.map
11199
11179
 
11200
11180
  /***/ }),
11201
11181
 
@@ -11651,7 +11631,6 @@ function isDomainComponent(component) {
11651
11631
  var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
11652
11632
  return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
11653
11633
  }
11654
- //# sourceMappingURL=domain.js.map
11655
11634
 
11656
11635
  /***/ }),
11657
11636
 
@@ -12157,7 +12136,6 @@ var emulateReactEvent = function (event) {
12157
12136
  nativeEvent: event
12158
12137
  });
12159
12138
  };
12160
- //# sourceMappingURL=events.js.map
12161
12139
 
12162
12140
  /***/ }),
12163
12141
 
@@ -12554,7 +12532,6 @@ function isHorizontal(props) {
12554
12532
 
12555
12533
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
12556
12534
  }
12557
- //# sourceMappingURL=helpers.js.map
12558
12535
 
12559
12536
  /***/ }),
12560
12537
 
@@ -12607,7 +12584,6 @@ function shallowToJS(x, whitelist) {
12607
12584
  return result;
12608
12585
  }, isList(x) ? [] : {}) : x;
12609
12586
  }
12610
- //# sourceMappingURL=immutable.js.map
12611
12587
 
12612
12588
  /***/ }),
12613
12589
 
@@ -12865,7 +12841,6 @@ function getProps(props, index) {
12865
12841
  var tooltipTheme = theme && theme.tooltip || {};
12866
12842
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
12867
12843
  }
12868
- //# sourceMappingURL=label-helpers.js.map
12869
12844
 
12870
12845
  /***/ }),
12871
12846
 
@@ -12891,7 +12866,6 @@ function warn(message) {
12891
12866
  }
12892
12867
  }
12893
12868
  }
12894
- //# sourceMappingURL=log.js.map
12895
12869
 
12896
12870
  /***/ }),
12897
12871
 
@@ -13164,7 +13138,6 @@ var regExp = makeChainable(function (props, propName, componentName) {
13164
13138
 
13165
13139
  return null;
13166
13140
  });
13167
- //# sourceMappingURL=prop-types.js.map
13168
13141
 
13169
13142
  /***/ }),
13170
13143
 
@@ -13336,7 +13309,6 @@ function getType(scale) {
13336
13309
  })[0];
13337
13310
  return scaleType ? scaleType.name : undefined;
13338
13311
  }
13339
- //# sourceMappingURL=scale.js.map
13340
13312
 
13341
13313
  /***/ }),
13342
13314
 
@@ -13408,7 +13380,6 @@ function getColorScale(name) {
13408
13380
  };
13409
13381
  return name ? scales[name] : scales.grayscale;
13410
13382
  }
13411
- //# sourceMappingURL=style.js.map
13412
13383
 
13413
13384
  /***/ }),
13414
13385
 
@@ -13716,7 +13687,6 @@ var _approximateTextSizeInternal = {
13716
13687
  var approximateTextSize = function (text, style) {
13717
13688
  return _approximateTextSizeInternal.impl(text, style);
13718
13689
  };
13719
- //# sourceMappingURL=textsize.js.map
13720
13690
 
13721
13691
  /***/ }),
13722
13692
 
@@ -13747,7 +13717,6 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
13747
13717
  });
13748
13718
  TimerContext.displayName = "TimerContext";
13749
13719
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
13750
- //# sourceMappingURL=timer-context.js.map
13751
13720
 
13752
13721
  /***/ }),
13753
13722
 
@@ -13850,7 +13819,6 @@ var Timer = /*#__PURE__*/function () {
13850
13819
  }();
13851
13820
 
13852
13821
 
13853
- //# sourceMappingURL=timer.js.map
13854
13822
 
13855
13823
  /***/ }),
13856
13824
 
@@ -14285,7 +14253,6 @@ function getTransitionPropsFactory(props, state, setState) {
14285
14253
  };
14286
14254
  };
14287
14255
  }
14288
- //# sourceMappingURL=transitions.js.map
14289
14256
 
14290
14257
  /***/ }),
14291
14258
 
@@ -14332,7 +14299,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
14332
14299
  var USER_PROPS_SAFELIST = {
14333
14300
  startsWith: ["data-", "aria-"],
14334
14301
  exactMatch: []
14335
- };
14302
+ }; // Normally we'd use Template Literal Types, but we're avoiding it to maximize TS compatibility with TS < 4.1
14303
+
14304
+ // `data-${string}` | `aria-${string}`;
14336
14305
 
14337
14306
  /**
14338
14307
  * doesPropStartWith: Function that takes a prop's key and runs it against all
@@ -14426,7 +14395,6 @@ var getSafeUserProps = function (props) {
14426
14395
  var withSafeUserProps = function (component, props) {
14427
14396
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
14428
14397
  };
14429
- //# sourceMappingURL=user-props.js.map
14430
14398
 
14431
14399
  /***/ }),
14432
14400
 
package/es/error-bar.js CHANGED
@@ -133,5 +133,4 @@ ErrorBar.defaultProps = {
133
133
  lineComponent: /*#__PURE__*/React.createElement(Line, null),
134
134
  role: "presentation",
135
135
  shapeRendering: "auto"
136
- };
137
- //# sourceMappingURL=error-bar.js.map
136
+ };
@@ -234,5 +234,4 @@ export var getBaseProps = function (props, fallbackProps) {
234
234
 
235
235
  return childProps;
236
236
  }, initialChildProps);
237
- };
238
- //# sourceMappingURL=helper-methods.js.map
237
+ };
package/es/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from "./victory-errorbar";
2
- export * from "./error-bar";
3
- //# sourceMappingURL=index.js.map
2
+ export * from "./error-bar";
@@ -1,4 +1,6 @@
1
- import { EventPropTypeInterface, StringOrNumberOrCallback, StringOrNumberOrList, VictoryDatableProps, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface } from "victory-core";
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
- export declare const VictoryErrorBar: any;
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
@@ -124,5 +124,4 @@ VictoryErrorBarBase.getBaseProps = function (props) {
124
124
  };
125
125
 
126
126
  VictoryErrorBarBase.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
127
- export var VictoryErrorBar = addEvents(VictoryErrorBarBase);
128
- //# sourceMappingURL=victory-errorbar.js.map
127
+ export var VictoryErrorBar = addEvents(VictoryErrorBarBase);
package/lib/error-bar.js CHANGED
@@ -151,5 +151,4 @@ ErrorBar.defaultProps = {
151
151
  lineComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.Line, null),
152
152
  role: "presentation",
153
153
  shapeRendering: "auto"
154
- };
155
- //# sourceMappingURL=error-bar.js.map
154
+ };
@@ -262,5 +262,4 @@ var getBaseProps = function (props, fallbackProps) {
262
262
  }, initialChildProps);
263
263
  };
264
264
 
265
- exports.getBaseProps = getBaseProps;
266
- //# sourceMappingURL=helper-methods.js.map
265
+ exports.getBaseProps = getBaseProps;
package/lib/index.js CHANGED
@@ -28,5 +28,4 @@ Object.keys(_errorBar).forEach(function (key) {
28
28
  return _errorBar[key];
29
29
  }
30
30
  });
31
- });
32
- //# sourceMappingURL=index.js.map
31
+ });
@@ -1,4 +1,6 @@
1
- import { EventPropTypeInterface, StringOrNumberOrCallback, StringOrNumberOrList, VictoryDatableProps, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface } from "victory-core";
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
- export declare const VictoryErrorBar: any;
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
@@ -140,5 +140,4 @@ VictoryErrorBarBase.getBaseProps = function (props) {
140
140
 
141
141
  VictoryErrorBarBase.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
142
142
  var VictoryErrorBar = (0, _victoryCore.addEvents)(VictoryErrorBarBase);
143
- exports.VictoryErrorBar = VictoryErrorBar;
144
- //# sourceMappingURL=victory-errorbar.js.map
143
+ exports.VictoryErrorBar = VictoryErrorBar;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-errorbar",
3
- "version": "36.6.0",
3
+ "version": "36.6.3",
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.0"
25
+ "victory-core": "^36.6.3"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": ">=16.6.0"
@@ -51,7 +51,9 @@
51
51
  "files": [
52
52
  "src/**",
53
53
  "!src/**/*.test.*",
54
- "../../.babelrc.build.js"
54
+ "../../.babelrc.build.js",
55
+ "../../.babelrc.js",
56
+ "../../package-scripts.js"
55
57
  ],
56
58
  "output": [
57
59
  "es/**/*.js",
@@ -69,7 +71,9 @@
69
71
  "files": [
70
72
  "src/**",
71
73
  "!src/**/*.test.*",
72
- "../../.babelrc.build.js"
74
+ "../../.babelrc.build.js",
75
+ "../../.babelrc.js",
76
+ "../../package-scripts.js"
73
77
  ],
74
78
  "output": [
75
79
  "lib/**/*.js",
@@ -94,6 +98,8 @@
94
98
  "src/**",
95
99
  "!src/**/*.test.*",
96
100
  "../../.babelrc.build.js",
101
+ "../../.babelrc.js",
102
+ "../../package-scripts.js",
97
103
  "../../config/webpack.config.js",
98
104
  "../../config/webpack.config.dev.js"
99
105
  ],
@@ -114,6 +120,8 @@
114
120
  "src/**",
115
121
  "!src/**/*.test.*",
116
122
  "../../.babelrc.build.js",
123
+ "../../.babelrc.js",
124
+ "../../package-scripts.js",
117
125
  "../../config/webpack.config.js"
118
126
  ],
119
127
  "output": [
@@ -126,6 +134,14 @@
126
134
  "pnpm-lock.yaml"
127
135
  ]
128
136
  },
137
+ "check": {
138
+ "dependencies": [
139
+ "types:check",
140
+ "jest",
141
+ "format",
142
+ "lint"
143
+ ]
144
+ },
129
145
  "types:check": {
130
146
  "command": "nps types:pkg:check",
131
147
  "files": [
@@ -178,6 +194,19 @@
178
194
  "pnpm-lock.yaml"
179
195
  ]
180
196
  },
197
+ "format:fix": {
198
+ "command": "pnpm run format || nps format:pkg:fix",
199
+ "files": [
200
+ "src/**",
201
+ "*.json",
202
+ "../../.prettierignore",
203
+ "../../.prettierrc.json"
204
+ ],
205
+ "output": [],
206
+ "packageLocks": [
207
+ "pnpm-lock.yaml"
208
+ ]
209
+ },
181
210
  "lint": {
182
211
  "command": "nps lint:pkg",
183
212
  "files": [
@@ -195,19 +224,6 @@
195
224
  "pnpm-lock.yaml"
196
225
  ]
197
226
  },
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
227
  "lint:fix": {
212
228
  "command": "pnpm run lint || nps lint:pkg:fix",
213
229
  "files": [
@@ -254,6 +270,7 @@
254
270
  "build:dist": "wireit",
255
271
  "build:dist:dev": "wireit",
256
272
  "build:dist:min": "wireit",
273
+ "check": "wireit",
257
274
  "types:check": "wireit",
258
275
  "types:create": "wireit",
259
276
  "format": "wireit",
@@ -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