victory-core 36.1.0 → 36.3.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.
- package/dist/victory-core.js +852 -728
- package/dist/victory-core.min.js +1 -1
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -1
- package/es/victory-accessible-group/victory-accessible-group.js +3 -1
- package/es/victory-animation/victory-animation.js +3 -1
- package/es/victory-clip-container/victory-clip-container.js +3 -1
- package/es/victory-container/victory-container.js +3 -1
- package/es/victory-portal/portal.js +3 -1
- package/es/victory-portal/victory-portal.js +3 -1
- package/es/victory-transition/victory-transition.js +3 -1
- package/es/victory-util/add-events.js +308 -305
- package/es/victory-util/hooks/index.js +2 -0
- package/es/victory-util/{hooks.js → hooks/use-animation-state.js} +2 -9
- package/es/victory-util/hooks/use-previous-props.js +8 -0
- package/es/victory-util/timer.js +3 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +4 -62
- package/lib/victory-accessible-group/victory-accessible-group.js +3 -1
- package/lib/victory-animation/victory-animation.js +3 -1
- package/lib/victory-clip-container/victory-clip-container.js +3 -1
- package/lib/victory-container/victory-container.js +3 -1
- package/lib/victory-portal/portal.js +3 -1
- package/lib/victory-portal/victory-portal.js +3 -1
- package/lib/victory-transition/victory-transition.js +3 -1
- package/lib/victory-util/add-events.js +304 -301
- package/lib/victory-util/hooks/index.js +21 -0
- package/lib/victory-util/{hooks.js → hooks/use-animation-state.js} +3 -14
- package/lib/victory-util/hooks/use-previous-props.js +22 -0
- package/lib/victory-util/timer.js +3 -1
- package/package.json +2 -2
- package/src/index.d.ts +2 -0
- package/src/index.js +1 -1
- package/src/victory-util/hooks/index.js +2 -0
- package/src/victory-util/{hooks.js → hooks/use-animation-state.js} +2 -10
- package/src/victory-util/hooks/use-previous-props.js +9 -0
package/es/index.d.ts
CHANGED
|
@@ -248,6 +248,7 @@ export interface VictoryLabelProps {
|
|
|
248
248
|
style?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
|
|
249
249
|
tabIndex?: NumberOrCallback;
|
|
250
250
|
text?: string[] | StringOrNumberOrCallback;
|
|
251
|
+
textComponent?: React.ReactElement;
|
|
251
252
|
textAnchor?: TextAnchorType | { (): TextAnchorType };
|
|
252
253
|
title?: string;
|
|
253
254
|
transform?: string | {} | { (): string | {} };
|
|
@@ -565,6 +566,7 @@ export interface AnimatePropTypeInterface {
|
|
|
565
566
|
after?: (datum: any) => AnimationStyle;
|
|
566
567
|
};
|
|
567
568
|
easing?: AnimationEasing;
|
|
569
|
+
animationWhitelist?: string[];
|
|
568
570
|
}
|
|
569
571
|
|
|
570
572
|
export interface EventCallbackInterface<TTarget, TEventKey> {
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
29
|
+
var VictoryTransition =
|
|
30
|
+
/*#__PURE__*/
|
|
31
|
+
function (_React$Component) {
|
|
30
32
|
_inherits(VictoryTransition, _React$Component);
|
|
31
33
|
|
|
32
34
|
function VictoryTransition(props, context) {
|