victory-errorbar
Advanced tools
Comparing version 36.8.6 to 36.9.0
# victory-errorbar | ||
## 36.9.0 | ||
### Minor Changes | ||
- Remove prop-types definitions and dependency ([#2758](https://github.com/FormidableLabs/victory/pull/2758)) | ||
## 36.8.6 | ||
@@ -4,0 +10,0 @@ |
@@ -9,4 +9,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
import { Helpers, CommonProps, Line, UserProps } from "victory-core"; | ||
import { Helpers, Line, UserProps } from "victory-core"; | ||
@@ -123,12 +122,2 @@ var renderBorder = function (props, error, type) { | ||
}, userProps), children); | ||
}; | ||
ErrorBar.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, { | ||
borderWidth: PropTypes.number, | ||
datum: PropTypes.object, | ||
errorX: PropTypes.oneOfType([PropTypes.number, PropTypes.array, PropTypes.bool]), | ||
errorY: PropTypes.oneOfType([PropTypes.number, PropTypes.array, PropTypes.bool]), | ||
groupComponent: PropTypes.element, | ||
lineComponent: PropTypes.element, | ||
x: PropTypes.number, | ||
y: PropTypes.number | ||
}); | ||
}; |
@@ -1,2 +0,1 @@ | ||
import PropTypes from "prop-types"; | ||
import React from "react"; | ||
@@ -20,54 +19,2 @@ import { EventPropTypeInterface, StringOrNumberOrCallback, StringOrNumberOrList, VictoryDatableProps, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core"; | ||
static defaultTransitions: import("victory-core").AnimatePropTypeInterface; | ||
static propTypes: { | ||
borderWidth: PropTypes.Requireable<number>; | ||
errorX: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>; | ||
errorY: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>; | ||
horizontal: PropTypes.Requireable<boolean>; | ||
categories?: React.Validator<import("victory-core").CategoryPropType | null | undefined> | undefined; | ||
data?: React.Validator<readonly any[] | null | undefined> | undefined; | ||
dataComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined; | ||
domain?: React.Validator<import("victory-core").ForAxes<import("victory-core").DomainTuple> | null | undefined> | undefined; | ||
domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined; | ||
samples?: React.Validator<number | null | undefined> | undefined; | ||
sortKey?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined; | ||
sortOrder?: React.Validator<import("victory-core").SortOrderPropType | null | undefined> | undefined; | ||
x?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined; | ||
y?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined; | ||
y0?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined; | ||
theme?: React.Validator<import("victory-core").VictoryThemeDefinition | null | undefined> | undefined; | ||
animate?: React.Validator<boolean | import("victory-core").AnimatePropTypeInterface | null | undefined> | undefined; | ||
colorScale?: React.Validator<import("victory-core").ColorScalePropType | null | undefined> | undefined; | ||
containerComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined; | ||
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined; | ||
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], StringOrNumberOrList>[] | null | undefined> | undefined; | ||
groupComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined; | ||
height?: React.Validator<number | null | undefined> | undefined; | ||
maxDomain?: React.Validator<number | { | ||
x?: number | undefined; | ||
y?: number | undefined; | ||
} | null | undefined> | undefined; | ||
minDomain?: React.Validator<number | { | ||
x?: number | undefined; | ||
y?: number | undefined; | ||
} | null | undefined> | undefined; | ||
name?: React.Validator<string | null | undefined> | undefined; | ||
origin?: React.Validator<import("victory-core").OriginType | null | undefined> | undefined; | ||
padding?: React.Validator<import("victory-core").PaddingProps | null | undefined> | undefined; | ||
polar?: React.Validator<boolean | null | undefined> | undefined; | ||
range?: React.Validator<import("victory-core").ForAxes<import("victory-core").RangeTuple> | null | undefined> | undefined; | ||
scale?: React.Validator<import("victory-core").D3Scale<any> | import("victory-core").ScaleName | { | ||
x?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined; | ||
y?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined; | ||
} | null | undefined> | undefined; | ||
sharedEvents?: React.Validator<{ | ||
events: any[]; | ||
getEventState: Function; | ||
} | null | undefined> | undefined; | ||
singleQuadrantDomainPadding?: React.Validator<boolean | { | ||
x?: boolean | undefined; | ||
y?: boolean | undefined; | ||
} | null | undefined> | undefined; | ||
standalone?: React.Validator<boolean | null | undefined> | undefined; | ||
width?: React.Validator<number | null | undefined> | undefined; | ||
}; | ||
static defaultProps: VictoryErrorBarProps; | ||
@@ -74,0 +21,0 @@ static getDomain: (props: any, axis: any) => any; |
@@ -1,7 +0,1 @@ | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -27,5 +21,4 @@ | ||
import PropTypes from "prop-types"; | ||
import React from "react"; | ||
import { PropTypes as CustomPropTypes, Helpers, VictoryLabel, addEvents, VictoryContainer, VictoryTheme, DefaultTransitions, CommonProps, UserProps } from "victory-core"; | ||
import { Helpers, VictoryLabel, addEvents, VictoryContainer, VictoryTheme, DefaultTransitions, UserProps } from "victory-core"; | ||
import { ErrorBar } from "./error-bar"; | ||
@@ -101,8 +94,2 @@ import { getBaseProps, getDomain, getData } from "./helper-methods"; | ||
VictoryErrorBarBase.defaultTransitions = DefaultTransitions.discreteTransitions(); | ||
VictoryErrorBarBase.propTypes = _objectSpread(_objectSpread(_objectSpread({}, CommonProps.baseProps), CommonProps.dataProps), {}, { | ||
borderWidth: PropTypes.number, | ||
errorX: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string)]), | ||
errorY: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string)]), | ||
horizontal: PropTypes.bool | ||
}); | ||
VictoryErrorBarBase.defaultProps = { | ||
@@ -109,0 +96,0 @@ containerComponent: /*#__PURE__*/React.createElement(VictoryContainer, null), |
@@ -10,4 +10,2 @@ "use strict"; | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _victoryCore = require("victory-core"); | ||
@@ -142,12 +140,2 @@ | ||
exports.ErrorBar = ErrorBar; | ||
ErrorBar.propTypes = _objectSpread(_objectSpread({}, _victoryCore.CommonProps.primitiveProps), {}, { | ||
borderWidth: _propTypes.default.number, | ||
datum: _propTypes.default.object, | ||
errorX: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.array, _propTypes.default.bool]), | ||
errorY: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.array, _propTypes.default.bool]), | ||
groupComponent: _propTypes.default.element, | ||
lineComponent: _propTypes.default.element, | ||
x: _propTypes.default.number, | ||
y: _propTypes.default.number | ||
}); | ||
exports.ErrorBar = ErrorBar; |
@@ -1,2 +0,1 @@ | ||
import PropTypes from "prop-types"; | ||
import React from "react"; | ||
@@ -20,54 +19,2 @@ import { EventPropTypeInterface, StringOrNumberOrCallback, StringOrNumberOrList, VictoryDatableProps, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core"; | ||
static defaultTransitions: import("victory-core").AnimatePropTypeInterface; | ||
static propTypes: { | ||
borderWidth: PropTypes.Requireable<number>; | ||
errorX: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>; | ||
errorY: PropTypes.Requireable<string | number | ((...args: any[]) => any) | (string | null | undefined)[]>; | ||
horizontal: PropTypes.Requireable<boolean>; | ||
categories?: React.Validator<import("victory-core").CategoryPropType | null | undefined> | undefined; | ||
data?: React.Validator<readonly any[] | null | undefined> | undefined; | ||
dataComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined; | ||
domain?: React.Validator<import("victory-core").ForAxes<import("victory-core").DomainTuple> | null | undefined> | undefined; | ||
domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined; | ||
samples?: React.Validator<number | null | undefined> | undefined; | ||
sortKey?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined; | ||
sortOrder?: React.Validator<import("victory-core").SortOrderPropType | null | undefined> | undefined; | ||
x?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined; | ||
y?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined; | ||
y0?: React.Validator<import("victory-core").DataGetterPropType | null | undefined> | undefined; | ||
theme?: React.Validator<import("victory-core").VictoryThemeDefinition | null | undefined> | undefined; | ||
animate?: React.Validator<boolean | import("victory-core").AnimatePropTypeInterface | null | undefined> | undefined; | ||
colorScale?: React.Validator<import("victory-core").ColorScalePropType | null | undefined> | undefined; | ||
containerComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined; | ||
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined; | ||
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], StringOrNumberOrList>[] | null | undefined> | undefined; | ||
groupComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined; | ||
height?: React.Validator<number | null | undefined> | undefined; | ||
maxDomain?: React.Validator<number | { | ||
x?: number | undefined; | ||
y?: number | undefined; | ||
} | null | undefined> | undefined; | ||
minDomain?: React.Validator<number | { | ||
x?: number | undefined; | ||
y?: number | undefined; | ||
} | null | undefined> | undefined; | ||
name?: React.Validator<string | null | undefined> | undefined; | ||
origin?: React.Validator<import("victory-core").OriginType | null | undefined> | undefined; | ||
padding?: React.Validator<import("victory-core").PaddingProps | null | undefined> | undefined; | ||
polar?: React.Validator<boolean | null | undefined> | undefined; | ||
range?: React.Validator<import("victory-core").ForAxes<import("victory-core").RangeTuple> | null | undefined> | undefined; | ||
scale?: React.Validator<import("victory-core").D3Scale<any> | import("victory-core").ScaleName | { | ||
x?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined; | ||
y?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined; | ||
} | null | undefined> | undefined; | ||
sharedEvents?: React.Validator<{ | ||
events: any[]; | ||
getEventState: Function; | ||
} | null | undefined> | undefined; | ||
singleQuadrantDomainPadding?: React.Validator<boolean | { | ||
x?: boolean | undefined; | ||
y?: boolean | undefined; | ||
} | null | undefined> | undefined; | ||
standalone?: React.Validator<boolean | null | undefined> | undefined; | ||
width?: React.Validator<number | null | undefined> | undefined; | ||
}; | ||
static defaultProps: VictoryErrorBarProps; | ||
@@ -74,0 +21,0 @@ static getDomain: (props: any, axis: any) => any; |
@@ -8,4 +8,2 @@ "use strict"; | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _react = _interopRequireDefault(require("react")); | ||
@@ -21,8 +19,2 @@ | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -117,8 +109,2 @@ | ||
VictoryErrorBarBase.defaultTransitions = _victoryCore.DefaultTransitions.discreteTransitions(); | ||
VictoryErrorBarBase.propTypes = _objectSpread(_objectSpread(_objectSpread({}, _victoryCore.CommonProps.baseProps), _victoryCore.CommonProps.dataProps), {}, { | ||
borderWidth: _propTypes.default.number, | ||
errorX: _propTypes.default.oneOfType([_propTypes.default.func, _victoryCore.PropTypes.allOfType([_victoryCore.PropTypes.integer, _victoryCore.PropTypes.nonNegative]), _propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string)]), | ||
errorY: _propTypes.default.oneOfType([_propTypes.default.func, _victoryCore.PropTypes.allOfType([_victoryCore.PropTypes.integer, _victoryCore.PropTypes.nonNegative]), _propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string)]), | ||
horizontal: _propTypes.default.bool | ||
}); | ||
VictoryErrorBarBase.defaultProps = { | ||
@@ -125,0 +111,0 @@ containerComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.VictoryContainer, null), |
{ | ||
"name": "victory-errorbar", | ||
"version": "36.8.6", | ||
"version": "36.9.0", | ||
"description": "Error Bar Component for Victory", | ||
@@ -24,4 +24,3 @@ "keywords": [ | ||
"lodash": "^4.17.19", | ||
"prop-types": "^15.8.1", | ||
"victory-core": "^36.8.6" | ||
"victory-core": "^36.9.0" | ||
}, | ||
@@ -28,0 +27,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3
1108572
18601
- Removedprop-types@^15.8.1
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact-is@16.13.1(transitive)
Updatedvictory-core@^36.9.0