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

victory-area

Package Overview
Dependencies
Maintainers
16
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-area - npm Package Compare versions

Comparing version 36.8.4 to 36.8.5-next.0

11

CHANGELOG.md
# victory-area
## 36.8.5-next.0
### Patch Changes
- c8c2eb2f5: Replace instances of lodash.assign with Object.assign
- 0f3abe234: Migrate victory-native to TypeScript
- Updated dependencies [c8c2eb2f5]
- Updated dependencies [0f3abe234]
- victory-core@36.8.5-next.0
- victory-vendor@36.8.5-next.0
## 36.8.4

@@ -4,0 +15,0 @@

0

es/area.d.ts

@@ -0,0 +0,0 @@ import React from "react";

14

es/area.js

@@ -1,3 +0,1 @@

import _assign from "lodash/assign";
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; }

@@ -71,7 +69,7 @@

var id = Helpers.evaluateProp(props.id, props);
var style = Helpers.evaluateStyle(_assign({
var style = Helpers.evaluateStyle(Object.assign({
fill: "black"
}, props.style), props);
var tabIndex = Helpers.evaluateProp(props.tabIndex, props);
return _assign({}, props, {
return Object.assign({}, props, {
ariaLabel: ariaLabel,

@@ -131,5 +129,5 @@ desc: desc,

var area = /*#__PURE__*/React.cloneElement(pathComponent, _assign({
var area = /*#__PURE__*/React.cloneElement(pathComponent, Object.assign({
key: "".concat(id, "-area"),
style: _assign({}, style, {
style: Object.assign({}, style, {
stroke: areaStroke

@@ -141,5 +139,5 @@ }),

}, sharedProps, userProps));
var line = renderLine ? /*#__PURE__*/React.cloneElement(pathComponent, _assign({
var line = renderLine ? /*#__PURE__*/React.cloneElement(pathComponent, Object.assign({
key: "".concat(id, "-area-stroke"),
style: _assign({}, style, {
style: Object.assign({}, style, {
fill: "none"

@@ -146,0 +144,0 @@ }),

export declare const getDataWithBaseline: (props: any, scale: any) => any;
export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
//# sourceMappingURL=helper-methods.d.ts.map
import _isNil from "lodash/isNil";
import _assign from "lodash/assign";
import { Helpers, LabelHelpers, Data, Domain, Scale, Collection } from "victory-core";

@@ -36,3 +35,3 @@ export var getDataWithBaseline = function (props, scale) {

return _assign({}, datum, {
return Object.assign({}, datum, {
_y0: _y0,

@@ -75,5 +74,3 @@ _y1: _y1,

var modifiedProps = Helpers.modifyProps(initialProps, fallbackProps, "area");
var props = _assign({}, modifiedProps, getCalculatedValues(modifiedProps));
var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps));
var data = props.data,

@@ -80,0 +77,0 @@ domain = props.domain,

export * from "./victory-area";
export * from "./area";
//# sourceMappingURL=index.d.ts.map

@@ -71,13 +71,3 @@ import PropTypes from "prop-types";

};
static defaultProps: {
containerComponent: JSX.Element;
dataComponent: JSX.Element;
groupComponent: JSX.Element;
labelComponent: JSX.Element;
samples: number;
sortKey: string;
sortOrder: string;
standalone: boolean;
theme: import("victory-core").VictoryThemeDefinition;
};
static defaultProps: VictoryAreaProps;
static displayName: string;

@@ -84,0 +74,0 @@ static role: string;

@@ -0,0 +0,0 @@ import React from "react";

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

var _assign2 = _interopRequireDefault(require("lodash/assign"));
var _react = _interopRequireDefault(require("react"));

@@ -94,3 +92,3 @@

var style = _victoryCore.Helpers.evaluateStyle((0, _assign2.default)({
var style = _victoryCore.Helpers.evaluateStyle(Object.assign({
fill: "black"

@@ -101,3 +99,3 @@ }, props.style), props);

return (0, _assign2.default)({}, props, {
return Object.assign({}, props, {
ariaLabel: ariaLabel,

@@ -161,5 +159,5 @@ desc: desc,

var area = /*#__PURE__*/_react.default.cloneElement(pathComponent, (0, _assign2.default)({
var area = /*#__PURE__*/_react.default.cloneElement(pathComponent, Object.assign({
key: "".concat(id, "-area"),
style: (0, _assign2.default)({}, style, {
style: Object.assign({}, style, {
stroke: areaStroke

@@ -172,5 +170,5 @@ }),

var line = renderLine ? /*#__PURE__*/_react.default.cloneElement(pathComponent, (0, _assign2.default)({
var line = renderLine ? /*#__PURE__*/_react.default.cloneElement(pathComponent, Object.assign({
key: "".concat(id, "-area-stroke"),
style: (0, _assign2.default)({}, style, {
style: Object.assign({}, style, {
fill: "none"

@@ -177,0 +175,0 @@ }),

export declare const getDataWithBaseline: (props: any, scale: any) => any;
export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
//# sourceMappingURL=helper-methods.d.ts.map

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

var _assign2 = _interopRequireDefault(require("lodash/assign"));
var _victoryCore = require("victory-core");

@@ -52,3 +50,3 @@

return (0, _assign2.default)({}, datum, {
return Object.assign({}, datum, {
_y0: _y0,

@@ -97,3 +95,3 @@ _y1: _y1,

var props = (0, _assign2.default)({}, modifiedProps, getCalculatedValues(modifiedProps));
var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps));
var data = props.data,

@@ -100,0 +98,0 @@ domain = props.domain,

export * from "./victory-area";
export * from "./area";
//# sourceMappingURL=index.d.ts.map

@@ -71,13 +71,3 @@ import PropTypes from "prop-types";

};
static defaultProps: {
containerComponent: JSX.Element;
dataComponent: JSX.Element;
groupComponent: JSX.Element;
labelComponent: JSX.Element;
samples: number;
sortKey: string;
sortOrder: string;
standalone: boolean;
theme: import("victory-core").VictoryThemeDefinition;
};
static defaultProps: VictoryAreaProps;
static displayName: string;

@@ -84,0 +74,0 @@ static role: string;

{
"name": "victory-area",
"version": "36.8.4",
"version": "36.8.5-next.0",
"description": "Area Component for Victory",

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

"prop-types": "^15.8.1",
"victory-core": "^36.8.4",
"victory-vendor": "^36.8.4"
"victory-core": "^36.8.5-next.0",
"victory-vendor": "^36.8.5-next.0"
},

@@ -33,7 +33,7 @@ "peerDependencies": {

"devDependencies": {
"victory-chart": "*",
"victory-area": "*"
"victory-chart": "36.8.5-next.0",
"victory-area": "36.8.5-next.0"
},
"publishConfig": {
"provenance": true
"provenance": false
},

@@ -40,0 +40,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

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