victory-pie
Advanced tools
Comparing version 36.3.0 to 36.3.2
@@ -16,3 +16,3 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
import PropTypes from "prop-types"; | ||
import { addEvents, Helpers, Data, PropTypes as CustomPropTypes, VictoryContainer, VictoryLabel, VictoryTheme } from "victory-core"; | ||
import { addEvents, Helpers, Data, PropTypes as CustomPropTypes, VictoryContainer, VictoryLabel, VictoryTheme, UserProps } from "victory-core"; | ||
import Slice from "./slice"; | ||
@@ -62,3 +62,4 @@ import { getBaseProps } from "./helper-methods"; | ||
var children = this.renderData(props); | ||
return props.standalone ? this.renderContainer(props.containerComponent, children) : children; | ||
var container = React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props)); | ||
return props.standalone ? this.renderContainer(container, children) : children; | ||
} | ||
@@ -65,0 +66,0 @@ }]); |
@@ -75,3 +75,6 @@ "use strict"; | ||
var children = this.renderData(props); | ||
return props.standalone ? this.renderContainer(props.containerComponent, children) : children; | ||
var container = _react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props)); | ||
return props.standalone ? this.renderContainer(container, children) : children; | ||
} | ||
@@ -78,0 +81,0 @@ }]); |
{ | ||
"name": "victory-pie", | ||
"version": "36.3.0", | ||
"version": "36.3.2", | ||
"description": "Pie Component for Victory", | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^36.3.0" | ||
"victory-core": "^36.3.2" | ||
}, | ||
@@ -35,3 +35,3 @@ "peerDependencies": { | ||
"sideEffects": false, | ||
"gitHead": "ebafd849d2ded3f1d2aabf0d6e64dcbd48e4c9d6" | ||
"gitHead": "18895d1290245732d14332bbbda10336032c9aab" | ||
} |
@@ -11,3 +11,4 @@ /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/ | ||
VictoryLabel, | ||
VictoryTheme | ||
VictoryTheme, | ||
UserProps | ||
} from "victory-core"; | ||
@@ -259,4 +260,8 @@ import Slice from "./slice"; | ||
const children = this.renderData(props); | ||
const container = React.cloneElement( | ||
props.containerComponent, | ||
UserProps.getSafeUserProps(props) | ||
); | ||
return props.standalone | ||
? this.renderContainer(props.containerComponent, children) | ||
? this.renderContainer(container, children) | ||
: children; | ||
@@ -263,0 +268,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1107507
20421
Updatedvictory-core@^36.3.2