New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

victory-group

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-group - npm Package Compare versions

Comparing version 37.3.2 to 37.3.3

8

CHANGELOG.md
# victory-group
## 37.3.3
### Patch Changes
- Remove deprecated babel-plugin-lodash plugin ([#2965](https://github.com/FormidableLabs/victory/pull/2965))
* Improve types in victory-core helpers ([#2999](https://github.com/FormidableLabs/victory/pull/2999))
## 37.3.2

@@ -4,0 +12,0 @@

15

es/helper-methods.d.ts

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

import { Helpers } from "victory-core";
export declare function getCalculatedProps(initialProps: any, childComponents: any): {

@@ -19,8 +20,3 @@ datasets: any;

origin: any;
padding: {
top: any;
bottom: any;
left: any;
right: any;
};
padding: Helpers.ElementPadding;
};

@@ -45,10 +41,5 @@ export declare function useMemoizedProps(initialProps: any): {

origin: any;
padding: {
top: any;
bottom: any;
left: any;
right: any;
};
padding: Helpers.ElementPadding;
};
export declare function getChildren(initialProps: any, childComponents?: any, calculatedProps?: any): any;
//# sourceMappingURL=helper-methods.d.ts.map

2

es/helper-methods.js

@@ -44,3 +44,3 @@ import React from "react";

const origin = polar ? props.origin : Helpers.getPolarOrigin(props);
const padding = Helpers.getPadding(props);
const padding = Helpers.getPadding(props.padding);
return {

@@ -47,0 +47,0 @@ datasets,

import React from "react";
import { EventPropTypeInterface, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface, VictoryComponentConfiguration } from "victory-core";
export declare type VictoryGroupTTargetType = "data" | "labels" | "parent";
export type VictoryGroupTTargetType = "data" | "labels" | "parent";
export interface VictoryGroupProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps {

@@ -5,0 +5,0 @@ children?: React.ReactNode;

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

import _isEmpty from "lodash/isEmpty";
import _defaults from "lodash/defaults";
import defaults from "lodash/defaults";
import isEmpty from "lodash/isEmpty";
import React from "react";

@@ -28,3 +28,3 @@ import { Helpers, Hooks, UserProps, VictoryContainer, VictoryTheme, Wrapper } from "victory-core";

} = Hooks.useAnimationState();
const propsWithDefaults = React.useMemo(() => _defaults({}, initialProps, defaultProps), [initialProps]);
const propsWithDefaults = React.useMemo(() => defaults({}, initialProps, defaultProps), [initialProps]);
const props = getProps(propsWithDefaults);

@@ -83,3 +83,3 @@ const modifiedProps = Helpers.modifyProps(props, fallbackProps, role);

if (standalone) {
const defaultContainerProps = _defaults({}, containerComponent.props, containerProps, userProps);
const defaultContainerProps = defaults({}, containerComponent.props, containerProps, userProps);
return /*#__PURE__*/React.cloneElement(containerComponent, defaultContainerProps);

@@ -101,3 +101,3 @@ }

}, [setAnimationState, previousProps, propsWithDefaults, props]);
if (!_isEmpty(events)) {
if (!isEmpty(events)) {
return /*#__PURE__*/React.createElement(VictorySharedEvents, {

@@ -104,0 +104,0 @@ container: container,

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

import { Helpers } from "victory-core";
export declare function getCalculatedProps(initialProps: any, childComponents: any): {

@@ -19,8 +20,3 @@ datasets: any;

origin: any;
padding: {
top: any;
bottom: any;
left: any;
right: any;
};
padding: Helpers.ElementPadding;
};

@@ -45,10 +41,5 @@ export declare function useMemoizedProps(initialProps: any): {

origin: any;
padding: {
top: any;
bottom: any;
left: any;
right: any;
};
padding: Helpers.ElementPadding;
};
export declare function getChildren(initialProps: any, childComponents?: any, calculatedProps?: any): any;
//# sourceMappingURL=helper-methods.d.ts.map

@@ -53,3 +53,3 @@ "use strict";

const origin = polar ? props.origin : _victoryCore.Helpers.getPolarOrigin(props);
const padding = _victoryCore.Helpers.getPadding(props);
const padding = _victoryCore.Helpers.getPadding(props.padding);
return {

@@ -56,0 +56,0 @@ datasets,

import React from "react";
import { EventPropTypeInterface, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface, VictoryComponentConfiguration } from "victory-core";
export declare type VictoryGroupTTargetType = "data" | "labels" | "parent";
export type VictoryGroupTTargetType = "data" | "labels" | "parent";
export interface VictoryGroupProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps {

@@ -5,0 +5,0 @@ children?: React.ReactNode;

@@ -7,4 +7,4 @@ "use strict";

exports.VictoryGroup = void 0;
var _isEmpty2 = _interopRequireDefault(require("lodash/isEmpty"));
var _defaults2 = _interopRequireDefault(require("lodash/defaults"));
var _defaults = _interopRequireDefault(require("lodash/defaults"));
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
var _react = _interopRequireDefault(require("react"));

@@ -36,3 +36,3 @@ var _victoryCore = require("victory-core");

} = _victoryCore.Hooks.useAnimationState();
const propsWithDefaults = _react.default.useMemo(() => (0, _defaults2.default)({}, initialProps, defaultProps), [initialProps]);
const propsWithDefaults = _react.default.useMemo(() => (0, _defaults.default)({}, initialProps, defaultProps), [initialProps]);
const props = getProps(propsWithDefaults);

@@ -91,3 +91,3 @@ const modifiedProps = _victoryCore.Helpers.modifyProps(props, fallbackProps, role);

if (standalone) {
const defaultContainerProps = (0, _defaults2.default)({}, containerComponent.props, containerProps, userProps);
const defaultContainerProps = (0, _defaults.default)({}, containerComponent.props, containerProps, userProps);
return /*#__PURE__*/_react.default.cloneElement(containerComponent, defaultContainerProps);

@@ -109,3 +109,3 @@ }

}, [setAnimationState, previousProps, propsWithDefaults, props]);
if (!(0, _isEmpty2.default)(events)) {
if (!(0, _isEmpty.default)(events)) {
return /*#__PURE__*/_react.default.createElement(_victorySharedEvents.VictorySharedEvents, {

@@ -112,0 +112,0 @@ container: container,

{
"name": "victory-group",
"version": "37.3.2",
"version": "37.3.3",
"description": "Group Layout Component for Victory",

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

"react-fast-compare": "^3.2.0",
"victory-core": "37.3.2",
"victory-shared-events": "37.3.2"
"victory-core": "37.3.3",
"victory-shared-events": "37.3.3"
},

@@ -196,28 +196,2 @@ "devDependencies": {

},
"format": {
"command": "nps format:pkg",
"files": [
"src/**",
"*.json",
"../../.prettierignore",
"../../.prettierrc.json"
],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"format:fix": {
"command": "pnpm run format || nps format:pkg:fix",
"files": [
"src/**",
"*.json",
"../../.prettierignore",
"../../.prettierrc.json"
],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"lint": {

@@ -291,4 +265,2 @@ "command": "eslint src",

"types:create": "wireit",
"format": "wireit",
"format:fix": "wireit",
"lint": "wireit",

@@ -295,0 +267,0 @@ "lint:fix": "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

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