victory-pie 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.
package/es/victory-pie.js CHANGED
@@ -13,7 +13,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
13
13
  /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/
14
14
  import React from "react";
15
15
  import PropTypes from "prop-types";
16
- import { addEvents, Helpers, Data, PropTypes as CustomPropTypes, VictoryContainer, VictoryLabel, VictoryTheme } from "victory-core";
16
+ import { addEvents, Helpers, Data, PropTypes as CustomPropTypes, VictoryContainer, VictoryLabel, VictoryTheme, UserProps } from "victory-core";
17
17
  import Slice from "./slice";
18
18
  import { getBaseProps } from "./helper-methods";
19
19
  var fallbackProps = {
@@ -58,7 +58,8 @@ function (_React$Component) {
58
58
  }
59
59
 
60
60
  var children = this.renderData(props);
61
- return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
61
+ var container = React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props));
62
+ return props.standalone ? this.renderContainer(container, children) : children;
62
63
  }
63
64
  }]);
64
65
 
@@ -72,7 +72,10 @@ function (_React$Component) {
72
72
  }
73
73
 
74
74
  var children = this.renderData(props);
75
- return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
75
+
76
+ var container = _react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props));
77
+
78
+ return props.standalone ? this.renderContainer(container, children) : children;
76
79
  }
77
80
  }]);
78
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-pie",
3
- "version": "36.2.1",
3
+ "version": "36.3.2",
4
4
  "description": "Pie Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -22,7 +22,7 @@
22
22
  "d3-shape": "^1.0.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
  }
@@ -8,7 +8,8 @@ import {
8
8
  PropTypes as CustomPropTypes,
9
9
  VictoryContainer,
10
10
  VictoryLabel,
11
- VictoryTheme
11
+ VictoryTheme,
12
+ UserProps
12
13
  } from "victory-core";
13
14
  import Slice from "./slice";
14
15
  import { getBaseProps } from "./helper-methods";
@@ -255,8 +256,12 @@ class VictoryPie extends React.Component {
255
256
  }
256
257
 
257
258
  const children = this.renderData(props);
259
+ const container = React.cloneElement(
260
+ props.containerComponent,
261
+ UserProps.getSafeUserProps(props)
262
+ );
258
263
  return props.standalone
259
- ? this.renderContainer(props.containerComponent, children)
264
+ ? this.renderContainer(container, children)
260
265
  : children;
261
266
  }
262
267
  }