victory-box-plot 36.2.1 → 36.3.2

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.
@@ -27,7 +27,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
27
27
 
28
28
  import React from "react";
29
29
  import PropTypes from "prop-types";
30
- import { Helpers, VictoryLabel, addEvents, LineSegment, PropTypes as CustomPropTypes, VictoryContainer, VictoryTheme, Box, Whisker, DefaultTransitions, CommonProps } from "victory-core";
30
+ import { Helpers, VictoryLabel, addEvents, LineSegment, PropTypes as CustomPropTypes, VictoryContainer, VictoryTheme, Box, Whisker, DefaultTransitions, CommonProps, UserProps } from "victory-core";
31
31
  import { getDomain, getData, getBaseProps } from "./helper-methods";
32
32
  var fallbackProps = {
33
33
  width: 450,
@@ -160,7 +160,8 @@ function (_React$Component) {
160
160
  }
161
161
 
162
162
  var children = this.renderBoxPlot(props);
163
- return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
163
+ var container = React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props));
164
+ return props.standalone ? this.renderContainer(container, children) : children;
164
165
  }
165
166
  }]);
166
167
 
@@ -173,7 +173,10 @@ function (_React$Component) {
173
173
  }
174
174
 
175
175
  var children = this.renderBoxPlot(props);
176
- return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
176
+
177
+ var container = _react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props));
178
+
179
+ return props.standalone ? this.renderContainer(container, children) : children;
177
180
  }
178
181
  }]);
179
182
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-box-plot",
3
- "version": "36.2.1",
3
+ "version": "36.3.2",
4
4
  "description": "Box Plot Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -22,7 +22,7 @@
22
22
  "d3-array": "^1.2.0",
23
23
  "lodash": "^4.17.19",
24
24
  "prop-types": "^15.5.8",
25
- "victory-core": "^36.2.1"
25
+ "victory-core": "^36.3.2"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "^16.6.0 || ^17.0.0"
@@ -30,5 +30,6 @@
30
30
  "scripts": {
31
31
  "version": "yarn run nps build-libs && nps build-dists"
32
32
  },
33
- "sideEffects": false
33
+ "sideEffects": false,
34
+ "gitHead": "18895d1290245732d14332bbbda10336032c9aab"
34
35
  }
@@ -12,7 +12,8 @@ import {
12
12
  Box,
13
13
  Whisker,
14
14
  DefaultTransitions,
15
- CommonProps
15
+ CommonProps,
16
+ UserProps
16
17
  } from "victory-core";
17
18
  import { getDomain, getData, getBaseProps } from "./helper-methods";
18
19
 
@@ -308,8 +309,12 @@ class VictoryBoxPlot extends React.Component {
308
309
  }
309
310
 
310
311
  const children = this.renderBoxPlot(props);
312
+ const container = React.cloneElement(
313
+ props.containerComponent,
314
+ UserProps.getSafeUserProps(props)
315
+ );
311
316
  return props.standalone
312
- ? this.renderContainer(props.containerComponent, children)
317
+ ? this.renderContainer(container, children)
313
318
  : children;
314
319
  }
315
320
  }