victory-area 36.5.3 → 36.6.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.
package/es/area.js CHANGED
@@ -6,7 +6,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6
6
 
7
7
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
8
 
9
- /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/
9
+ /* eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/
10
10
  import React from "react";
11
11
  import PropTypes from "prop-types";
12
12
  import * as d3Shape from "victory-vendor/d3-shape";
@@ -88,7 +88,7 @@ declare class VictoryAreaBase extends React.Component<VictoryAreaProps> {
88
88
  static getBaseProps: (props: any) => any;
89
89
  static expectedComponents: string[];
90
90
  shouldAnimate(): boolean;
91
- render(): any;
91
+ render(): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
92
92
  }
93
93
  export declare const VictoryArea: {
94
94
  new (props: import("victory-core").EventMixinCommonProps): {
@@ -116,7 +116,7 @@ export declare const VictoryArea: {
116
116
  getAllEvents(props: any): any;
117
117
  getComponentProps(component: any, type: any, index: any): any;
118
118
  renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
119
- animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): JSX.Element;
119
+ animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
120
120
  renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
121
121
  renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
122
122
  context: unknown;
@@ -145,6 +145,8 @@ export declare const VictoryArea: {
145
145
  getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
146
146
  role?: string | undefined;
147
147
  expectedComponents?: string[] | undefined;
148
+ getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
149
+ animationWhitelist?: string[] | undefined;
148
150
  } & typeof VictoryAreaBase;
149
151
  export {};
150
152
  //# sourceMappingURL=victory-area.d.ts.map
@@ -88,7 +88,7 @@ declare class VictoryAreaBase extends React.Component<VictoryAreaProps> {
88
88
  static getBaseProps: (props: any) => any;
89
89
  static expectedComponents: string[];
90
90
  shouldAnimate(): boolean;
91
- render(): any;
91
+ render(): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
92
92
  }
93
93
  export declare const VictoryArea: {
94
94
  new (props: import("victory-core").EventMixinCommonProps): {
@@ -116,7 +116,7 @@ export declare const VictoryArea: {
116
116
  getAllEvents(props: any): any;
117
117
  getComponentProps(component: any, type: any, index: any): any;
118
118
  renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
119
- animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): JSX.Element;
119
+ animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
120
120
  renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
121
121
  renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
122
122
  context: unknown;
@@ -145,6 +145,8 @@ export declare const VictoryArea: {
145
145
  getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
146
146
  role?: string | undefined;
147
147
  expectedComponents?: string[] | undefined;
148
+ getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
149
+ animationWhitelist?: string[] | undefined;
148
150
  } & typeof VictoryAreaBase;
149
151
  export {};
150
152
  //# sourceMappingURL=victory-area.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-area",
3
- "version": "36.5.3",
3
+ "version": "36.6.2",
4
4
  "description": "Area Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -13,6 +13,7 @@
13
13
  "url": "https://github.com/formidablelabs/victory.git"
14
14
  },
15
15
  "homepage": "https://formidable.com/open-source/victory",
16
+ "sideEffects": false,
16
17
  "main": "lib/index.js",
17
18
  "module": "es/index.js",
18
19
  "jsnext:main": "es/index.js",
@@ -21,15 +22,266 @@
21
22
  "dependencies": {
22
23
  "lodash": "^4.17.19",
23
24
  "prop-types": "^15.8.1",
24
- "victory-core": "^36.5.3",
25
- "victory-vendor": "^36.5.1"
25
+ "victory-core": "^36.6.2",
26
+ "victory-vendor": "^36.6.2"
26
27
  },
27
28
  "peerDependencies": {
28
29
  "react": ">=16.6.0"
29
30
  },
30
- "scripts": {
31
- "version": "yarn run nps build-libs && nps build-dists"
31
+ "devDependencies": {
32
+ "victory-chart": "*",
33
+ "victory-area": "*"
32
34
  },
33
- "sideEffects": false,
34
- "gitHead": "55338af3c57eacca5956e53c08a58e47ba41d01e"
35
- }
35
+ "wireit": {
36
+ "### THESE WIREIT CONFIGS ARE GENERATED ####": {},
37
+ "### DO NOT MODIFY THESE MANUALLY ####": {},
38
+ "build": {
39
+ "dependencies": [
40
+ "build:lib",
41
+ "build:dist",
42
+ "types:create"
43
+ ]
44
+ },
45
+ "build:lib": {
46
+ "dependencies": [
47
+ "build:lib:esm",
48
+ "build:lib:cjs"
49
+ ]
50
+ },
51
+ "build:lib:esm": {
52
+ "command": "nps build:lib:esm",
53
+ "files": [
54
+ "src/**",
55
+ "!src/**/*.test.*",
56
+ "../../.babelrc.build.js"
57
+ ],
58
+ "output": [
59
+ "es/**/*.js",
60
+ "es/**/*.js.map"
61
+ ],
62
+ "dependencies": [
63
+ "../victory-core:build:lib:esm",
64
+ "../victory-vendor:build:lib:esm"
65
+ ],
66
+ "packageLocks": [
67
+ "pnpm-lock.yaml"
68
+ ]
69
+ },
70
+ "build:lib:cjs": {
71
+ "command": "nps build:lib:cjs",
72
+ "files": [
73
+ "src/**",
74
+ "!src/**/*.test.*",
75
+ "../../.babelrc.build.js"
76
+ ],
77
+ "output": [
78
+ "lib/**/*.js",
79
+ "lib/**/*.js.map"
80
+ ],
81
+ "dependencies": [
82
+ "../victory-core:build:lib:cjs",
83
+ "../victory-vendor:build:lib:cjs"
84
+ ],
85
+ "packageLocks": [
86
+ "pnpm-lock.yaml"
87
+ ]
88
+ },
89
+ "build:dist": {
90
+ "dependencies": [
91
+ "build:dist:dev",
92
+ "build:dist:min"
93
+ ]
94
+ },
95
+ "build:dist:dev": {
96
+ "command": "nps build:dist:dev",
97
+ "files": [
98
+ "src/**",
99
+ "!src/**/*.test.*",
100
+ "../../.babelrc.build.js",
101
+ "../../config/webpack.config.js",
102
+ "../../config/webpack.config.dev.js"
103
+ ],
104
+ "output": [
105
+ "dist/victory*.js",
106
+ "!dist/victory*.min.js*"
107
+ ],
108
+ "dependencies": [
109
+ "../victory-core:build:lib:esm",
110
+ "../victory-vendor:build:lib:esm"
111
+ ],
112
+ "packageLocks": [
113
+ "pnpm-lock.yaml"
114
+ ]
115
+ },
116
+ "build:dist:min": {
117
+ "command": "nps build:dist:min",
118
+ "files": [
119
+ "src/**",
120
+ "!src/**/*.test.*",
121
+ "../../.babelrc.build.js",
122
+ "../../config/webpack.config.js"
123
+ ],
124
+ "output": [
125
+ "dist/victory*.min.js*"
126
+ ],
127
+ "dependencies": [
128
+ "../victory-core:build:lib:esm",
129
+ "../victory-vendor:build:lib:esm"
130
+ ],
131
+ "packageLocks": [
132
+ "pnpm-lock.yaml"
133
+ ]
134
+ },
135
+ "check": {
136
+ "dependencies": [
137
+ "types:check",
138
+ "jest",
139
+ "format",
140
+ "lint"
141
+ ]
142
+ },
143
+ "types:check": {
144
+ "command": "nps types:pkg:check",
145
+ "files": [
146
+ "src/**/*.{ts,tsx}",
147
+ "../../tsconfig.base.json",
148
+ "tsconfig.json"
149
+ ],
150
+ "dependencies": [
151
+ "types:create",
152
+ "../victory-core:types:create",
153
+ "../victory-vendor:types:create",
154
+ "../victory-chart:types:create",
155
+ "../victory-voronoi:types:create"
156
+ ],
157
+ "output": [],
158
+ "packageLocks": [
159
+ "pnpm-lock.yaml"
160
+ ]
161
+ },
162
+ "types:create": {
163
+ "command": "nps types:pkg:create",
164
+ "files": [
165
+ "src/**",
166
+ "!src/**/*.test.*",
167
+ "../../tsconfig.base.json",
168
+ "tsconfig.build.json"
169
+ ],
170
+ "output": [
171
+ "es/**/*.d.ts",
172
+ "es/**/*.d.ts.map",
173
+ "lib/**/*.d.ts",
174
+ "lib/**/*.d.ts.map"
175
+ ],
176
+ "dependencies": [
177
+ "../victory-core:types:create",
178
+ "../victory-vendor:types:create"
179
+ ],
180
+ "packageLocks": [
181
+ "pnpm-lock.yaml"
182
+ ]
183
+ },
184
+ "format": {
185
+ "command": "nps format:pkg",
186
+ "files": [
187
+ "src/**",
188
+ "*.json",
189
+ "../../.prettierignore",
190
+ "../../.prettierrc.json"
191
+ ],
192
+ "output": [],
193
+ "packageLocks": [
194
+ "pnpm-lock.yaml"
195
+ ]
196
+ },
197
+ "format:fix": {
198
+ "command": "pnpm run format || nps format:pkg:fix",
199
+ "files": [
200
+ "src/**",
201
+ "*.json",
202
+ "../../.prettierignore",
203
+ "../../.prettierrc.json"
204
+ ],
205
+ "output": [],
206
+ "packageLocks": [
207
+ "pnpm-lock.yaml"
208
+ ]
209
+ },
210
+ "lint": {
211
+ "command": "nps lint:pkg",
212
+ "files": [
213
+ "src/**",
214
+ "../../.eslintignore",
215
+ "../../.eslintrc.js"
216
+ ],
217
+ "output": [],
218
+ "dependencies": [
219
+ "../victory-vendor:build",
220
+ "../victory-core:types:create",
221
+ "../victory-vendor:types:create",
222
+ "../victory-chart:types:create",
223
+ "../victory-voronoi:types:create"
224
+ ],
225
+ "packageLocks": [
226
+ "pnpm-lock.yaml"
227
+ ]
228
+ },
229
+ "lint:fix": {
230
+ "command": "pnpm run lint || nps lint:pkg:fix",
231
+ "files": [
232
+ "src/**",
233
+ "../../.eslintignore",
234
+ "../../.eslintrc.js"
235
+ ],
236
+ "output": [],
237
+ "dependencies": [
238
+ "../victory-vendor:build",
239
+ "../victory-core:types:create",
240
+ "../victory-vendor:types:create",
241
+ "../victory-chart:types:create",
242
+ "../victory-voronoi:types:create"
243
+ ],
244
+ "packageLocks": [
245
+ "pnpm-lock.yaml"
246
+ ]
247
+ },
248
+ "jest": {
249
+ "command": "nps jest:pkg",
250
+ "files": [
251
+ "src/**/*.test.*",
252
+ "../../.babelrc.js",
253
+ "../../test/jest-config.js",
254
+ "../../test/jest-setup.ts"
255
+ ],
256
+ "output": [],
257
+ "dependencies": [
258
+ "build:lib:cjs",
259
+ "../victory-chart:build:lib:cjs",
260
+ "../victory-vendor:build:lib:cjs",
261
+ "../victory-voronoi:build:lib:cjs"
262
+ ],
263
+ "packageLocks": [
264
+ "pnpm-lock.yaml"
265
+ ]
266
+ }
267
+ },
268
+ "scripts": {
269
+ "### THESE SCRIPTS ARE GENERATED ###": "true",
270
+ "### DO NOT MODIFY THESE MANUALLY ###": "true",
271
+ "build": "wireit",
272
+ "build:lib": "wireit",
273
+ "build:lib:esm": "wireit",
274
+ "build:lib:cjs": "wireit",
275
+ "build:dist": "wireit",
276
+ "build:dist:dev": "wireit",
277
+ "build:dist:min": "wireit",
278
+ "check": "wireit",
279
+ "types:check": "wireit",
280
+ "types:create": "wireit",
281
+ "format": "wireit",
282
+ "format:fix": "wireit",
283
+ "lint": "wireit",
284
+ "lint:fix": "wireit",
285
+ "jest": "wireit"
286
+ }
287
+ }
package/src/area.tsx CHANGED
@@ -1,4 +1,4 @@
1
- /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/
1
+ /* eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/
2
2
  import React from "react";
3
3
  import PropTypes from "prop-types";
4
4
  import { assign } from "lodash";