victory-bar 36.3.0 → 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-bar.js CHANGED
@@ -18,7 +18,7 @@ import PropTypes from "prop-types";
18
18
  import React from "react";
19
19
  import { getBaseProps } from "./helper-methods";
20
20
  import Bar from "./bar";
21
- import { Helpers, VictoryLabel, VictoryContainer, VictoryTheme, CommonProps, addEvents, Data, Domain } from "victory-core";
21
+ import { Helpers, VictoryLabel, VictoryContainer, VictoryTheme, CommonProps, addEvents, Data, Domain, UserProps } from "victory-core";
22
22
  var fallbackProps = {
23
23
  width: 450,
24
24
  height: 300,
@@ -67,7 +67,8 @@ function (_React$Component) {
67
67
  }
68
68
 
69
69
  var children = this.renderData(props);
70
- return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
70
+ var container = React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props));
71
+ return props.standalone ? this.renderContainer(container, children) : children;
71
72
  }
72
73
  }]);
73
74
 
@@ -82,7 +82,10 @@ function (_React$Component) {
82
82
  }
83
83
 
84
84
  var children = this.renderData(props);
85
- return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
85
+
86
+ var container = _react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props));
87
+
88
+ return props.standalone ? this.renderContainer(container, children) : children;
86
89
  }
87
90
  }]);
88
91
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-bar",
3
- "version": "36.3.0",
3
+ "version": "36.3.2",
4
4
  "description": "Bar Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -22,7 +22,7 @@
22
22
  "d3-shape": "^1.2.0",
23
23
  "lodash": "^4.17.19",
24
24
  "prop-types": "^15.5.8",
25
- "victory-core": "^36.3.0"
25
+ "victory-core": "^36.3.2"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "^16.6.0 || ^17.0.0"
@@ -31,5 +31,5 @@
31
31
  "version": "yarn run nps build-libs && nps build-dists"
32
32
  },
33
33
  "sideEffects": false,
34
- "gitHead": "ebafd849d2ded3f1d2aabf0d6e64dcbd48e4c9d6"
34
+ "gitHead": "18895d1290245732d14332bbbda10336032c9aab"
35
35
  }
@@ -10,7 +10,8 @@ import {
10
10
  CommonProps,
11
11
  addEvents,
12
12
  Data,
13
- Domain
13
+ Domain,
14
+ UserProps
14
15
  } from "victory-core";
15
16
 
16
17
  const fallbackProps = {
@@ -115,8 +116,12 @@ class VictoryBar extends React.Component {
115
116
  }
116
117
 
117
118
  const children = this.renderData(props);
119
+ const container = React.cloneElement(
120
+ props.containerComponent,
121
+ UserProps.getSafeUserProps(props)
122
+ );
118
123
  return props.standalone
119
- ? this.renderContainer(props.containerComponent, children)
124
+ ? this.renderContainer(container, children)
120
125
  : children;
121
126
  }
122
127
  }