victory-pie
Advanced tools
Comparing version 13.2.0 to 13.3.0
# VictoryPie Changelog | ||
## 13.3.0 (2018-01-02) | ||
- [163](https://github.com/FormidableLabs/victory-pie/pull/163) | ||
- [victory-core/324](https://github.com/FormidableLabs/victory-core/pull/324) Adds support for external event mutations | ||
- Adds `externalEventMutations` prop to `VictorySharedEvents` and all components enhanced with the `add-events` HOC | ||
- `externalEventMutations` prop format: | ||
``` | ||
externalEventMutations: PropTypes.arrayOf(PropTypes.shape({ | ||
callback: PropTypes.function, | ||
childName: PropTypes.oneOfType([ | ||
PropTypes.string, | ||
PropTypes.array | ||
]), | ||
eventKey: PropTypes.oneOfType([ | ||
PropTypes.array, | ||
CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), | ||
PropTypes.string | ||
]), | ||
mutation: PropTypes.function, | ||
target: PropTypes.oneOfType([ | ||
PropTypes.string, | ||
PropTypes.array | ||
]) | ||
})) | ||
``` | ||
*Note:* `eventKey` and `target` must be specified for externalEventMutations. When using `extenalEventMutations` with shared events (_i.e._ events on VictoryChart etc), `childName` is also required. | ||
*Note:* The `callback` supplied to `externalEventMutations` should be used for clearing mutations. This is crucial for animating charts | ||
## 13.2.0 (2017-12-17) | ||
@@ -4,0 +33,0 @@ |
@@ -100,2 +100,9 @@ import _partialRight from "lodash/partialRight"; | ||
})), | ||
externalEventMutations: PropTypes.arrayOf(PropTypes.shape({ | ||
callback: PropTypes.function, | ||
childName: PropTypes.oneOfType([PropTypes.string, PropTypes.array]), | ||
eventKey: PropTypes.oneOfType([PropTypes.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string]), | ||
mutation: PropTypes.function, | ||
target: PropTypes.oneOfType([PropTypes.string, PropTypes.array]) | ||
})), | ||
groupComponent: PropTypes.element, | ||
@@ -102,0 +109,0 @@ height: CustomPropTypes.nonNegative, |
@@ -116,2 +116,9 @@ Object.defineProperty(exports, "__esModule", { | ||
})), | ||
externalEventMutations: _propTypes2.default.arrayOf(_propTypes2.default.shape({ | ||
callback: _propTypes2.default.function, | ||
childName: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.array]), | ||
eventKey: _propTypes2.default.oneOfType([_propTypes2.default.array, _victoryCore.PropTypes.allOfType([_victoryCore.PropTypes.integer, _victoryCore.PropTypes.nonNegative]), _propTypes2.default.string]), | ||
mutation: _propTypes2.default.function, | ||
target: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.array]) | ||
})), | ||
groupComponent: _propTypes2.default.element, | ||
@@ -118,0 +125,0 @@ height: _victoryCore.PropTypes.nonNegative, |
{ | ||
"name": "victory-pie", | ||
"version": "13.2.0", | ||
"version": "13.3.0", | ||
"description": "D3 pie & donut chart component for React", | ||
@@ -33,3 +33,3 @@ "main": "lib/index.js", | ||
"lodash": "^4.17.4", | ||
"victory-core": "^20.4.0" | ||
"victory-core": "^20.6.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "devDependencies": { |
@@ -82,2 +82,19 @@ /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/ | ||
})), | ||
externalEventMutations: PropTypes.arrayOf(PropTypes.shape({ | ||
callback: PropTypes.function, | ||
childName: PropTypes.oneOfType([ | ||
PropTypes.string, | ||
PropTypes.array | ||
]), | ||
eventKey: PropTypes.oneOfType([ | ||
PropTypes.array, | ||
CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), | ||
PropTypes.string | ||
]), | ||
mutation: PropTypes.function, | ||
target: PropTypes.oneOfType([ | ||
PropTypes.string, | ||
PropTypes.array | ||
]) | ||
})), | ||
groupComponent: PropTypes.element, | ||
@@ -84,0 +101,0 @@ height: CustomPropTypes.nonNegative, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
1388838
24892
4
3
Updatedvictory-core@^20.6.0