victory-stack
Advanced tools
Comparing version 36.8.4 to 36.8.5-next.0
# victory-stack | ||
## 36.8.5-next.0 | ||
### Patch Changes | ||
- c8c2eb2f5: Replace instances of lodash.assign with Object.assign | ||
- Updated dependencies [c8c2eb2f5] | ||
- Updated dependencies [0f3abe234] | ||
- victory-core@36.8.5-next.0 | ||
- victory-shared-events@36.8.5-next.0 | ||
## 36.8.4 | ||
@@ -4,0 +14,0 @@ |
@@ -0,0 +0,0 @@ export declare function getCalculatedProps(initialProps: any, childComponents: any): { |
import _orderBy from "lodash/orderBy"; | ||
import _keys from "lodash/keys"; | ||
import _assign from "lodash/assign"; | ||
@@ -120,3 +119,3 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
var yOffset = getY0(datum, index, datasets) || 0; | ||
return _assign({}, datum, { | ||
return Object.assign({}, datum, { | ||
_y0: !(datum._y instanceof Date) ? yOffset : yOffset ? new Date(yOffset) : datum._y, | ||
@@ -157,6 +156,6 @@ _y1: datum._y === null ? null : datum._y instanceof Date ? new Date(Number(datum._y) + Number(yOffset)) : datum._y + yOffset, | ||
var domain = { | ||
x: Wrapper.getDomain(_assign({}, props, { | ||
x: Wrapper.getDomain(Object.assign({}, props, { | ||
categories: categories | ||
}), "x", clonedChildren), | ||
y: Wrapper.getDomain(_assign({}, props, { | ||
y: Wrapper.getDomain(Object.assign({}, props, { | ||
categories: categories | ||
@@ -277,3 +276,3 @@ }), "y", clonedChildren) | ||
var name = child.props.name || "".concat(parentName, "-").concat(role, "-").concat(index); | ||
return /*#__PURE__*/React.cloneElement(child, _assign({ | ||
return /*#__PURE__*/React.cloneElement(child, Object.assign({ | ||
key: "".concat(name, "-key-").concat(index), | ||
@@ -280,0 +279,0 @@ labels: labels, |
export * from "./victory-stack"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ import PropTypes from "prop-types"; |
import _isEmpty from "lodash/isEmpty"; | ||
import _defaults from "lodash/defaults"; | ||
import _assign from "lodash/assign"; | ||
@@ -62,6 +61,5 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
var orderedChildren = children.map(function (child, index) { | ||
var childProps = _assign({ | ||
var childProps = Object.assign({ | ||
animate: getAnimationProps(props, child, index) | ||
}, child.props); | ||
return /*#__PURE__*/React.cloneElement(child, childProps); | ||
@@ -68,0 +66,0 @@ }); |
@@ -0,0 +0,0 @@ export declare function getCalculatedProps(initialProps: any, childComponents: any): { |
@@ -15,4 +15,2 @@ "use strict"; | ||
var _assign2 = _interopRequireDefault(require("lodash/assign")); | ||
var _react = _interopRequireDefault(require("react")); | ||
@@ -135,3 +133,3 @@ | ||
var yOffset = getY0(datum, index, datasets) || 0; | ||
return (0, _assign2.default)({}, datum, { | ||
return Object.assign({}, datum, { | ||
_y0: !(datum._y instanceof Date) ? yOffset : yOffset ? new Date(yOffset) : datum._y, | ||
@@ -178,6 +176,6 @@ _y1: datum._y === null ? null : datum._y instanceof Date ? new Date(Number(datum._y) + Number(yOffset)) : datum._y + yOffset, | ||
var domain = { | ||
x: _victoryCore.Wrapper.getDomain((0, _assign2.default)({}, props, { | ||
x: _victoryCore.Wrapper.getDomain(Object.assign({}, props, { | ||
categories: categories | ||
}), "x", clonedChildren), | ||
y: _victoryCore.Wrapper.getDomain((0, _assign2.default)({}, props, { | ||
y: _victoryCore.Wrapper.getDomain(Object.assign({}, props, { | ||
categories: categories | ||
@@ -306,3 +304,3 @@ }), "y", clonedChildren) | ||
var name = child.props.name || "".concat(parentName, "-").concat(role, "-").concat(index); | ||
return /*#__PURE__*/_react.default.cloneElement(child, (0, _assign2.default)({ | ||
return /*#__PURE__*/_react.default.cloneElement(child, Object.assign({ | ||
key: "".concat(name, "-key-").concat(index), | ||
@@ -309,0 +307,0 @@ labels: labels, |
export * from "./victory-stack"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ import PropTypes from "prop-types"; |
@@ -12,4 +12,2 @@ "use strict"; | ||
var _assign2 = _interopRequireDefault(require("lodash/assign")); | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
@@ -86,3 +84,3 @@ | ||
var orderedChildren = children.map(function (child, index) { | ||
var childProps = (0, _assign2.default)({ | ||
var childProps = Object.assign({ | ||
animate: getAnimationProps(props, child, index) | ||
@@ -89,0 +87,0 @@ }, child.props); |
{ | ||
"name": "victory-stack", | ||
"version": "36.8.4", | ||
"version": "36.8.5-next.0", | ||
"description": "Stack Layout Component for Victory", | ||
@@ -26,4 +26,4 @@ "keywords": [ | ||
"react-fast-compare": "^3.2.0", | ||
"victory-core": "^36.8.4", | ||
"victory-shared-events": "^36.8.4" | ||
"victory-core": "^36.8.5-next.0", | ||
"victory-shared-events": "^36.8.5-next.0" | ||
}, | ||
@@ -34,8 +34,8 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"victory-bar": "*", | ||
"victory-histogram": "*", | ||
"victory-stack": "*" | ||
"victory-bar": "36.8.5-next.0", | ||
"victory-histogram": "36.8.5-next.0", | ||
"victory-stack": "36.8.5-next.0" | ||
}, | ||
"publishConfig": { | ||
"provenance": true | ||
"provenance": false | ||
}, | ||
@@ -42,0 +42,0 @@ "wireit": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1018005
18117
2
4