victory-create-container 37.0.0 → 37.0.1-next.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/CHANGELOG.md +13 -0
- package/dist/victory-create-container.js +14 -14
- package/dist/victory-create-container.min.js +1 -1
- package/es/create-container.d.ts +46 -46
- package/es/create-container.js +2 -2
- package/es/index.d.ts +1 -1
- package/lib/create-container.d.ts +46 -46
- package/lib/create-container.js +2 -2
- package/lib/index.d.ts +1 -1
- package/package.json +7 -10
- package/src/create-container.ts +2 -2
package/es/create-container.d.ts
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare type ContainerType = "brush" | "cursor" | "selection" | "voronoi" | "zoom";
|
|
3
|
-
declare type MixinFunction = (...args: any[]) => any;
|
|
4
|
-
export declare const combineContainerMixins: (mixins: MixinFunction[], Container: React.ComponentType<any>) => {
|
|
5
|
-
new (): {
|
|
6
|
-
[x: string]: any;
|
|
7
|
-
getChildren(props: any): any;
|
|
8
|
-
};
|
|
9
|
-
[x: string]: any;
|
|
10
|
-
displayName: string;
|
|
11
|
-
propTypes: any;
|
|
12
|
-
defaultProps: any;
|
|
13
|
-
defaultEvents
|
|
14
|
-
target: string;
|
|
15
|
-
eventHandlers: any;
|
|
16
|
-
} | null)[];
|
|
17
|
-
};
|
|
18
|
-
export declare const makeCreateContainerFunction: (mixinMap: Record<ContainerType, MixinFunction[]>, Container: React.ComponentType<any>) => (behaviorA: ContainerType, behaviorB: ContainerType, ...invalid: ContainerType[]) => React.ComponentType<any> | {
|
|
19
|
-
new (): {
|
|
20
|
-
[x: string]: any;
|
|
21
|
-
getChildren(props: any): any;
|
|
22
|
-
};
|
|
23
|
-
[x: string]: any;
|
|
24
|
-
displayName: string;
|
|
25
|
-
propTypes: any;
|
|
26
|
-
defaultProps: any;
|
|
27
|
-
defaultEvents
|
|
28
|
-
target: string;
|
|
29
|
-
eventHandlers: any;
|
|
30
|
-
} | null)[];
|
|
31
|
-
};
|
|
32
|
-
export declare const createContainer: (behaviorA: ContainerType, behaviorB: ContainerType, ...invalid: ContainerType[]) => React.ComponentType<any> | {
|
|
33
|
-
new (): {
|
|
34
|
-
[x: string]: any;
|
|
35
|
-
getChildren(props: any): any;
|
|
36
|
-
};
|
|
37
|
-
[x: string]: any;
|
|
38
|
-
displayName: string;
|
|
39
|
-
propTypes: any;
|
|
40
|
-
defaultProps: any;
|
|
41
|
-
defaultEvents
|
|
42
|
-
target: string;
|
|
43
|
-
eventHandlers: any;
|
|
44
|
-
} | null)[];
|
|
45
|
-
};
|
|
46
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type ContainerType = "brush" | "cursor" | "selection" | "voronoi" | "zoom";
|
|
3
|
+
declare type MixinFunction = (...args: any[]) => any;
|
|
4
|
+
export declare const combineContainerMixins: (mixins: MixinFunction[], Container: React.ComponentType<any>) => {
|
|
5
|
+
new (): {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
getChildren(props: any): any;
|
|
8
|
+
};
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
displayName: string;
|
|
11
|
+
propTypes: any;
|
|
12
|
+
defaultProps: any;
|
|
13
|
+
defaultEvents(props: any): ({
|
|
14
|
+
target: string;
|
|
15
|
+
eventHandlers: any;
|
|
16
|
+
} | null)[];
|
|
17
|
+
};
|
|
18
|
+
export declare const makeCreateContainerFunction: (mixinMap: Record<ContainerType, MixinFunction[]>, Container: React.ComponentType<any>) => (behaviorA: ContainerType, behaviorB: ContainerType, ...invalid: ContainerType[]) => React.ComponentType<any> | {
|
|
19
|
+
new (): {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
getChildren(props: any): any;
|
|
22
|
+
};
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
displayName: string;
|
|
25
|
+
propTypes: any;
|
|
26
|
+
defaultProps: any;
|
|
27
|
+
defaultEvents(props: any): ({
|
|
28
|
+
target: string;
|
|
29
|
+
eventHandlers: any;
|
|
30
|
+
} | null)[];
|
|
31
|
+
};
|
|
32
|
+
export declare const createContainer: (behaviorA: ContainerType, behaviorB: ContainerType, ...invalid: ContainerType[]) => React.ComponentType<any> | {
|
|
33
|
+
new (): {
|
|
34
|
+
[x: string]: any;
|
|
35
|
+
getChildren(props: any): any;
|
|
36
|
+
};
|
|
37
|
+
[x: string]: any;
|
|
38
|
+
displayName: string;
|
|
39
|
+
propTypes: any;
|
|
40
|
+
defaultProps: any;
|
|
41
|
+
defaultEvents(props: any): ({
|
|
42
|
+
target: string;
|
|
43
|
+
eventHandlers: any;
|
|
44
|
+
} | null)[];
|
|
45
|
+
};
|
|
46
|
+
export {};
|
|
47
47
|
//# sourceMappingURL=create-container.d.ts.map
|
package/es/create-container.js
CHANGED
|
@@ -76,12 +76,12 @@ export const combineContainerMixins = (mixins, Container) => {
|
|
|
76
76
|
...defaultProps,
|
|
77
77
|
...Class.defaultProps
|
|
78
78
|
}), {});
|
|
79
|
-
static defaultEvents
|
|
79
|
+
static defaultEvents(props) {
|
|
80
80
|
return combineDefaultEvents(Classes.reduce((defaultEvents, Class) => {
|
|
81
81
|
const events = Helpers.isFunction(Class.defaultEvents) ? Class.defaultEvents(props) : Class.defaultEvents;
|
|
82
82
|
return [...defaultEvents, ...events];
|
|
83
83
|
}, []));
|
|
84
|
-
}
|
|
84
|
+
}
|
|
85
85
|
getChildren(props) {
|
|
86
86
|
return instances.reduce((children, instance) => instance.getChildren({
|
|
87
87
|
...props,
|
package/es/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./create-container";
|
|
1
|
+
export * from "./create-container";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare type ContainerType = "brush" | "cursor" | "selection" | "voronoi" | "zoom";
|
|
3
|
-
declare type MixinFunction = (...args: any[]) => any;
|
|
4
|
-
export declare const combineContainerMixins: (mixins: MixinFunction[], Container: React.ComponentType<any>) => {
|
|
5
|
-
new (): {
|
|
6
|
-
[x: string]: any;
|
|
7
|
-
getChildren(props: any): any;
|
|
8
|
-
};
|
|
9
|
-
[x: string]: any;
|
|
10
|
-
displayName: string;
|
|
11
|
-
propTypes: any;
|
|
12
|
-
defaultProps: any;
|
|
13
|
-
defaultEvents
|
|
14
|
-
target: string;
|
|
15
|
-
eventHandlers: any;
|
|
16
|
-
} | null)[];
|
|
17
|
-
};
|
|
18
|
-
export declare const makeCreateContainerFunction: (mixinMap: Record<ContainerType, MixinFunction[]>, Container: React.ComponentType<any>) => (behaviorA: ContainerType, behaviorB: ContainerType, ...invalid: ContainerType[]) => React.ComponentType<any> | {
|
|
19
|
-
new (): {
|
|
20
|
-
[x: string]: any;
|
|
21
|
-
getChildren(props: any): any;
|
|
22
|
-
};
|
|
23
|
-
[x: string]: any;
|
|
24
|
-
displayName: string;
|
|
25
|
-
propTypes: any;
|
|
26
|
-
defaultProps: any;
|
|
27
|
-
defaultEvents
|
|
28
|
-
target: string;
|
|
29
|
-
eventHandlers: any;
|
|
30
|
-
} | null)[];
|
|
31
|
-
};
|
|
32
|
-
export declare const createContainer: (behaviorA: ContainerType, behaviorB: ContainerType, ...invalid: ContainerType[]) => React.ComponentType<any> | {
|
|
33
|
-
new (): {
|
|
34
|
-
[x: string]: any;
|
|
35
|
-
getChildren(props: any): any;
|
|
36
|
-
};
|
|
37
|
-
[x: string]: any;
|
|
38
|
-
displayName: string;
|
|
39
|
-
propTypes: any;
|
|
40
|
-
defaultProps: any;
|
|
41
|
-
defaultEvents
|
|
42
|
-
target: string;
|
|
43
|
-
eventHandlers: any;
|
|
44
|
-
} | null)[];
|
|
45
|
-
};
|
|
46
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type ContainerType = "brush" | "cursor" | "selection" | "voronoi" | "zoom";
|
|
3
|
+
declare type MixinFunction = (...args: any[]) => any;
|
|
4
|
+
export declare const combineContainerMixins: (mixins: MixinFunction[], Container: React.ComponentType<any>) => {
|
|
5
|
+
new (): {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
getChildren(props: any): any;
|
|
8
|
+
};
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
displayName: string;
|
|
11
|
+
propTypes: any;
|
|
12
|
+
defaultProps: any;
|
|
13
|
+
defaultEvents(props: any): ({
|
|
14
|
+
target: string;
|
|
15
|
+
eventHandlers: any;
|
|
16
|
+
} | null)[];
|
|
17
|
+
};
|
|
18
|
+
export declare const makeCreateContainerFunction: (mixinMap: Record<ContainerType, MixinFunction[]>, Container: React.ComponentType<any>) => (behaviorA: ContainerType, behaviorB: ContainerType, ...invalid: ContainerType[]) => React.ComponentType<any> | {
|
|
19
|
+
new (): {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
getChildren(props: any): any;
|
|
22
|
+
};
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
displayName: string;
|
|
25
|
+
propTypes: any;
|
|
26
|
+
defaultProps: any;
|
|
27
|
+
defaultEvents(props: any): ({
|
|
28
|
+
target: string;
|
|
29
|
+
eventHandlers: any;
|
|
30
|
+
} | null)[];
|
|
31
|
+
};
|
|
32
|
+
export declare const createContainer: (behaviorA: ContainerType, behaviorB: ContainerType, ...invalid: ContainerType[]) => React.ComponentType<any> | {
|
|
33
|
+
new (): {
|
|
34
|
+
[x: string]: any;
|
|
35
|
+
getChildren(props: any): any;
|
|
36
|
+
};
|
|
37
|
+
[x: string]: any;
|
|
38
|
+
displayName: string;
|
|
39
|
+
propTypes: any;
|
|
40
|
+
defaultProps: any;
|
|
41
|
+
defaultEvents(props: any): ({
|
|
42
|
+
target: string;
|
|
43
|
+
eventHandlers: any;
|
|
44
|
+
} | null)[];
|
|
45
|
+
};
|
|
46
|
+
export {};
|
|
47
47
|
//# sourceMappingURL=create-container.d.ts.map
|
package/lib/create-container.js
CHANGED
|
@@ -83,12 +83,12 @@ const combineContainerMixins = (mixins, Container) => {
|
|
|
83
83
|
...defaultProps,
|
|
84
84
|
...Class.defaultProps
|
|
85
85
|
}), {});
|
|
86
|
-
static defaultEvents
|
|
86
|
+
static defaultEvents(props) {
|
|
87
87
|
return combineDefaultEvents(Classes.reduce((defaultEvents, Class) => {
|
|
88
88
|
const events = _victoryCore.Helpers.isFunction(Class.defaultEvents) ? Class.defaultEvents(props) : Class.defaultEvents;
|
|
89
89
|
return [...defaultEvents, ...events];
|
|
90
90
|
}, []));
|
|
91
|
-
}
|
|
91
|
+
}
|
|
92
92
|
getChildren(props) {
|
|
93
93
|
return instances.reduce((children, instance) => instance.getChildren({
|
|
94
94
|
...props,
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./create-container";
|
|
1
|
+
export * from "./create-container";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-create-container",
|
|
3
|
-
"version": "37.0.0",
|
|
3
|
+
"version": "37.0.1-next.0",
|
|
4
4
|
"description": "Container Helper for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -21,19 +21,16 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
|
-
"victory-brush-container": "^37.0.0",
|
|
25
|
-
"victory-core": "^37.0.0",
|
|
26
|
-
"victory-cursor-container": "^37.0.0",
|
|
27
|
-
"victory-selection-container": "^37.0.0",
|
|
28
|
-
"victory-voronoi-container": "^37.0.0",
|
|
29
|
-
"victory-zoom-container": "^37.0.0"
|
|
24
|
+
"victory-brush-container": "^37.0.1-next.0",
|
|
25
|
+
"victory-core": "^37.0.1-next.0",
|
|
26
|
+
"victory-cursor-container": "^37.0.1-next.0",
|
|
27
|
+
"victory-selection-container": "^37.0.1-next.0",
|
|
28
|
+
"victory-voronoi-container": "^37.0.1-next.0",
|
|
29
|
+
"victory-zoom-container": "^37.0.1-next.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": ">=16.6.0"
|
|
33
33
|
},
|
|
34
|
-
"publishConfig": {
|
|
35
|
-
"provenance": true
|
|
36
|
-
},
|
|
37
34
|
"wireit": {
|
|
38
35
|
"### THESE WIREIT CONFIGS ARE GENERATED ####": {},
|
|
39
36
|
"### DO NOT MODIFY THESE MANUALLY ####": {},
|
package/src/create-container.ts
CHANGED
|
@@ -97,7 +97,7 @@ export const combineContainerMixins = (
|
|
|
97
97
|
{},
|
|
98
98
|
);
|
|
99
99
|
|
|
100
|
-
static defaultEvents
|
|
100
|
+
static defaultEvents(props) {
|
|
101
101
|
return combineDefaultEvents(
|
|
102
102
|
Classes.reduce((defaultEvents, Class) => {
|
|
103
103
|
const events = Helpers.isFunction(Class.defaultEvents)
|
|
@@ -106,7 +106,7 @@ export const combineContainerMixins = (
|
|
|
106
106
|
return [...defaultEvents, ...events];
|
|
107
107
|
}, []),
|
|
108
108
|
);
|
|
109
|
-
}
|
|
109
|
+
}
|
|
110
110
|
|
|
111
111
|
getChildren(props) {
|
|
112
112
|
return instances.reduce(
|