Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

victory-stack

Package Overview
Dependencies
Maintainers
3
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-stack - npm Package Compare versions

Comparing version 35.8.1 to 35.9.0

5

es/index.d.ts

@@ -25,3 +25,6 @@ import * as React from "react";

domain?: DomainPropType;
events?: EventPropTypeInterface<VictoryStackTTargetType, StringOrNumberOrCallback>[];
events?: EventPropTypeInterface<
VictoryStackTTargetType,
StringOrNumberOrCallback
>[];
eventKey?: StringOrNumberOrCallback;

@@ -28,0 +31,0 @@ fillInMissingData?: boolean;

@@ -25,3 +25,6 @@ import * as React from "react";

domain?: DomainPropType;
events?: EventPropTypeInterface<VictoryStackTTargetType, StringOrNumberOrCallback>[];
events?: EventPropTypeInterface<
VictoryStackTTargetType,
StringOrNumberOrCallback
>[];
eventKey?: StringOrNumberOrCallback;

@@ -28,0 +31,0 @@ fillInMissingData?: boolean;

6

package.json
{
"name": "victory-stack",
"version": "35.8.1",
"version": "35.9.0",
"description": "Stack Layout Component for Victory",

@@ -25,4 +25,4 @@ "keywords": [

"react-fast-compare": "^2.0.0",
"victory-core": "^35.8.1",
"victory-shared-events": "^35.8.1"
"victory-core": "^35.9.0",
"victory-shared-events": "^35.9.0"
},

@@ -29,0 +29,0 @@ "scripts": {

@@ -80,3 +80,5 @@ /* eslint-disable func-style */

}, firstDatasetBaseline[group] || 0);
return previousPoints.some((point) => point instanceof Date) ? new Date(y0) : y0;
return previousPoints.some((point) => point instanceof Date)
? new Date(y0)
: y0;
}

@@ -90,3 +92,7 @@

return assign({}, datum, {
_y0: !(datum._y instanceof Date) ? yOffset : yOffset ? new Date(yOffset) : datum._y,
_y0: !(datum._y instanceof Date)
? yOffset
: yOffset
? new Date(yOffset)
: datum._y,
_y1:

@@ -123,3 +129,4 @@ datum._y === null

const style = Wrapper.getStyle(props.theme, props.style, role);
const categories = props.categories || Wrapper.getCategories(props, childComponents);
const categories =
props.categories || Wrapper.getCategories(props, childComponents);
const datasets = props.datasets || stackData(props, childComponents);

@@ -146,3 +153,13 @@ const children = childComponents.map((c, i) => {

const { colorScale, horizontal } = props;
return { datasets, categories, range, domain, horizontal, scale, style, colorScale, role };
return {
datasets,
categories,
range,
domain,
horizontal,
scale,
style,
colorScale,
role
};
}

@@ -179,3 +196,5 @@

}
return props.theme ? colorScaleOptions || props.theme.props.colorScale : colorScaleOptions;
return props.theme
? colorScaleOptions || props.theme.props.colorScale
: colorScaleOptions;
}

@@ -186,3 +205,4 @@

childComponents = childComponents || React.Children.toArray(props.children);
calculatedProps = calculatedProps || getCalculatedProps(props, childComponents);
calculatedProps =
calculatedProps || getCalculatedProps(props, childComponents);
const { datasets } = calculatedProps;

@@ -195,3 +215,5 @@ const childProps = getChildProps(props, calculatedProps);

const style = Wrapper.getChildStyle(child, index, calculatedProps);
const labels = props.labels ? getLabels(props, datasets, index) : child.props.labels;
const labels = props.labels
? getLabels(props, datasets, index)
: child.props.labels;
const name = child.props.name || `${parentName}-${role}-${index}`;

@@ -198,0 +220,0 @@ return React.cloneElement(

@@ -25,3 +25,6 @@ import * as React from "react";

domain?: DomainPropType;
events?: EventPropTypeInterface<VictoryStackTTargetType, StringOrNumberOrCallback>[];
events?: EventPropTypeInterface<
VictoryStackTTargetType,
StringOrNumberOrCallback
>[];
eventKey?: StringOrNumberOrCallback;

@@ -28,0 +31,0 @@ fillInMissingData?: boolean;

@@ -31,3 +31,6 @@ import { assign, defaults, isEmpty } from "lodash";

PropTypes.arrayOf(
PropTypes.oneOfType([CustomPropTypes.nonNegative, PropTypes.instanceOf(Date)])
PropTypes.oneOfType([
CustomPropTypes.nonNegative,
PropTypes.instanceOf(Date)
])
),

@@ -43,3 +46,6 @@ CustomPropTypes.nonNegative

]),
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node
]),
colorScale: PropTypes.oneOfType([

@@ -78,3 +84,7 @@ PropTypes.arrayOf(PropTypes.string),

static expectedComponents = ["groupComponent", "containerComponent", "labelComponent"];
static expectedComponents = [
"groupComponent",
"containerComponent",
"labelComponent"
];

@@ -109,3 +119,6 @@ static getChildren = getChildren;

const newChildren = children.map((child, index) => {
const childProps = assign({ animate: getAnimationProps(props, child, index) }, child.props);
const childProps = assign(
{ animate: getAnimationProps(props, child, index) },
child.props
);
return React.cloneElement(child, childProps);

@@ -147,3 +160,5 @@ });

const props =
this.state && this.state.nodesWillExit ? this.state.oldProps || this.props : this.props;
this.state && this.state.nodesWillExit
? this.state.oldProps || this.props
: this.props;
const modifiedProps = Helpers.modifyProps(props, fallbackProps, role);

@@ -159,4 +174,10 @@ const {

const calculatedProps = getCalculatedProps(modifiedProps, childComponents);
const newChildren = this.getNewChildren(modifiedProps, childComponents, calculatedProps);
const containerProps = standalone ? this.getContainerProps(modifiedProps, calculatedProps) : {};
const newChildren = this.getNewChildren(
modifiedProps,
childComponents,
calculatedProps
);
const containerProps = standalone
? this.getContainerProps(modifiedProps, calculatedProps)
: {};
const container = standalone

@@ -163,0 +184,0 @@ ? this.renderContainer(containerComponent, containerProps)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc