victory-stack 36.9.1 → 36.9.2-next.1

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.
@@ -1,53 +1,53 @@
1
- export declare function getCalculatedProps(initialProps: any, childComponents: any): {
2
- datasets: any;
3
- categories: any;
4
- range: any;
5
- domain: {
6
- x: any;
7
- y: any;
8
- };
9
- horizontal: any;
10
- scale: {
11
- x: import("victory-core").D3Scale<any>;
12
- y: import("victory-core").D3Scale<any>;
13
- };
14
- style: any;
15
- colorScale: any;
16
- role: string;
17
- };
18
- export declare function useMemoizedProps(initialProps: any): {
19
- datasets: any;
20
- categories: any;
21
- range: any;
22
- domain: {
23
- x: any;
24
- y: any;
25
- };
26
- horizontal: any;
27
- scale: {
28
- x: import("victory-core").D3Scale<any>;
29
- y: import("victory-core").D3Scale<any>;
30
- };
31
- style: any;
32
- colorScale: any;
33
- role: string;
34
- };
35
- export declare function getChildProps(props: any, calculatedProps: any): {
36
- height: any;
37
- width: any;
38
- padding: {
39
- top: any;
40
- bottom: any;
41
- left: any;
42
- right: any;
43
- };
44
- standalone: boolean;
45
- theme: any;
46
- categories: any;
47
- domain: any;
48
- range: any;
49
- scale: any;
50
- horizontal: any;
51
- };
52
- export declare function getChildren(initialProps: any, childComponents: any, calculatedProps: any): any;
1
+ export declare function getCalculatedProps(initialProps: any, childComponents: any): {
2
+ datasets: any;
3
+ categories: any;
4
+ range: any;
5
+ domain: {
6
+ x: any;
7
+ y: any;
8
+ };
9
+ horizontal: any;
10
+ scale: {
11
+ x: import("victory-core").D3Scale<any>;
12
+ y: import("victory-core").D3Scale<any>;
13
+ };
14
+ style: any;
15
+ colorScale: any;
16
+ role: string;
17
+ };
18
+ export declare function useMemoizedProps(initialProps: any): {
19
+ datasets: any;
20
+ categories: any;
21
+ range: any;
22
+ domain: {
23
+ x: any;
24
+ y: any;
25
+ };
26
+ horizontal: any;
27
+ scale: {
28
+ x: import("victory-core").D3Scale<any>;
29
+ y: import("victory-core").D3Scale<any>;
30
+ };
31
+ style: any;
32
+ colorScale: any;
33
+ role: string;
34
+ };
35
+ export declare function getChildProps(props: any, calculatedProps: any): {
36
+ height: any;
37
+ width: any;
38
+ padding: {
39
+ top: any;
40
+ bottom: any;
41
+ left: any;
42
+ right: any;
43
+ };
44
+ standalone: boolean;
45
+ theme: any;
46
+ categories: any;
47
+ domain: any;
48
+ range: any;
49
+ scale: any;
50
+ horizontal: any;
51
+ };
52
+ export declare function getChildren(initialProps: any, childComponents: any, calculatedProps: any): any;
53
53
  //# sourceMappingURL=helper-methods.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import _orderBy from "lodash/orderBy";
2
- import _keys from "lodash/keys";
3
2
 
4
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
4
 
@@ -36,8 +35,7 @@ function fillData(props, datasets) {
36
35
  });
37
36
  return prev;
38
37
  }, {});
