victory-area 37.3.1 → 37.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,7 +73,7 @@ export declare const VictoryArea: {
73
73
  UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
74
74
  componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
75
75
  UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
76
- componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
76
+ componentEvents: import("@/victory-core/lib/victory-util/events").ComponentEvent[];
77
77
  getSharedEventState: (key: string, value: string) => unknown;
78
78
  baseProps: Record<string, object>;
79
79
  dataKeys: string[];
@@ -20,7 +20,7 @@ const options = {
20
20
  }]
21
21
  };
22
22
 
23
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
23
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
24
24
 
25
25
  /**
26
26
  * Draw area charts with React. VictoryArea is a composable component, so it doesn't include axes.
@@ -73,7 +73,7 @@ export declare const VictoryArea: {
73
73
  UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
74
74
  componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
75
75
  UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
76
- componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
76
+ componentEvents: import("@/victory-core/lib/victory-util/events").ComponentEvent[];
77
77
  getSharedEventState: (key: string, value: string) => unknown;
78
78
  baseProps: Record<string, object>;
79
79
  dataKeys: string[];
@@ -27,7 +27,7 @@ const options = {
27
27
  }]
28
28
  };
29
29
 
30
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
30
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
31
31
 
32
32
  /**
33
33
  * Draw area charts with React. VictoryArea is a composable component, so it doesn't include axes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-area",
3
- "version": "37.3.1",
3
+ "version": "37.3.2",
4
4
  "description": "Area Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -21,8 +21,8 @@
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "lodash": "^4.17.19",
24
- "victory-core": "37.3.1",
25
- "victory-vendor": "37.3.1"
24
+ "victory-core": "37.3.2",
25
+ "victory-vendor": "37.3.2"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": ">=16.6.0"
@@ -217,11 +217,9 @@
217
217
  ]
218
218
  },
219
219
  "lint": {
220
- "command": "nps lint:pkg",
220
+ "command": "eslint src",
221
221
  "files": [
222
- "src/**",
223
- "../../.eslintignore",
224
- "../../.eslintrc.js"
222
+ "src/**"
225
223
  ],
226
224
  "output": [],
227
225
  "dependencies": [
@@ -236,11 +234,9 @@
236
234
  ]
237
235
  },
238
236
  "lint:fix": {
239
- "command": "pnpm run lint || nps lint:pkg:fix",
237
+ "command": "eslint --fix src",
240
238
  "files": [
241
- "src/**",
242
- "../../.eslintignore",
243
- "../../.eslintrc.js"
239
+ "src/**"
244
240
  ],
245
241
  "output": [],
246
242
  "dependencies": [
package/src/area.tsx CHANGED
@@ -178,7 +178,7 @@ export const Area: React.FC<AreaProps> = (initialProps) => {
178
178
  export interface AreaProps extends VictoryCommonPrimitiveProps {
179
179
  horizontal?: VictoryCommonThemeProps["horizontal"];
180
180
  groupComponent?: React.ReactElement;
181
- // eslint-disable-next-line @typescript-eslint/ban-types
181
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
182
182
  interpolation?: string | Function;
183
183
  pathComponent?: React.ReactElement;
184
184
  }
@@ -45,12 +45,12 @@ export interface VictoryAreaProps
45
45
  VictoryMultiLabelableProps {
46
46
  eventKey?: string[] | number[] | StringOrNumberOrCallback;
47
47
  events?: EventPropTypeInterface<VictoryAreaTTargetType, string | number>[];
48
- // eslint-disable-next-line @typescript-eslint/ban-types
48
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
49
49
  interpolation?: InterpolationPropType | Function;
50
50
  style?: VictoryStyleInterface;
51
51
  }
52
52
 
53
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
53
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
54
54
  interface VictoryAreaBase extends EventsMixinClass<VictoryAreaProps> {}
55
55
 
56
56
  /**