victory-core 36.8.3 → 36.8.4
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.
|
@@ -141,9 +141,9 @@ export function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
if (eventReturn.eventKey === "all") {
|
|
144
|
-
return
|
|
144
|
+
return newBaseProps[childName] ? _without(_keys(newBaseProps[childName]), "parent") : _without(_keys(newBaseProps), "parent");
|
|
145
145
|
} else if (eventReturn.eventKey === undefined && eventKey === "parent") {
|
|
146
|
-
return
|
|
146
|
+
return newBaseProps[childName] ? _keys(newBaseProps[childName]) : _keys(newBaseProps);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
return eventReturn.eventKey !== undefined ? eventReturn.eventKey : eventKey;
|
|
@@ -168,7 +168,7 @@ export function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
168
168
|
key: key,
|
|
169
169
|
target: target
|
|
170
170
|
}, "state");
|
|
171
|
-
var mutatedProps = eventReturn.mutation(_assign({}, mutationTargetProps, mutationTargetState),
|
|
171
|
+
var mutatedProps = eventReturn.mutation(_assign({}, mutationTargetProps, mutationTargetState), newBaseProps);
|
|
172
172
|
var childState = baseState[childName] || {};
|
|
173
173
|
|
|
174
174
|
var filterState = function (state) {
|
|
@@ -203,7 +203,7 @@ export function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
203
203
|
}; // returns an entire mutated state for all children
|
|
204
204
|
|
|
205
205
|
|
|
206
|
-
var allChildNames = childNames === "all" ? _without(_keys(
|
|
206
|
+
var allChildNames = childNames === "all" ? _without(_keys(newBaseProps), "parent") : childNames;
|
|
207
207
|
return Array.isArray(allChildNames) ? allChildNames.reduce(function (memo, childName) {
|
|
208
208
|
return _assign(memo, getReturnByChild(childName));
|
|
209
209
|
}, {}) : getReturnByChild(allChildNames);
|
|
@@ -170,9 +170,9 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
if (eventReturn.eventKey === "all") {
|
|
173
|
-
return
|
|
173
|
+
return newBaseProps[childName] ? (0, _without2.default)((0, _keys2.default)(newBaseProps[childName]), "parent") : (0, _without2.default)((0, _keys2.default)(newBaseProps), "parent");
|
|
174
174
|
} else if (eventReturn.eventKey === undefined && eventKey === "parent") {
|
|
175
|
-
return
|
|
175
|
+
return newBaseProps[childName] ? (0, _keys2.default)(newBaseProps[childName]) : (0, _keys2.default)(newBaseProps);
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
return eventReturn.eventKey !== undefined ? eventReturn.eventKey : eventKey;
|
|
@@ -197,7 +197,7 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
197
197
|
key: key,
|
|
198
198
|
target: target
|
|
199
199
|
}, "state");
|
|
200
|
-
var mutatedProps = eventReturn.mutation((0, _assign6.default)({}, mutationTargetProps, mutationTargetState),
|
|
200
|
+
var mutatedProps = eventReturn.mutation((0, _assign6.default)({}, mutationTargetProps, mutationTargetState), newBaseProps);
|
|
201
201
|
var childState = baseState[childName] || {};
|
|
202
202
|
|
|
203
203
|
var filterState = function (state) {
|
|
@@ -232,7 +232,7 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
232
232
|
}; // returns an entire mutated state for all children
|
|
233
233
|
|
|
234
234
|
|
|
235
|
-
var allChildNames = childNames === "all" ? (0, _without2.default)((0, _keys2.default)(
|
|
235
|
+
var allChildNames = childNames === "all" ? (0, _without2.default)((0, _keys2.default)(newBaseProps), "parent") : childNames;
|
|
236
236
|
return Array.isArray(allChildNames) ? allChildNames.reduce(function (memo, childName) {
|
|
237
237
|
return (0, _assign6.default)(memo, getReturnByChild(childName));
|
|
238
238
|
}, {}) : getReturnByChild(allChildNames);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-core",
|
|
3
|
-
"version": "36.8.
|
|
3
|
+
"version": "36.8.4",
|
|
4
4
|
"description": "Victory Core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"lodash": "^4.17.21",
|
|
24
24
|
"prop-types": "^15.8.1",
|
|
25
25
|
"react-fast-compare": "^3.2.0",
|
|
26
|
-
"victory-vendor": "^36.8.
|
|
26
|
+
"victory-vendor": "^36.8.4"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"react": ">=16.6.0"
|
|
@@ -165,13 +165,13 @@ export function getScopedEvents(
|
|
|
165
165
|
return "parent";
|
|
166
166
|
}
|
|
167
167
|
if (eventReturn.eventKey === "all") {
|
|
168
|
-
return
|
|
169
|
-
? without(keys(
|
|
170
|
-
: without(keys(
|
|
168
|
+
return newBaseProps[childName]
|
|
169
|
+
? without(keys(newBaseProps[childName]), "parent")
|
|
170
|
+
: without(keys(newBaseProps), "parent");
|
|
171
171
|
} else if (eventReturn.eventKey === undefined && eventKey === "parent") {
|
|
172
|
-
return
|
|
173
|
-
? keys(
|
|
174
|
-
: keys(
|
|
172
|
+
return newBaseProps[childName]
|
|
173
|
+
? keys(newBaseProps[childName])
|
|
174
|
+
: keys(newBaseProps);
|
|
175
175
|
}
|
|
176
176
|
return eventReturn.eventKey !== undefined
|
|
177
177
|
? eventReturn.eventKey
|
|
@@ -195,7 +195,7 @@ export function getScopedEvents(
|
|
|
195
195
|
);
|
|
196
196
|
const mutatedProps = eventReturn.mutation(
|
|
197
197
|
assign({}, mutationTargetProps, mutationTargetState),
|
|
198
|
-
|
|
198
|
+
newBaseProps,
|
|
199
199
|
);
|
|
200
200
|
const childState = baseState[childName] || {};
|
|
201
201
|
|
|
@@ -238,7 +238,7 @@ export function getScopedEvents(
|
|
|
238
238
|
|
|
239
239
|
// returns an entire mutated state for all children
|
|
240
240
|
const allChildNames =
|
|
241
|
-
childNames === "all" ? without(keys(
|
|
241
|
+
childNames === "all" ? without(keys(newBaseProps), "parent") : childNames;
|
|
242
242
|
return Array.isArray(allChildNames)
|
|
243
243
|
? allChildNames.reduce((memo, childName) => {
|
|
244
244
|
return assign(memo, getReturnByChild(childName));
|