39
-
40
- var xKeys = _keys(xMap).map(function (k) {
38
+ var xKeys = Object.keys(xMap).map(function (k) {
41
39
  return Number(k);
42
40
  });
43
41
 
package/es/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./victory-stack";
1
+ export * from "./victory-stack";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,19 +1,19 @@
1
- import React from "react";
2
- import { CategoryPropType, ColorScalePropType, DomainPropType, EventPropTypeInterface, StringOrNumberOrCallback, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface, VictoryComponentConfiguration } from "victory-core";
3
- export declare type VictoryStackTTargetType = "data" | "labels" | "parent";
4
- export interface VictoryStackProps extends VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps {
5
- bins?: number | number[] | Date[];
6
- categories?: CategoryPropType;
7
- children?: React.ReactNode | React.ReactNode[];
8
- colorScale?: ColorScalePropType;
9
- domain?: DomainPropType;
10
- events?: EventPropTypeInterface<VictoryStackTTargetType, StringOrNumberOrCallback>[];
11
- eventKey?: StringOrNumberOrCallback;
12
- fillInMissingData?: boolean;
13
- style?: VictoryStyleInterface;
14
- xOffset?: number;
15
- }
16
- export declare const VictoryStack: React.NamedExoticComponent<VictoryStackProps> & {
17
- readonly type: (initialProps: VictoryStackProps) => JSX.Element;
18
- } & VictoryComponentConfiguration<VictoryStackProps>;
1
+ import React from "react";
2
+ import { CategoryPropType, ColorScalePropType, DomainPropType, EventPropTypeInterface, StringOrNumberOrCallback, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface, VictoryComponentConfiguration } from "victory-core";
3
+ export declare type VictoryStackTTargetType = "data" | "labels" | "parent";
4
+ export interface VictoryStackProps extends VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps {
5
+ bins?: number | number[] | Date[];
6
+ categories?: CategoryPropType;
7
+ children?: React.ReactNode | React.ReactNode[];
8
+ colorScale?: ColorScalePropType;
9
+ domain?: DomainPropType;
10
+ events?: EventPropTypeInterface<VictoryStackTTargetType, StringOrNumberOrCallback>[];
11
+ eventKey?: StringOrNumberOrCallback;
12
+ fillInMissingData?: boolean;
13
+ style?: VictoryStyleInterface;
14
+ xOffset?: number;
15
+ }
16
+ export declare const VictoryStack: React.NamedExoticComponent<VictoryStackProps> & {
17
+ readonly type: (initialProps: VictoryStackProps) => JSX.Element;
18
+ } & VictoryComponentConfiguration<VictoryStackProps>;
19
19
  //# sourceMappingURL=victory-stack.d.ts.map
@@ -1,53 +1,53 @@
1
- export declare function getCalculatedProps(initialProps: any, childComponents: any): {
2
- datasets: any;
3
- categories: any;
4
- range: any;
5
- domain: {
6
- x: any;
7
- y: any;
8
- };
9
- horizontal: any;
10
- scale: {
11
- x: import("victory-core").D3Scale<any>;
12
- y: import("victory-core").D3Scale<any>;
13
- };
14
- style: any;
15
- colorScale: any;
16
- role: string;
17
- };
18
- export declare function useMemoizedProps(initialProps: any): {
19
- datasets: any;
20
- categories: any;
21
- range: any;
22
- domain: {
23
- x: any;
24
- y: any;
25
- };
26
- horizontal: any;
27
- scale: {
28
- x: import("victory-core").D3Scale<any>;
29
- y: import("victory-core").D3Scale<any>;
30
- };
31
- style: any;
32
- colorScale: any;
33
- role: string;
34
- };
35
- export declare function getChildProps(props: any, calculatedProps: any): {
36
- height: any;
37
- width: any;
38
- padding: {
39
- top: any;
40
- bottom: any;
41
- left: any;
42
- right: any;
43
- };
44
- standalone: boolean;
45
- theme: any;
46
- categories: any;
47
- domain: any;
48
- range: any;
49
- scale: any;
50
- horizontal: any;
51
- };
52
- export declare function getChildren(initialProps: any, childComponents: any, calculatedProps: any): any;
1
+ export declare function getCalculatedProps(initialProps: any, childComponents: any): {
2
+ datasets: any;
3
+ categories: any;
4
+ range: any;
5
+ domain: {
6
+ x: any;
7
+ y: any;
8
+ };
9
+ horizontal: any;
10
+ scale: {
11
+ x: import("victory-core").D3Scale<any>;
12
+ y: import("victory-core").D3Scale<any>;
13
+ };
14
+ style: any;
15
+ colorScale: any;
16
+ role: string;
17
+ };
18
+ export declare function useMemoizedProps(initialProps: any): {
19
+ datasets: any;
20
+ categories: any;
21
+ range: any;
22
+ domain: {
23
+ x: any;
24
+ y: any;
25
+ };
26
+ horizontal: any;
27
+ scale: {
28
+ x: import("victory-core").D3Scale<any>;
29
+ y: import("victory-core").D3Scale<any>;
30
+ };
31
+ style: any;
32
+ colorScale: any;
33
+ role: string;
34
+ };
35
+ export declare function getChildProps(props: any, calculatedProps: any): {
36
+ height: any;
37
+ width: any;
38
+ padding: {
39
+ top: any;
40
+ bottom: any;
41
+ left: any;
42
+ right: any;
43
+ };
44
+ standalone: boolean;
45
+ theme: any;
46
+ categories: any;
47
+ domain: any;
48
+ range: any;
49
+ scale: any;
50
+ horizontal: any;
51
+ };
52
+ export declare function getChildren(initialProps: any, childComponents: any, calculatedProps: any): any;
53
53
  //# sourceMappingURL=helper-methods.d.ts.map
@@ -10,8 +10,6 @@ exports.useMemoizedProps = useMemoizedProps;
10
10
 
11
11
  var _orderBy2 = _interopRequireDefault(require("lodash/orderBy"));
12
12
 
13
- var _keys2 = _interopRequireDefault(require("lodash/keys"));
14
-
15
13
  var _react = _interopRequireDefault(require("react"));
16
14
 
17
15
  var _victoryCore = require("victory-core");
@@ -52,7 +50,7 @@ function fillData(props, datasets) {
52
50
  });
53
51
  return prev;
54
52
  }, {});
