victory-box-plot 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.
@@ -173,8 +173,8 @@ var VictoryBoxPlot = /*#__PURE__*/function (_React$Component) {
173
173
  }
174
174
 
175
175
  var children = this.renderBoxPlot(props);
176
- var container = /*#__PURE__*/React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props));
177
- return props.standalone ? this.renderContainer(container, children) : children;
176
+ var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
177
+ return UserProps.withSafeUserProps(component, props);
178
178
  }
179
179
  }]);
180
180
 
@@ -185,10 +185,8 @@ var VictoryBoxPlot = /*#__PURE__*/function (_React$Component) {
185
185
  }
186
186
 
187
187
  var children = this.renderBoxPlot(props);
188
-
189
- var container = /*#__PURE__*/_react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props));
190
-
191
- return props.standalone ? this.renderContainer(container, children) : children;
188
+ var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
189
+ return _victoryCore.UserProps.withSafeUserProps(component, props);
192
190
  }
193
191
  }]);
194
192
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-box-plot",
3
- "version": "36.4.0",
3
+ "version": "36.4.1",
4
4
  "description": "Box Plot Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -20,8 +20,8 @@
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
22
  "lodash": "^4.17.19",
23
- "prop-types": "^15.5.8",
24
- "victory-core": "^36.4.0",
23
+ "prop-types": "^15.8.1",
24
+ "victory-core": "^36.4.1",
25
25
  "victory-vendor": "^36.4.0"
26
26
  },
27
27
  "peerDependencies": {
@@ -31,5 +31,5 @@
31
31
  "version": "yarn run nps build-libs && nps build-dists"
32
32
  },
33
33
  "sideEffects": false,
34
- "gitHead": "2e05481eeb34f9801a90023a131a21aa7deff082"
34
+ "gitHead": "aa44a22e5a93989773a560f765f83ac151f44c46"
35
35
  }
@@ -309,13 +309,11 @@ class VictoryBoxPlot extends React.Component {
309
309
  }
310
310
 
311
311
  const children = this.renderBoxPlot(props);
312
- const container = React.cloneElement(
313
- props.containerComponent,
314
- UserProps.getSafeUserProps(props)
315
- );
316
- return props.standalone
317
- ? this.renderContainer(container, children)
312
+ const component = props.standalone
313
+ ? this.renderContainer(props.containerComponent, children)
318
314
  : children;
315
+
316
+ return UserProps.withSafeUserProps(component, props);
319
317
  }
320
318
  }
321
319