victory-pie 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.
package/es/victory-pie.js CHANGED
@@ -68,8 +68,8 @@ var VictoryPie = /*#__PURE__*/function (_React$Component) {
68
68
  }
69
69
 
70
70
  var children = this.renderData(props);
71
- var container = /*#__PURE__*/React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props));
72
- return props.standalone ? this.renderContainer(container, children) : children;
71
+ var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
72
+ return UserProps.withSafeUserProps(component, props);
73
73
  }
74
74
  }]);
75
75
 
@@ -125,10 +125,10 @@ _defineProperty(VictoryPie, "propTypes", {
125
125
  eventHandlers: PropTypes.object
126
126
  })),
127
127
  externalEventMutations: PropTypes.arrayOf(PropTypes.shape({
128
- callback: PropTypes.function,
128
+ callback: PropTypes.func,
129
129
  childName: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
130
130
  eventKey: PropTypes.oneOfType([PropTypes.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string]),
131
- mutation: PropTypes.function,
131
+ mutation: PropTypes.func,
132
132
  target: PropTypes.oneOfType([PropTypes.string, PropTypes.array])
133
133
  })),
134
134
  groupComponent: PropTypes.element,
@@ -82,10 +82,8 @@ var VictoryPie = /*#__PURE__*/function (_React$Component) {
82
82
  }
83
83
 
84
84
  var children = this.renderData(props);
85
-
86
- var container = /*#__PURE__*/_react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props));
87
-
88
- return props.standalone ? this.renderContainer(container, children) : children;
85
+ var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
86
+ return _victoryCore.UserProps.withSafeUserProps(component, props);
89
87
  }
90
88
  }]);
91
89
 
@@ -141,10 +139,10 @@ _defineProperty(VictoryPie, "propTypes", {
141
139
  eventHandlers: _propTypes.default.object
142
140
  })),
143
141
  externalEventMutations: _propTypes.default.arrayOf(_propTypes.default.shape({
144
- callback: _propTypes.default.function,
142
+ callback: _propTypes.default.func,
145
143
  childName: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array]),
146
144
  eventKey: _propTypes.default.oneOfType([_propTypes.default.array, _victoryCore.PropTypes.allOfType([_victoryCore.PropTypes.integer, _victoryCore.PropTypes.nonNegative]), _propTypes.default.string]),
147
- mutation: _propTypes.default.function,
145
+ mutation: _propTypes.default.func,
148
146
  target: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array])
149
147
  })),
150
148
  groupComponent: _propTypes.default.element,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-pie",
3
- "version": "36.4.0",
3
+ "version": "36.4.1",
4
4
  "description": "Pie 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
  }
@@ -120,7 +120,7 @@ class VictoryPie extends React.Component {
120
120
  ),
121
121
  externalEventMutations: PropTypes.arrayOf(
122
122
  PropTypes.shape({
123
- callback: PropTypes.function,
123
+ callback: PropTypes.func,
124
124
  childName: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
125
125
  eventKey: PropTypes.oneOfType([
126
126
  PropTypes.array,
@@ -130,7 +130,7 @@ class VictoryPie extends React.Component {
130
130
  ]),
131
131
  PropTypes.string
132
132
  ]),
133
- mutation: PropTypes.function,
133
+ mutation: PropTypes.func,
134
134
  target: PropTypes.oneOfType([PropTypes.string, PropTypes.array])
135
135
  })
136
136
  ),
@@ -256,13 +256,12 @@ class VictoryPie extends React.Component {
256
256
  }
257
257
 
258
258
  const children = this.renderData(props);
259
- const container = React.cloneElement(
260
- props.containerComponent,
261
- UserProps.getSafeUserProps(props)
262
- );
263
- return props.standalone
264
- ? this.renderContainer(container, children)
259
+
260
+ const component = props.standalone
261
+ ? this.renderContainer(props.containerComponent, children)
265
262
  : children;
263
+
264
+ return UserProps.withSafeUserProps(component, props);
266
265
  }
267
266
  }
268
267