victory-voronoi-container 36.6.3 → 36.6.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # victory-voronoi-container
2
2
 
3
+ ## 36.6.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Improved the exported types (fixes [#2451](https://github.com/FormidableLabs/victory/issues/2451)) ([#2452](https://github.com/FormidableLabs/victory/pull/2452))
8
+
9
+ - Updated dependencies []:
10
+ - victory-core@36.6.6
11
+ - victory-tooltip@36.6.6
12
+
13
+ ## 36.6.5
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [[`6f4972123`](https://github.com/FormidableLabs/victory/commit/6f49721238332bb5ee879571a45b34a04e44d416)]:
18
+ - victory-core@36.6.5
19
+ - victory-tooltip@36.6.5
20
+
21
+ ## 36.6.4
22
+
23
+ ### Patch Changes
24
+
25
+ - Added explicit `any` type defs (fixes [#2358](https://github.com/FormidableLabs/victory/issues/2358)) ([`57ed0fe30`](https://github.com/FormidableLabs/victory/commit/57ed0fe304dbc8753da1126a02d44de8004e96aa))
26
+
27
+ * Allow data accessors to accept any data types (fixes [#2360](https://github.com/FormidableLabs/victory/issues/2360)) ([#2436](https://github.com/FormidableLabs/victory/pull/2436))
28
+
29
+ * Updated dependencies [[`9a6319cff`](https://github.com/FormidableLabs/victory/commit/9a6319cffbc480711b8c286dcae00575081170f0)]:
30
+ - victory-core@36.6.4
31
+ - victory-tooltip@36.6.4
32
+
3
33
  ## 36.6.3
4
34
 
5
35
  ### Patch Changes
@@ -338,7 +338,9 @@ var voronoiContainerMixin = function (base) {
338
338
  }];
339
339
  }, _class;
340
340
  };
341
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (voronoiContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer));
341
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (voronoiContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer)); // @ts-expect-error IMPORTANT: when converting this file to TypeScript, you must export the type as well:
342
+ // export const VictoryVoronoiContainer = voronoiContainerMixin(VictoryContainer);
343
+ // export type VictoryVoronoiContainer = typeof VictoryVoronoiContainer;
342
344
 
343
345
  /***/ }),
344
346
 
package/es/index.d.ts CHANGED
@@ -22,18 +22,23 @@ export class VictoryVoronoiContainer extends React.Component<
22
22
  > {}
23
23
 
24
24
  export const VoronoiHelpers: {
25
- withinBounds(props, point): any;
26
- getDatasets(props): any;
27
- findPoints(datasets, point): any;
28
- withinRadius(point, mousePosition, radius): any;
29
- getVoronoiPoints(props, mousePosition): any;
30
- getActiveMutations(props, point): any;
31
- getInactiveMutations(props, point): any;
32
- getParentMutation(activePoints, mousePosition, parentSVG, vIndex): any;
33
- onActivated(props, points): any;
34
- onDeactivated(props, points): any;
35
- onMouseLeave(evt, targetProps): any;
36
- onMouseMove(evt, targetProps): any;
25
+ withinBounds(props: any, point: any): any;
26
+ getDatasets(props: any): any;
27
+ findPoints(datasets: any, point: any): any;
28
+ withinRadius(point: any, mousePosition: any, radius: any): any;
29
+ getVoronoiPoints(props: any, mousePosition: any): any;
30
+ getActiveMutations(props: any, point: any): any;
31
+ getInactiveMutations(props: any, point: any): any;
32
+ getParentMutation(
33
+ activePoints: any,
34
+ mousePosition: any,
35
+ parentSVG: any,
36
+ vIndex: any,
37
+ ): any;
38
+ onActivated(props: any, points: any): any;
39
+ onDeactivated(props: any, points: any): any;
40
+ onMouseLeave(evt: any, targetProps: any): any;
41
+ onMouseMove(evt: any, targetProps: any): any;
37
42
  };
38
43
 
39
44
  export const voronoiContainerMixin: (base: Function) => Function;
@@ -298,4 +298,6 @@ export var voronoiContainerMixin = function (base) {
298
298
  }];
299
299
  }, _class;
300
300
  };
301
- export default voronoiContainerMixin(VictoryContainer);
301
+ export default voronoiContainerMixin(VictoryContainer); // @ts-expect-error IMPORTANT: when converting this file to TypeScript, you must export the type as well:
302
+ // export const VictoryVoronoiContainer = voronoiContainerMixin(VictoryContainer);
303
+ // export type VictoryVoronoiContainer = typeof VictoryVoronoiContainer;
package/lib/index.d.ts CHANGED
@@ -22,18 +22,23 @@ export class VictoryVoronoiContainer extends React.Component<
22
22
  > {}
23
23
 
