victory-create-container 36.5.0 → 36.5.3
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-create-container.js +201 -119
- package/dist/victory-create-container.min.js +1 -1
- package/es/create-container.js +2 -1
- package/es/index.d.ts +8 -1
- package/es/index.js +2 -1
- package/lib/create-container.js +2 -1
- package/lib/index.d.ts +8 -1
- package/lib/index.js +2 -1
- package/package.json +8 -8
- package/src/create-container.js +12 -12
- package/src/index.d.ts +8 -1
- package/src/index.js +1 -1
package/es/create-container.js
CHANGED
|
@@ -208,4 +208,5 @@ var createContainer = makeCreateContainerFunction({
|
|
|
208
208
|
cursor: [cursorContainerMixin],
|
|
209
209
|
brush: [brushContainerMixin]
|
|
210
210
|
}, VictoryContainer);
|
|
211
|
-
export { createContainer, makeCreateContainerFunction, combineContainerMixins };
|
|
211
|
+
export { createContainer, makeCreateContainerFunction, combineContainerMixins };
|
|
212
|
+
//# sourceMappingURL=create-container.js.map
|
package/es/index.d.ts
CHANGED
|
@@ -8,5 +8,12 @@ export type ContainerType =
|
|
|
8
8
|
| "zoom";
|
|
9
9
|
export function createContainer<V, W>(
|
|
10
10
|
c1: ContainerType,
|
|
11
|
-
c2: ContainerType
|
|
11
|
+
c2: ContainerType,
|
|
12
12
|
): React.ComponentType<V & W>;
|
|
13
|
+
|
|
14
|
+
export function combineContainerMixins(mixins, Container): any;
|
|
15
|
+
|
|
16
|
+
export const makeCreateContainerFunction: (
|
|
17
|
+
mixinMap,
|
|
18
|
+
Container,
|
|
19
|
+
) => (behaviorA, behaviorB) => any;
|
package/es/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { combineContainerMixins, makeCreateContainerFunction, createContainer } from "./create-container";
|
|
1
|
+
export { combineContainerMixins, makeCreateContainerFunction, createContainer } from "./create-container";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
package/lib/create-container.js
CHANGED
|
@@ -226,4 +226,5 @@ var createContainer = makeCreateContainerFunction({
|
|
|
226
226
|
cursor: [_victoryCursorContainer.cursorContainerMixin],
|
|
227
227
|
brush: [_victoryBrushContainer.brushContainerMixin]
|
|
228
228
|
}, _victoryCore.VictoryContainer);
|
|
229
|
-
exports.createContainer = createContainer;
|
|
229
|
+
exports.createContainer = createContainer;
|
|
230
|
+
//# sourceMappingURL=create-container.js.map
|
package/lib/index.d.ts
CHANGED
|
@@ -8,5 +8,12 @@ export type ContainerType =
|
|
|
8
8
|
| "zoom";
|
|
9
9
|
export function createContainer<V, W>(
|
|
10
10
|
c1: ContainerType,
|
|
11
|
-
c2: ContainerType
|
|
11
|
+
c2: ContainerType,
|
|
12
12
|
): React.ComponentType<V & W>;
|
|
13
|
+
|
|
14
|
+
export function combineContainerMixins(mixins, Container): any;
|
|
15
|
+
|
|
16
|
+
export const makeCreateContainerFunction: (
|
|
17
|
+
mixinMap,
|
|
18
|
+
Container,
|
|
19
|
+
) => (behaviorA, behaviorB) => any;
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-create-container",
|
|
3
|
-
"version": "36.5.
|
|
3
|
+
"version": "36.5.3",
|
|
4
4
|
"description": "Container Helper for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"lodash": "^4.17.19",
|
|
23
|
-
"victory-brush-container": "^36.5.
|
|
24
|
-
"victory-core": "^36.5.
|
|
25
|
-
"victory-cursor-container": "^36.5.
|
|
26
|
-
"victory-selection-container": "^36.5.
|
|
27
|
-
"victory-voronoi-container": "^36.5.
|
|
28
|
-
"victory-zoom-container": "^36.5.
|
|
23
|
+
"victory-brush-container": "^36.5.3",
|
|
24
|
+
"victory-core": "^36.5.3",
|
|
25
|
+
"victory-cursor-container": "^36.5.3",
|
|
26
|
+
"victory-selection-container": "^36.5.3",
|
|
27
|
+
"victory-voronoi-container": "^36.5.3",
|
|
28
|
+
"victory-zoom-container": "^36.5.3"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": ">=16.6.0"
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"version": "yarn run nps build-libs && nps build-dists"
|
|
35
35
|
},
|
|
36
36
|
"sideEffects": false,
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "55338af3c57eacca5956e53c08a58e47ba41d01e"
|
|
38
38
|
}
|
package/src/create-container.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
flow,
|
|
7
7
|
isEmpty,
|
|
8
8
|
isFunction,
|
|
9
|
-
keys
|
|
9
|
+
keys,
|
|
10
10
|
} from "lodash";
|
|
11
11
|
import { VictoryContainer, Log } from "victory-core";
|
|
12
12
|
import { voronoiContainerMixin } from "victory-voronoi-container";
|
|
@@ -59,8 +59,8 @@ const combineDefaultEvents = (defaultEvents) => {
|
|
|
59
59
|
: {
|
|
60
60
|
target,
|
|
61
61
|
eventHandlers: combineEventHandlers(
|
|
62
|
-
eventsArray.map((event) => event.eventHandlers)
|
|
63
|
-
)
|
|
62
|
+
eventsArray.map((event) => event.eventHandlers),
|
|
63
|
+
),
|
|
64
64
|
// note: does not currently handle eventKey or childName
|
|
65
65
|
};
|
|
66
66
|
});
|
|
@@ -87,12 +87,12 @@ const combineContainerMixins = (mixins, Container) => {
|
|
|
87
87
|
|
|
88
88
|
static propTypes = Classes.reduce(
|
|
89
89
|
(propTypes, Class) => ({ ...propTypes, ...Class.propTypes }),
|
|
90
|
-
{}
|
|
90
|
+
{},
|
|
91
91
|
);
|
|
92
92
|
|
|
93
93
|
static defaultProps = Classes.reduce(
|
|
94
94
|
(defaultProps, Class) => ({ ...defaultProps, ...Class.defaultProps }),
|
|
95
|
-
{}
|
|
95
|
+
{},
|
|
96
96
|
);
|
|
97
97
|
|
|
98
98
|
static defaultEvents = (props) => {
|
|
@@ -102,14 +102,14 @@ const combineContainerMixins = (mixins, Container) => {
|
|
|
102
102
|
? Class.defaultEvents(props)
|
|
103
103
|
: Class.defaultEvents;
|
|
104
104
|
return [...defaultEvents, ...events];
|
|
105
|
-
}, [])
|
|
105
|
+
}, []),
|
|
106
106
|
);
|
|
107
107
|
};
|
|
108
108
|
|
|
109
109
|
getChildren(props) {
|
|
110
110
|
return instances.reduce(
|
|
111
111
|
(children, instance) => instance.getChildren({ ...props, children }),
|
|
112
|
-
props.children
|
|
112
|
+
props.children,
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
115
|
};
|
|
@@ -119,8 +119,8 @@ const checkBehaviorName = (behavior, behaviors) => {
|
|
|
119
119
|
if (behavior && !includes(behaviors, behavior)) {
|
|
120
120
|
Log.warn(
|
|
121
121
|
`"${behavior}" is not a valid behavior. Choose from [${behaviors.join(
|
|
122
|
-
", "
|
|
123
|
-
)}]
|
|
122
|
+
", ",
|
|
123
|
+
)}].`,
|
|
124
124
|
);
|
|
125
125
|
}
|
|
126
126
|
};
|
|
@@ -135,7 +135,7 @@ const makeCreateContainerFunction =
|
|
|
135
135
|
|
|
136
136
|
if (invalid.length) {
|
|
137
137
|
Log.warn(
|
|
138
|
-
"too many arguments given to createContainer (maximum accepted: 2)."
|
|
138
|
+
"too many arguments given to createContainer (maximum accepted: 2).",
|
|
139
139
|
);
|
|
140
140
|
}
|
|
141
141
|
|
|
@@ -155,9 +155,9 @@ const createContainer = makeCreateContainerFunction(
|
|
|
155
155
|
voronoi: [voronoiContainerMixin],
|
|
156
156
|
selection: [selectionContainerMixin],
|
|
157
157
|
cursor: [cursorContainerMixin],
|
|
158
|
-
brush: [brushContainerMixin]
|
|
158
|
+
brush: [brushContainerMixin],
|
|
159
159
|
},
|
|
160
|
-
VictoryContainer
|
|
160
|
+
VictoryContainer,
|
|
161
161
|
);
|
|
162
162
|
|
|
163
163
|
export { createContainer, makeCreateContainerFunction, combineContainerMixins };
|
package/src/index.d.ts
CHANGED
|
@@ -8,5 +8,12 @@ export type ContainerType =
|
|
|
8
8
|
| "zoom";
|
|
9
9
|
export function createContainer<V, W>(
|
|
10
10
|
c1: ContainerType,
|
|
11
|
-
c2: ContainerType
|
|
11
|
+
c2: ContainerType,
|
|
12
12
|
): React.ComponentType<V & W>;
|
|
13
|
+
|
|
14
|
+
export function combineContainerMixins(mixins, Container): any;
|
|
15
|
+
|
|
16
|
+
export const makeCreateContainerFunction: (
|
|
17
|
+
mixinMap,
|
|
18
|
+
Container,
|
|
19
|
+
) => (behaviorA, behaviorB) => any;
|
package/src/index.js
CHANGED