victory-area 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.
@@ -76,8 +76,8 @@ var VictoryArea = /*#__PURE__*/function (_React$Component) {
76
76
  }
77
77
 
78
78
  var children = this.renderContinuousData(props);
79
- var container = /*#__PURE__*/React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props));
80
- return props.standalone ? this.renderContainer(container, children) : children;
79
+ var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
80
+ return UserProps.withSafeUserProps(component, props);
81
81
  }
82
82
  }]);
83
83
 
@@ -91,10 +91,8 @@ var VictoryArea = /*#__PURE__*/function (_React$Component) {
91
91
  }
92
92
 
93
93
  var children = this.renderContinuousData(props);
94
-
95
- var container = /*#__PURE__*/_react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props));
96
-
97
- return props.standalone ? this.renderContainer(container, children) : children;
94
+ var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
95
+ return _victoryCore.UserProps.withSafeUserProps(component, props);
98
96
  }
99
97
  }]);
100
98
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-area",
3
- "version": "36.4.0",
3
+ "version": "36.4.1",
4
4
  "description": "Area 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
  }
@@ -108,13 +108,11 @@ class VictoryArea extends React.Component {
108
108
  }
109
109
 
110
110
  const children = this.renderContinuousData(props);
111
- const container = React.cloneElement(
112
- props.containerComponent,
113
- UserProps.getSafeUserProps(props)
114
- );
115
- return props.standalone
116
- ? this.renderContainer(container, children)
111
+ const component = props.standalone
112
+ ? this.renderContainer(props.containerComponent, children)
117
113
  : children;
114
+
115
+ return UserProps.withSafeUserProps(component, props);
118
116
  }
119
117
  }
120
118