victory-area 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.
@@ -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 Area from "./area";
21
- import { PropTypes as CustomPropTypes, Helpers, VictoryLabel, VictoryContainer, CommonProps, DefaultTransitions, VictoryClipContainer, addEvents, VictoryTheme, Data, Domain } from "victory-core";
21
+ import { PropTypes as CustomPropTypes, Helpers, VictoryLabel, VictoryContainer, CommonProps, DefaultTransitions, VictoryClipContainer, addEvents, VictoryTheme, Data, Domain, UserProps } from "victory-core";
22
22
  var fallbackProps = {
23
23
  width: 450,
24
24
  height: 300,
@@ -66,7 +66,8 @@ function (_React$Component) {
66
66
  }
67
67
 
68
68
  var children = this.renderContinuousData(props);
69
- return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
69
+ var container = React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props));
70
+ return props.standalone ? this.renderContainer(container, children) : children;
70
71
  }
71
72
  }]);
72
73
 
@@ -81,7 +81,10 @@ function (_React$Component) {
81
81
  }
82
82
 
83
83
  var children = this.renderContinuousData(props);
84
- return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
84
+
85
+ var container = _react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props));
86
+
87
+ return props.standalone ? this.renderContainer(container, children) : children;
85
88
  }
86
89
  }]);
87
90
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-area",
3
- "version": "36.2.1",
3
+ "version": "36.3.2",
4
4
  "description": "Area 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.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
  }
@@ -13,7 +13,8 @@ import {
13
13
  addEvents,
14
14
  VictoryTheme,
15
15
  Data,
16
- Domain
16
+ Domain,
17
+ UserProps
17
18
  } from "victory-core";
18
19
 
19
20
  const fallbackProps = {
@@ -107,8 +108,12 @@ class VictoryArea extends React.Component {
107
108
  }
108
109
 
109
110
  const children = this.renderContinuousData(props);
111
+ const container = React.cloneElement(
112
+ props.containerComponent,
113
+ UserProps.getSafeUserProps(props)
114
+ );
110
115
  return props.standalone
111
- ? this.renderContainer(props.containerComponent, children)
116
+ ? this.renderContainer(container, children)
112
117
  : children;
113
118
  }
114
119
  }