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

victory-stack

Package Overview
Dependencies
Maintainers
16
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 36.8.6 to 36.9.0

6

CHANGELOG.md
# victory-stack
## 36.9.0
### Minor Changes
- Remove prop-types definitions and dependency ([#2758](https://github.com/FormidableLabs/victory/pull/2758))
## 36.8.6

@@ -4,0 +10,0 @@

59

es/victory-stack.d.ts

@@ -1,2 +0,1 @@

import PropTypes from "prop-types";
import React from "react";

@@ -18,60 +17,4 @@ import { CategoryPropType, ColorScalePropType, DomainPropType, EventPropTypeInterface, StringOrNumberOrCallback, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface, VictoryComponentConfiguration } from "victory-core";

export declare const VictoryStack: React.NamedExoticComponent<VictoryStackProps> & {
readonly type: {
(initialProps: VictoryStackProps): JSX.Element;
propTypes: {
bins: PropTypes.Requireable<number | (number | Date | null | undefined)[]>;
categories: PropTypes.Requireable<(string | null | undefined)[] | PropTypes.InferProps<{
x: PropTypes.Requireable<(string | null | undefined)[]>;
y: PropTypes.Requireable<(string | null | undefined)[]>;
}>>;
children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
colorScale: PropTypes.Requireable<string | (string | null | undefined)[]>;
fillInMissingData: PropTypes.Requireable<boolean>;
horizontal: PropTypes.Requireable<boolean>;
labelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
labels: PropTypes.Requireable<any[] | ((...args: any[]) => any)>;
style: PropTypes.Requireable<PropTypes.InferProps<{
parent: PropTypes.Requireable<object>;
data: PropTypes.Requireable<object>;
labels: PropTypes.Requireable<object>;
}>>;
xOffset: PropTypes.Requireable<number>;
theme?: React.Validator<import("victory-core").VictoryThemeDefinition | null | undefined> | undefined;
animate?: React.Validator<boolean | import("victory-core").AnimatePropTypeInterface | null | undefined> | undefined;
containerComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined;
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], import("victory-core").StringOrNumberOrList>[] | null | undefined> | undefined;
groupComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
height?: React.Validator<number | null | undefined> | undefined;
maxDomain?: React.Validator<number | {
x?: number | undefined;
y?: number | undefined;
} | null | undefined> | undefined;
minDomain?: React.Validator<number | {
x?: number | undefined;
y?: number | undefined;
} | null | undefined> | undefined;
name?: React.Validator<string | null | undefined> | undefined;
origin?: React.Validator<import("victory-core").OriginType | null | undefined> | undefined;
padding?: React.Validator<import("victory-core").PaddingProps | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
range?: React.Validator<import("victory-core").ForAxes<import("victory-core").RangeTuple> | null | undefined> | undefined;
scale?: React.Validator<import("victory-core").D3Scale<any> | import("victory-core").ScaleName | {
x?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
y?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
} | null | undefined> | undefined;
sharedEvents?: React.Validator<{
events: any[];
getEventState: Function;
} | null | undefined> | undefined;
singleQuadrantDomainPadding?: React.Validator<boolean | {
x?: boolean | undefined;
y?: boolean | undefined;
} | null | undefined> | undefined;
standalone?: React.Validator<boolean | null | undefined> | undefined;
width?: React.Validator<number | null | undefined> | undefined;
};
};
readonly type: (initialProps: VictoryStackProps) => JSX.Element;
} & VictoryComponentConfiguration<VictoryStackProps>;
//# sourceMappingURL=victory-stack.d.ts.map

@@ -10,5 +10,4 @@ import _isEmpty from "lodash/isEmpty";

import PropTypes from "prop-types";
import React from "react";
import { CommonProps, Helpers, Hooks, PropTypes as CustomPropTypes, UserProps, VictoryContainer, VictoryTheme, Wrapper } from "victory-core";
import { Helpers, Hooks, UserProps, VictoryContainer, VictoryTheme, Wrapper } from "victory-core";
import { VictorySharedEvents } from "victory-shared-events";

@@ -130,21 +129,2 @@ import { getChildren, useMemoizedProps } from "./helper-methods";

VictoryStackBase.propTypes = _objectSpread(_objectSpread({}, CommonProps.baseProps), {}, {
bins: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([CustomPropTypes.nonNegative, PropTypes.instanceOf(Date)])), CustomPropTypes.nonNegative]),
categories: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.shape({
x: PropTypes.arrayOf(PropTypes.string),
y: PropTypes.arrayOf(PropTypes.string)
})]),
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
colorScale: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]),
fillInMissingData: PropTypes.bool,
horizontal: PropTypes.bool,
labelComponent: PropTypes.element,
labels: PropTypes.oneOfType([PropTypes.func, PropTypes.array]),
style: PropTypes.shape({
parent: PropTypes.object,
data: PropTypes.object,
labels: PropTypes.object
}),
xOffset: PropTypes.number
});
var componentConfig = {

@@ -151,0 +131,0 @@ role: "stack",

@@ -1,2 +0,1 @@

import PropTypes from "prop-types";
import React from "react";

@@ -18,60 +17,4 @@ import { CategoryPropType, ColorScalePropType, DomainPropType, EventPropTypeInterface, StringOrNumberOrCallback, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface, VictoryComponentConfiguration } from "victory-core";

export declare const VictoryStack: React.NamedExoticComponent<VictoryStackProps> & {
readonly type: {
(initialProps: VictoryStackProps): JSX.Element;
propTypes: {
bins: PropTypes.Requireable<number | (number | Date | null | undefined)[]>;
categories: PropTypes.Requireable<(string | null | undefined)[] | PropTypes.InferProps<{
x: PropTypes.Requireable<(string | null | undefined)[]>;
y: PropTypes.Requireable<(string | null | undefined)[]>;
}>>;
children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
colorScale: PropTypes.Requireable<string | (string | null | undefined)[]>;
fillInMissingData: PropTypes.Requireable<boolean>;
horizontal: PropTypes.Requireable<boolean>;
labelComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
labels: PropTypes.Requireable<any[] | ((...args: any[]) => any)>;
style: PropTypes.Requireable<PropTypes.InferProps<{
parent: PropTypes.Requireable<object>;
data: PropTypes.Requireable<object>;
labels: PropTypes.Requireable<object>;
}>>;
xOffset: PropTypes.Requireable<number>;
theme?: React.Validator<import("victory-core").VictoryThemeDefinition | null | undefined> | undefined;
animate?: React.Validator<boolean | import("victory-core").AnimatePropTypeInterface | null | undefined> | undefined;
containerComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
domainPadding?: React.Validator<import("victory-core").ForAxes<import("victory-core").PaddingType> | null | undefined> | undefined;
externalEventMutations?: React.Validator<import("victory-core").EventCallbackInterface<string | string[], import("victory-core").StringOrNumberOrList>[] | null | undefined> | undefined;
groupComponent?: React.Validator<React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined> | undefined;
height?: React.Validator<number | null | undefined> | undefined;
maxDomain?: React.Validator<number | {
x?: number | undefined;
y?: number | undefined;
} | null | undefined> | undefined;
minDomain?: React.Validator<number | {
x?: number | undefined;
y?: number | undefined;
} | null | undefined> | undefined;
name?: React.Validator<string | null | undefined> | undefined;
origin?: React.Validator<import("victory-core").OriginType | null | undefined> | undefined;
padding?: React.Validator<import("victory-core").PaddingProps | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
range?: React.Validator<import("victory-core").ForAxes<import("victory-core").RangeTuple> | null | undefined> | undefined;
scale?: React.Validator<import("victory-core").D3Scale<any> | import("victory-core").ScaleName | {
x?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
y?: import("victory-core").D3Scale<any> | import("victory-core").ScaleName | undefined;
} | null | undefined> | undefined;
sharedEvents?: React.Validator<{
events: any[];
getEventState: Function;
} | null | undefined> | undefined;
singleQuadrantDomainPadding?: React.Validator<boolean | {
x?: boolean | undefined;
y?: boolean | undefined;
} | null | undefined> | undefined;
standalone?: React.Validator<boolean | null | undefined> | undefined;
width?: React.Validator<number | null | undefined> | undefined;
};
};
readonly type: (initialProps: VictoryStackProps) => JSX.Element;
} & VictoryComponentConfiguration<VictoryStackProps>;
//# sourceMappingURL=victory-stack.d.ts.map

@@ -12,4 +12,2 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireDefault(require("react"));

@@ -157,21 +155,2 @@

VictoryStackBase.propTypes = _objectSpread(_objectSpread({}, _victoryCore.CommonProps.baseProps), {}, {
bins: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_victoryCore.PropTypes.nonNegative, _propTypes.default.instanceOf(Date)])), _victoryCore.PropTypes.nonNegative]),
categories: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.shape({
x: _propTypes.default.arrayOf(_propTypes.default.string),
y: _propTypes.default.arrayOf(_propTypes.default.string)
})]),
children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node]),
colorScale: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]),
fillInMissingData: _propTypes.default.bool,
horizontal: _propTypes.default.bool,
labelComponent: _propTypes.default.element,
labels: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.array]),
style: _propTypes.default.shape({
parent: _propTypes.default.object,
data: _propTypes.default.object,
labels: _propTypes.default.object
}),
xOffset: _propTypes.default.number
});
var componentConfig = {

@@ -178,0 +157,0 @@ role: "stack",

{
"name": "victory-stack",
"version": "36.8.6",
"version": "36.9.0",
"description": "Stack Layout Component for Victory",

@@ -24,6 +24,5 @@ "keywords": [

"lodash": "^4.17.19",
"prop-types": "^15.8.1",
"react-fast-compare": "^3.2.0",
"victory-core": "^36.8.6",
"victory-shared-events": "^36.8.6"
"victory-core": "^36.9.0",
"victory-shared-events": "^36.9.0"
},

@@ -30,0 +29,0 @@ "peerDependencies": {

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

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