victory-errorbar 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.
@@ -85,8 +85,8 @@ var VictoryErrorBar = /*#__PURE__*/function (_React$Component) {
85
85
  }
86
86
 
87
87
  var children = this.renderData(props);
88
- var container = /*#__PURE__*/React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props));
89
- return props.standalone ? this.renderContainer(container, children) : children;
88
+ var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
89
+ return UserProps.withSafeUserProps(component, props);
90
90
  }
91
91
  }]);
92
92
 
@@ -100,10 +100,8 @@ var VictoryErrorBar = /*#__PURE__*/function (_React$Component) {
100
100
  }
101
101
 
102
102
  var children = this.renderData(props);
103
-
104
- var container = /*#__PURE__*/_react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props));
105
-
106
- return props.standalone ? this.renderContainer(container, children) : children;
103
+ var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
104
+ return _victoryCore.UserProps.withSafeUserProps(component, props);
107
105
  }
108
106
  }]);
109
107
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-errorbar",
3
- "version": "36.4.0",
3
+ "version": "36.4.1",
4
4
  "description": "Error Bar 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
  },
26
26
  "peerDependencies": {
27
27
  "react": "^16.6.0 || ^17.0.0"
@@ -30,5 +30,5 @@
30
30
  "version": "yarn run nps build-libs && nps build-dists"
31
31
  },
32
32
  "sideEffects": false,
33
- "gitHead": "2e05481eeb34f9801a90023a131a21aa7deff082"
33
+ "gitHead": "aa44a22e5a93989773a560f765f83ac151f44c46"
34
34
  }
@@ -106,13 +106,12 @@ class VictoryErrorBar extends React.Component {
106
106
  }
107
107
 
108
108
  const children = this.renderData(props);
109
- const container = React.cloneElement(
110
- props.containerComponent,
111
- UserProps.getSafeUserProps(props)
112
- );
113
- return props.standalone
114
- ? this.renderContainer(container, children)
109
+
110
+ const component = props.standalone
111
+ ? this.renderContainer(props.containerComponent, children)
115
112
  : children;
113
+
114
+ return UserProps.withSafeUserProps(component, props);
116
115
  }
117
116
  }
118
117