victory-histogram 36.4.0 → 36.4.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.
@@ -64,8 +64,8 @@ export var VictoryHistogram = /*#__PURE__*/function (_React$Component) {
64
64
  }
65
65
 
66
66
  var children = this.renderData(props);
67
- var container = /*#__PURE__*/React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(this.props));
68
- return props.standalone ? this.renderContainer(container, children) : children;
67
+ var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
68
+ return UserProps.withSafeUserProps(component, props);
69
69
  }
70
70
  }]);
71
71
 
@@ -80,10 +80,8 @@ var VictoryHistogram = /*#__PURE__*/function (_React$Component) {
80
80
  }
81
81
 
82
82
  var children = this.renderData(props);
83
-
84
- var container = /*#__PURE__*/_react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(this.props));
85
-
86
- return props.standalone ? this.renderContainer(container, children) : children;
83
+ var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
84
+ return _victoryCore.UserProps.withSafeUserProps(component, props);
87
85
  }
88
86
  }]);
89
87
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-histogram",
3
- "version": "36.4.0",
3
+ "version": "36.4.1",
4
4
  "description": "Histogram Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -20,10 +20,10 @@
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
22
  "lodash": "^4.17.19",
23
- "prop-types": "^15.5.8",
24
- "react-fast-compare": "^2.0.0",
25
- "victory-bar": "^36.4.0",
26
- "victory-core": "^36.4.0",
23
+ "prop-types": "^15.8.1",
24
+ "react-fast-compare": "^3.2.0",
25
+ "victory-bar": "^36.4.1",
26
+ "victory-core": "^36.4.1",
27
27
  "victory-vendor": "^36.4.0"
28
28
  },
29
29
  "peerDependencies": {
@@ -33,5 +33,5 @@
33
33
  "version": "yarn run nps build-libs && nps build-dists"
34
34
  },
35
35
  "sideEffects": false,
36
- "gitHead": "2e05481eeb34f9801a90023a131a21aa7deff082"
36
+ "gitHead": "aa44a22e5a93989773a560f765f83ac151f44c46"
37
37
  }
@@ -122,14 +122,11 @@ export class VictoryHistogram extends React.Component {
122
122
 
123
123
  const children = this.renderData(props);
124
124
 
125
- const container = React.cloneElement(
126
- props.containerComponent,
127
- UserProps.getSafeUserProps(this.props)
128
- );
129
-
130
- return props.standalone
131
- ? this.renderContainer(container, children)
125
+ const component = props.standalone
126
+ ? this.renderContainer(props.containerComponent, children)
132
127
  : children;
128
+
129
+ return UserProps.withSafeUserProps(component, props);
133
130
  }
134
131
  }
135
132