24
24
  export const VoronoiHelpers: {
25
- withinBounds(props, point): any;
26
- getDatasets(props): any;
27
- findPoints(datasets, point): any;
28
- withinRadius(point, mousePosition, radius): any;
29
- getVoronoiPoints(props, mousePosition): any;
30
- getActiveMutations(props, point): any;
31
- getInactiveMutations(props, point): any;
32
- getParentMutation(activePoints, mousePosition, parentSVG, vIndex): any;
33
- onActivated(props, points): any;
34
- onDeactivated(props, points): any;
35
- onMouseLeave(evt, targetProps): any;
36
- onMouseMove(evt, targetProps): any;
25
+ withinBounds(props: any, point: any): any;
26
+ getDatasets(props: any): any;
27
+ findPoints(datasets: any, point: any): any;
28
+ withinRadius(point: any, mousePosition: any, radius: any): any;
29
+ getVoronoiPoints(props: any, mousePosition: any): any;
30
+ getActiveMutations(props: any, point: any): any;
31
+ getInactiveMutations(props: any, point: any): any;
32
+ getParentMutation(
33
+ activePoints: any,
34
+ mousePosition: any,
35
+ parentSVG: any,
36
+ vIndex: any,
37
+ ): any;
38
+ onActivated(props: any, points: any): any;
39
+ onDeactivated(props: any, points: any): any;
40
+ onMouseLeave(evt: any, targetProps: any): any;
41
+ onMouseMove(evt: any, targetProps: any): any;
37
42
  };
38
43
 
39
44
  export const voronoiContainerMixin: (base: Function) => Function;
@@ -317,6 +317,9 @@ var voronoiContainerMixin = function (base) {
317
317
 
318
318
  exports.voronoiContainerMixin = voronoiContainerMixin;
319
319
 
320
- var _default = voronoiContainerMixin(_victoryCore.VictoryContainer);
320
+ var _default = voronoiContainerMixin(_victoryCore.VictoryContainer); // @ts-expect-error IMPORTANT: when converting this file to TypeScript, you must export the type as well:
321
+ // export const VictoryVoronoiContainer = voronoiContainerMixin(VictoryContainer);
322
+ // export type VictoryVoronoiContainer = typeof VictoryVoronoiContainer;
323
+
321
324
 
322
325
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-voronoi-container",
3
- "version": "36.6.3",
3
+ "version": "36.6.6",
4
4
  "description": "Interactive Voronoi Mouseover Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -24,8 +24,8 @@
24
24
  "lodash": "^4.17.19",
25
25
  "prop-types": "^15.8.1",
26
26
  "react-fast-compare": "^3.2.0",
27
- "victory-core": "^36.6.3",
28
- "victory-tooltip": "^36.6.3"
27
+ "victory-core": "^36.6.6",
28
+ "victory-tooltip": "^36.6.6"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "react": ">=16.6.0"
package/src/index.d.ts CHANGED
@@ -22,18 +22,23 @@ export class VictoryVoronoiContainer extends React.Component<
22
22
  > {}
23
23
 
24
24
  export const VoronoiHelpers: {
25
- withinBounds(props, point): any;
26
- getDatasets(props): any;
27
- findPoints(datasets, point): any;
28
- withinRadius(point, mousePosition, radius): any;
29
- getVoronoiPoints(props, mousePosition): any;
30
- getActiveMutations(props, point): any;
31
- getInactiveMutations(props, point): any;
32
- getParentMutation(activePoints, mousePosition, parentSVG, vIndex): any;
33
- onActivated(props, points): any;
34
- onDeactivated(props, points): any;
35
- onMouseLeave(evt, targetProps): any;
36
- onMouseMove(evt, targetProps): any;
25
+ withinBounds(props: any, point: any): any;
26
+ getDatasets(props: any): any;
27
+ findPoints(datasets: any, point: any): any;
28
+ withinRadius(point: any, mousePosition: any, radius: any): any;
29
+ getVoronoiPoints(props: any, mousePosition: any): any;
30
+ getActiveMutations(props: any, point: any): any;
31
+ getInactiveMutations(props: any, point: any): any;
32
+ getParentMutation(
33
+ activePoints: any,
34
+ mousePosition: any,
35
+ parentSVG: any,
36
+ vIndex: any,
37
+ ): any;
38
+ onActivated(props: any, points: any): any;
39
+ onDeactivated(props: any, points: any): any;
40
+ onMouseLeave(evt: any, targetProps: any): any;
41
+ onMouseMove(evt: any, targetProps: any): any;
37
42
  };
38
43
 
39
44
  export const voronoiContainerMixin: (base: Function) => Function;
@@ -244,3 +244,6 @@ export const voronoiContainerMixin = (base) =>
244
244
  };
245
245
 
246
246
  export default voronoiContainerMixin(VictoryContainer);
247
+ // @ts-expect-error IMPORTANT: when converting this file to TypeScript, you must export the type as well:
248
+ // export const VictoryVoronoiContainer = voronoiContainerMixin(VictoryContainer);
249
+ // export type VictoryVoronoiContainer = typeof VictoryVoronoiContainer;