victory-line
Advanced tools
Comparing version 37.3.2 to 37.3.3
# victory-line | ||
## 37.3.3 | ||
### Patch Changes | ||
- Remove deprecated babel-plugin-lodash plugin ([#2965](https://github.com/FormidableLabs/victory/pull/2965)) | ||
## 37.3.2 | ||
@@ -4,0 +10,0 @@ |
@@ -1,4 +0,4 @@ | ||
import _defaults from "lodash/defaults"; | ||
/* eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/ | ||
import React from "react"; | ||
import defaults from "lodash/defaults"; | ||
import { Helpers, Path, LineHelpers, UserProps } from "victory-core"; | ||
@@ -34,3 +34,3 @@ const evaluateProps = props => { | ||
export const Curve = initialProps => { | ||
const props = evaluateProps(_defaults({}, initialProps, defaultProps)); | ||
const props = evaluateProps(defaults({}, initialProps, defaultProps)); | ||
const userProps = UserProps.getSafeUserProps(props); | ||
@@ -37,0 +37,0 @@ const { |
@@ -47,5 +47,5 @@ import React from "react"; | ||
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>; | ||
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>; | ||
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement; | ||
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>; | ||
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>; | ||
renderData(props: any, shouldRenderDatum?: (datum: any) => boolean): React.DetailedReactHTMLElement<any, HTMLElement>; | ||
context: unknown; | ||
@@ -67,3 +67,3 @@ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; | ||
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void; | ||
componentEvents: import("@/victory-core/lib/victory-util/events").ComponentEvent[]; | ||
componentEvents: Array<import("@/victory-core/lib/victory-util/events").ComponentEvent>; | ||
getSharedEventState: (key: string, value: string) => unknown; | ||
@@ -75,9 +75,9 @@ baseProps: Record<string, object>; | ||
}; | ||
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>; | ||
role?: string | undefined; | ||
getBaseProps?(props: import("victory-core").EventMixinCommonProps): import("victory-core").EventMixinCalculatedValues["baseProps"]; | ||
role?: import("victory-core").VictoryComponentRole; | ||
expectedComponents?: string[] | undefined; | ||
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined; | ||
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: Array<React.ReactNode>, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined; | ||
animationWhitelist?: string[] | undefined; | ||
} & typeof VictoryLineBase; | ||
export declare type VictoryLineTTargetType = "data" | "labels" | "parent"; | ||
export type VictoryLineTTargetType = "data" | "labels" | "parent"; | ||
export interface VictoryLineProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps { | ||
@@ -84,0 +84,0 @@ events?: EventPropTypeInterface<VictoryLineTTargetType, number | string>[]; |
@@ -7,4 +7,4 @@ "use strict"; | ||
exports.Curve = void 0; | ||
var _defaults2 = _interopRequireDefault(require("lodash/defaults")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _defaults = _interopRequireDefault(require("lodash/defaults")); | ||
var _victoryCore = require("victory-core"); | ||
@@ -43,3 +43,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const Curve = initialProps => { | ||
const props = evaluateProps((0, _defaults2.default)({}, initialProps, defaultProps)); | ||
const props = evaluateProps((0, _defaults.default)({}, initialProps, defaultProps)); | ||
const userProps = _victoryCore.UserProps.getSafeUserProps(props); | ||
@@ -46,0 +46,0 @@ const { |
@@ -47,5 +47,5 @@ import React from "react"; | ||
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>; | ||
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>; | ||
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement; | ||
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>; | ||
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>; | ||
renderData(props: any, shouldRenderDatum?: (datum: any) => boolean): React.DetailedReactHTMLElement<any, HTMLElement>; | ||
context: unknown; | ||
@@ -67,3 +67,3 @@ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; | ||
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void; | ||
componentEvents: import("@/victory-core/lib/victory-util/events").ComponentEvent[]; | ||
componentEvents: Array<import("@/victory-core/lib/victory-util/events").ComponentEvent>; | ||
getSharedEventState: (key: string, value: string) => unknown; | ||
@@ -75,9 +75,9 @@ baseProps: Record<string, object>; | ||
}; | ||
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>; | ||
role?: string | undefined; | ||
getBaseProps?(props: import("victory-core").EventMixinCommonProps): import("victory-core").EventMixinCalculatedValues["baseProps"]; | ||
role?: import("victory-core").VictoryComponentRole; | ||
expectedComponents?: string[] | undefined; | ||
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined; | ||
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: Array<React.ReactNode>, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined; | ||
animationWhitelist?: string[] | undefined; | ||
} & typeof VictoryLineBase; | ||
export declare type VictoryLineTTargetType = "data" | "labels" | "parent"; | ||
export type VictoryLineTTargetType = "data" | "labels" | "parent"; | ||
export interface VictoryLineProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps { | ||
@@ -84,0 +84,0 @@ events?: EventPropTypeInterface<VictoryLineTTargetType, number | string>[]; |
{ | ||
"name": "victory-line", | ||
"version": "37.3.2", | ||
"version": "37.3.3", | ||
"description": "Line Component for Victory", | ||
@@ -24,4 +24,4 @@ "keywords": [ | ||
"lodash": "^4.17.19", | ||
"victory-core": "37.3.2", | ||
"victory-vendor": "37.3.2" | ||
"victory-core": "37.3.3", | ||
"victory-vendor": "37.3.3" | ||
}, | ||
@@ -194,28 +194,2 @@ "peerDependencies": { | ||
}, | ||
"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": { | ||
@@ -288,4 +262,2 @@ "command": "eslint src", | ||
"types:create": "wireit", | ||
"format": "wireit", | ||
"format:fix": "wireit", | ||
"lint": "wireit", | ||
@@ -292,0 +264,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
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
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
1185579
20679
+ Addedvictory-core@37.3.3(transitive)
+ Addedvictory-vendor@37.3.3(transitive)
- Removedvictory-core@37.3.2(transitive)
- Removedvictory-vendor@37.3.2(transitive)
Updatedvictory-core@37.3.3
Updatedvictory-vendor@37.3.3