victory-core 36.1.0 → 36.2.0

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.
Files changed (33) hide show
  1. package/dist/victory-core.js +852 -728
  2. package/dist/victory-core.min.js +1 -1
  3. package/es/index.js +2 -1
  4. package/es/victory-accessible-group/victory-accessible-group.js +3 -1
  5. package/es/victory-animation/victory-animation.js +3 -1
  6. package/es/victory-clip-container/victory-clip-container.js +3 -1
  7. package/es/victory-container/victory-container.js +3 -1
  8. package/es/victory-portal/portal.js +3 -1
  9. package/es/victory-portal/victory-portal.js +3 -1
  10. package/es/victory-transition/victory-transition.js +3 -1
  11. package/es/victory-util/add-events.js +308 -305
  12. package/es/victory-util/hooks/index.js +2 -0
  13. package/es/victory-util/{hooks.js → hooks/use-animation-state.js} +2 -9
  14. package/es/victory-util/hooks/use-previous-props.js +8 -0
  15. package/es/victory-util/timer.js +3 -1
  16. package/lib/index.js +4 -62
  17. package/lib/victory-accessible-group/victory-accessible-group.js +3 -1
  18. package/lib/victory-animation/victory-animation.js +3 -1
  19. package/lib/victory-clip-container/victory-clip-container.js +3 -1
  20. package/lib/victory-container/victory-container.js +3 -1
  21. package/lib/victory-portal/portal.js +3 -1
  22. package/lib/victory-portal/victory-portal.js +3 -1
  23. package/lib/victory-transition/victory-transition.js +3 -1
  24. package/lib/victory-util/add-events.js +304 -301
  25. package/lib/victory-util/hooks/index.js +21 -0
  26. package/lib/victory-util/{hooks.js → hooks/use-animation-state.js} +3 -14
  27. package/lib/victory-util/hooks/use-previous-props.js +22 -0
  28. package/lib/victory-util/timer.js +3 -1
  29. package/package.json +2 -2
  30. package/src/index.js +1 -1
  31. package/src/victory-util/hooks/index.js +2 -0
  32. package/src/victory-util/{hooks.js → hooks/use-animation-state.js} +2 -10
  33. package/src/victory-util/hooks/use-previous-props.js +9 -0
package/es/index.js CHANGED
@@ -63,7 +63,8 @@ import * as _Axis from "./victory-util/axis";
63
63
  export { _Axis as Axis };
64
64
  export { default as TimerContext } from "./victory-util/timer-context";
65
65
  export { default as PortalContext } from "./victory-portal/portal-context";
66
- export * from "./victory-util/hooks";
66
+ import * as _Hooks from "./victory-util/hooks";
67
+ export { _Hooks as Hooks };
67
68
  import * as _LineHelpers from "./victory-util/line-helpers";
68
69
  export { _LineHelpers as LineHelpers }; // TODO: Fix this default export
69
70
 
@@ -13,7 +13,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
13
13
  import React from "react";
14
14
  import PropTypes from "prop-types";
15
15
 
16
- var VictoryAccessibleGroup = /*#__PURE__*/function (_React$Component) {
16
+ var VictoryAccessibleGroup =
17
+ /*#__PURE__*/
18
+ function (_React$Component) {
17
19
  _inherits(VictoryAccessibleGroup, _React$Component);
18
20
 
19
21
  function VictoryAccessibleGroup() {
@@ -26,7 +26,9 @@ import { victoryInterpolator } from "./util";
26
26
  import TimerContext from "../victory-util/timer-context";
27
27
  import isEqual from "react-fast-compare";
28
28
 
29
- var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
29
+ var VictoryAnimation =
30
+ /*#__PURE__*/
31
+ function (_React$Component) {
30
32
  _inherits(VictoryAnimation, _React$Component);
31
33
 
32
34
  function VictoryAnimation(props, context) {
@@ -35,7 +35,9 @@ import ClipPath from "../victory-primitives/clip-path";
35
35
  import Circle from "../victory-primitives/circle";
36
36
  import Rect from "../victory-primitives/rect";
37
37
 
38
- var VictoryClipContainer = /*#__PURE__*/function (_React$Component) {
38
+ var VictoryClipContainer =
39
+ /*#__PURE__*/
40
+ function (_React$Component) {
39
41
  _inherits(VictoryClipContainer, _React$Component);
40
42
 
41
43
  function VictoryClipContainer(props) {
@@ -30,7 +30,9 @@ import PortalContext from "../victory-portal/portal-context";
30
30
  import TimerContext from "../victory-util/timer-context";
31
31
  import * as Helpers from "../victory-util/helpers";
32
32
 
33
- var VictoryContainer = /*#__PURE__*/function (_React$Component) {
33
+ var VictoryContainer =
34
+ /*#__PURE__*/
35
+ function (_React$Component) {
34
36
  _inherits(VictoryContainer, _React$Component);
35
37
 
36
38
  function VictoryContainer(props) {
@@ -16,7 +16,9 @@ import React from "react";
16
16
  import PropTypes from "prop-types";
17
17
  import * as CustomPropTypes from "../victory-util/prop-types";
18
18
 
19
- var Portal = /*#__PURE__*/function (_React$Component) {
19
+ var Portal =
20
+ /*#__PURE__*/
21
+ function (_React$Component) {
20
22
  _inherits(Portal, _React$Component);
21
23
 
22
24
  function Portal(props) {
@@ -18,7 +18,9 @@ import * as Log from "../victory-util/log";
18
18
  import * as Helpers from "../victory-util/helpers";
19
19
  import PortalContext from "./portal-context";
20
20
 
21
- var VictoryPortal = /*#__PURE__*/function (_React$Component) {
21
+ var VictoryPortal =
22
+ /*#__PURE__*/
23
+ function (_React$Component) {
22
24
  _inherits(VictoryPortal, _React$Component);
23
25
 
24
26
  function VictoryPortal() {
@@ -26,7 +26,9 @@ import TimerContext from "../victory-util/timer-context";
26
26
  import * as Transitions from "../victory-util/transitions";
27
27
  import isEqual from "react-fast-compare";
28
28
 
29
- var VictoryTransition = /*#__PURE__*/function (_React$Component) {
29
+ var VictoryTransition =
30
+ /*#__PURE__*/
31
+ function (_React$Component) {
30
32
  _inherits(VictoryTransition, _React$Component);
31
33
 
32
34
  function VictoryTransition(props, context) {