victory-stack 36.6.6 → 36.6.8

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,23 @@
1
1
  # victory-stack
2
2
 
3
+ ## 36.6.8
4
+
5
+ ### Patch Changes
6
+
7
+ - TypeScript: Added strongly-typed props to `VictoryStack` (fixes [#2449](https://github.com/FormidableLabs/victory/issues/2449)) ([#2480](https://github.com/FormidableLabs/victory/pull/2480))
8
+
9
+ - Updated dependencies []:
10
+ - victory-core@36.6.8
11
+ - victory-shared-events@36.6.8
12
+
13
+ ## 36.6.7
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies []:
18
+ - victory-core@36.6.7
19
+ - victory-shared-events@36.6.7
20
+
3
21
  ## 36.6.6
4
22
 
5
23
  ### Patch Changes
@@ -14,9 +14,9 @@ export interface VictoryStackProps extends VictoryCommonProps, VictoryLabelableP
14
14
  style?: VictoryStyleInterface;
15
15
  xOffset?: number;
16
16
  }
17
- export declare const VictoryStack: React.NamedExoticComponent<any> & {
17
+ export declare const VictoryStack: React.NamedExoticComponent<VictoryStackProps> & {
18
18
  readonly type: {
19
- (initialProps: any): JSX.Element;
19
+ (initialProps: VictoryStackProps): JSX.Element;
20
20
  propTypes: {
21
21
  bins: PropTypes.Requireable<number | (number | Date | null | undefined)[]>;
22
22
  categories: PropTypes.Requireable<(string | null | undefined)[] | PropTypes.InferProps<{
@@ -14,9 +14,9 @@ export interface VictoryStackProps extends VictoryCommonProps, VictoryLabelableP
14
14
  style?: VictoryStyleInterface;
15
15
  xOffset?: number;
16
16
  }
17
- export declare const VictoryStack: React.NamedExoticComponent<any> & {
17
+ export declare const VictoryStack: React.NamedExoticComponent<VictoryStackProps> & {
18
18
  readonly type: {
19
- (initialProps: any): JSX.Element;
19
+ (initialProps: VictoryStackProps): JSX.Element;
20
20
  propTypes: {
21
21
  bins: PropTypes.Requireable<number | (number | Date | null | undefined)[]>;
22
22
  categories: PropTypes.Requireable<(string | null | undefined)[] | PropTypes.InferProps<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-stack",
3
- "version": "36.6.6",
3
+ "version": "36.6.8",
4
4
  "description": "Stack Layout Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -23,8 +23,8 @@
23
23
  "lodash": "^4.17.19",
24
24
  "prop-types": "^15.8.1",
25
25
  "react-fast-compare": "^3.2.0",
26
- "victory-core": "^36.6.6",
27
- "victory-shared-events": "^36.6.6"
26
+ "victory-core": "^36.6.8",
27
+ "victory-shared-events": "^36.6.8"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": ">=16.6.0"
@@ -52,7 +52,7 @@ export interface VictoryStackProps
52
52
  xOffset?: number;
53
53
  }
54
54
 
55
- const VictoryStackBase = (initialProps) => {
55
+ const VictoryStackBase = (initialProps: VictoryStackProps) => {
56
56
  // eslint-disable-next-line no-use-before-define
57
57
  const { role } = VictoryStack;
58
58
  const { setAnimationState, getAnimationProps, getProps } =