victory-cursor-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,30 @@
|
|
|
1
1
|
# victory-cursor-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
|
+
|
|
12
|
+
## 36.6.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`6f4972123`](https://github.com/FormidableLabs/victory/commit/6f49721238332bb5ee879571a45b34a04e44d416)]:
|
|
17
|
+
- victory-core@36.6.5
|
|
18
|
+
|
|
19
|
+
## 36.6.4
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 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))
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [[`9a6319cff`](https://github.com/FormidableLabs/victory/commit/9a6319cffbc480711b8c286dcae00575081170f0)]:
|
|
26
|
+
- victory-core@36.6.4
|
|
27
|
+
|
|
3
28
|
## 36.6.3
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import PropTypes from "prop-types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { VictoryContainer, VictoryContainerProps, CoordinatesPropType, VictoryLabelProps,
|
|
3
|
+
import { VictoryContainer, VictoryContainerProps, CoordinatesPropType, VictoryLabelProps, ValueOrAccessor } from "victory-core";
|
|
4
4
|
export declare type CursorCoordinatesPropType = CoordinatesPropType | number;
|
|
5
5
|
export interface VictoryCursorContainerProps extends VictoryContainerProps {
|
|
6
6
|
cursorComponent?: React.ReactElement;
|
|
7
7
|
cursorDimension?: "x" | "y";
|
|
8
|
-
cursorLabel?:
|
|
8
|
+
cursorLabel?: ValueOrAccessor<VictoryLabelProps["text"]>;
|
|
9
9
|
cursorLabelComponent?: React.ReactElement;
|
|
10
10
|
cursorLabelOffset?: CursorCoordinatesPropType;
|
|
11
11
|
defaultCursorValue?: CursorCoordinatesPropType;
|
|
@@ -217,5 +217,6 @@ export declare const VictoryCursorContainer: {
|
|
|
217
217
|
};
|
|
218
218
|
}[];
|
|
219
219
|
} & typeof VictoryContainer;
|
|
220
|
+
export declare type VictoryCursorContainer = typeof VictoryCursorContainer;
|
|
220
221
|
export {};
|
|
221
222
|
//# sourceMappingURL=victory-cursor-container.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import PropTypes from "prop-types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { VictoryContainer, VictoryContainerProps, CoordinatesPropType, VictoryLabelProps,
|
|
3
|
+
import { VictoryContainer, VictoryContainerProps, CoordinatesPropType, VictoryLabelProps, ValueOrAccessor } from "victory-core";
|
|
4
4
|
export declare type CursorCoordinatesPropType = CoordinatesPropType | number;
|
|
5
5
|
export interface VictoryCursorContainerProps extends VictoryContainerProps {
|
|
6
6
|
cursorComponent?: React.ReactElement;
|
|
7
7
|
cursorDimension?: "x" | "y";
|
|
8
|
-
cursorLabel?:
|
|
8
|
+
cursorLabel?: ValueOrAccessor<VictoryLabelProps["text"]>;
|
|
9
9
|
cursorLabelComponent?: React.ReactElement;
|
|
10
10
|
cursorLabelOffset?: CursorCoordinatesPropType;
|
|
11
11
|
defaultCursorValue?: CursorCoordinatesPropType;
|
|
@@ -217,5 +217,6 @@ export declare const VictoryCursorContainer: {
|
|
|
217
217
|
};
|
|
218
218
|
}[];
|
|
219
219
|
} & typeof VictoryContainer;
|
|
220
|
+
export declare type VictoryCursorContainer = typeof VictoryCursorContainer;
|
|
220
221
|
export {};
|
|
221
222
|
//# sourceMappingURL=victory-cursor-container.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-cursor-container",
|
|
3
|
-
"version": "36.6.
|
|
3
|
+
"version": "36.6.6",
|
|
4
4
|
"description": "Interactive Cursor Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
24
|
"prop-types": "^15.8.1",
|
|
25
|
-
"victory-core": "^36.6.
|
|
25
|
+
"victory-core": "^36.6.6"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=16.6.0"
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
VictoryContainerProps,
|
|
9
9
|
CoordinatesPropType,
|
|
10
10
|
VictoryLabelProps,
|
|
11
|
-
|
|
11
|
+
ValueOrAccessor,
|
|
12
12
|
} from "victory-core";
|
|
13
13
|
import { defaults, assign, isObject } from "lodash";
|
|
14
14
|
import { CursorHelpers } from "./cursor-helpers";
|
|
@@ -18,7 +18,7 @@ export type CursorCoordinatesPropType = CoordinatesPropType | number;
|
|
|
18
18
|
export interface VictoryCursorContainerProps extends VictoryContainerProps {
|
|
19
19
|
cursorComponent?: React.ReactElement;
|
|
20
20
|
cursorDimension?: "x" | "y";
|
|
21
|
-
cursorLabel?:
|
|
21
|
+
cursorLabel?: ValueOrAccessor<VictoryLabelProps["text"]>;
|
|
22
22
|
cursorLabelComponent?: React.ReactElement;
|
|
23
23
|
cursorLabelOffset?: CursorCoordinatesPropType;
|
|
24
24
|
defaultCursorValue?: CursorCoordinatesPropType;
|
|
@@ -234,3 +234,4 @@ export function cursorContainerMixin<
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
export const VictoryCursorContainer = cursorContainerMixin(VictoryContainer);
|
|
237
|
+
export type VictoryCursorContainer = typeof VictoryCursorContainer;
|