55
- var xKeys = (0, _keys2.default)(xMap).map(function (k) {
53
+ var xKeys = Object.keys(xMap).map(function (k) {
56
54
  return Number(k);
57
55
  });
58
56
  var xArr = (0, _orderBy2.default)(xKeys);
package/lib/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./victory-stack";
1
+ export * from "./victory-stack";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,19 +1,19 @@
1
- import React from "react";
2
- import { CategoryPropType, ColorScalePropType, DomainPropType, EventPropTypeInterface, StringOrNumberOrCallback, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface, VictoryComponentConfiguration } from "victory-core";
3
- export declare type VictoryStackTTargetType = "data" | "labels" | "parent";
4
- export interface VictoryStackProps extends VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps {
5
- bins?: number | number[] | Date[];
6
- categories?: CategoryPropType;
7
- children?: React.ReactNode | React.ReactNode[];
8
- colorScale?: ColorScalePropType;
9
- domain?: DomainPropType;
10
- events?: EventPropTypeInterface<VictoryStackTTargetType, StringOrNumberOrCallback>[];
11
- eventKey?: StringOrNumberOrCallback;
12
- fillInMissingData?: boolean;
13
- style?: VictoryStyleInterface;
14
- xOffset?: number;
15
- }
16
- export declare const VictoryStack: React.NamedExoticComponent<VictoryStackProps> & {
17
- readonly type: (initialProps: VictoryStackProps) => JSX.Element;
18
- } & VictoryComponentConfiguration<VictoryStackProps>;
1
+ import React from "react";
2
+ import { CategoryPropType, ColorScalePropType, DomainPropType, EventPropTypeInterface, StringOrNumberOrCallback, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface, VictoryComponentConfiguration } from "victory-core";
3
+ export declare type VictoryStackTTargetType = "data" | "labels" | "parent";
4
+ export interface VictoryStackProps extends VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps {
5
+ bins?: number | number[] | Date[];
6
+ categories?: CategoryPropType;
7
+ children?: React.ReactNode | React.ReactNode[];
8
+ colorScale?: ColorScalePropType;
9
+ domain?: DomainPropType;
10
+ events?: EventPropTypeInterface<VictoryStackTTargetType, StringOrNumberOrCallback>[];
11
+ eventKey?: StringOrNumberOrCallback;
12
+ fillInMissingData?: boolean;
13
+ style?: VictoryStyleInterface;
14
+ xOffset?: number;
15
+ }
16
+ export declare const VictoryStack: React.NamedExoticComponent<VictoryStackProps> & {
17
+ readonly type: (initialProps: VictoryStackProps) => JSX.Element;
18
+ } & VictoryComponentConfiguration<VictoryStackProps>;
19
19
  //# sourceMappingURL=victory-stack.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-stack",
3
- "version": "36.9.1",
3
+ "version": "36.9.2-next.1",
4
4
  "description": "Stack Layout Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -22,19 +22,15 @@
22
22
  "dependencies": {
23
23
  "lodash": "^4.17.19",
24
24
  "react-fast-compare": "^3.2.0",
25
- "victory-core": "^36.9.1",
26
- "victory-shared-events": "^36.9.1"
25
+ "victory-core": "^36.9.2-next.1",
26
+ "victory-shared-events": "^36.9.2-next.1"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": ">=16.6.0"
30
30
  },
31
31
  "devDependencies": {
32
- "victory-bar": "*",
33
- "victory-histogram": "*",
34
- "victory-stack": "*"
35
- },
36
- "publishConfig": {
37
- "provenance": true
32
+ "victory-bar": "36.9.2-next.1",
33
+ "victory-histogram": "36.9.2-next.1"
38
34
  },
39
35
  "wireit": {
40
36
  "### THESE WIREIT CONFIGS ARE GENERATED ####": {},
@@ -262,7 +258,7 @@
262
258
  ]
263
259
  },
264
260
  "jest": {
265
- "command": "nps jest:pkg",
261
+ "command": "jest --passWithNoTests",
266
262
  "files": [
267
263
  "src/**/*.test.*",
268
264
  "../../.babelrc.js",
@@ -271,11 +267,12 @@
271
267
  ],
272
268
  "output": [],
273
269
  "dependencies": [
274
- "build:lib:cjs",
275
- "../victory-bar:build:lib:cjs",
276
- "../victory-histogram:build:lib:cjs",
277
- "../victory-vendor:build:lib:cjs",
278
- "../victory-voronoi:build:lib:cjs"
270
+ "../victory-core:build",
271
+ "../victory-shared-events:build",
272
+ "../victory-bar:build",
273
+ "../victory-histogram:build",
274
+ "../victory-vendor:build",
275
+ "../victory-voronoi:build"
279
276
  ],
280
277
  "packageLocks": [
281
278
  "pnpm-lock.yaml"
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable no-use-before-define */
2
- import { keys, orderBy } from "lodash";
2
+ import { orderBy } from "lodash";
3
3
  import React from "react";
4
4
  import { Helpers, Scale, Wrapper } from "victory-core";
5
5
  import isEqual from "react-fast-compare";
@@ -19,7 +19,7 @@ function fillData(props, datasets) {
19
19
  });
20
20
  return prev;
21
21
  }, {});
22
- const xKeys = keys(xMap).map((k) => Number(k));
22
+ const xKeys = Object.keys(xMap).map((k) => Number(k));
23
23
  const xArr = orderBy(xKeys);
24
24
 
25
25
  return datasets.map((dataset) => {