pds-dev-kit-web-test 2.5.100 → 2.5.102
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.
@@ -212,12 +212,26 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
212
212
|
};
|
213
213
|
var getCollisionGroupIds = function (cdId1) {
|
214
214
|
var layoutItem = (0, renderHelpers_1.getLayoutItem)(layouts[layoutByDevice], cdId1.toString());
|
215
|
-
if (!layoutItem) {
|
215
|
+
if (!layoutItem || !selectedBlockId) {
|
216
216
|
return [];
|
217
217
|
}
|
218
218
|
var allCollisions = (0, renderHelpers_1.getAllCollisions)(layouts[layoutByDevice], layoutItem);
|
219
|
-
var
|
220
|
-
|
219
|
+
var allCollisionsCbIds = allCollisions.map(function (each) { return Number(each.i); });
|
220
|
+
// const workdir = getBlockWorkDirPath(newblock, selectedBlockId);
|
221
|
+
// if (!workdir) {
|
222
|
+
// return [];
|
223
|
+
// }
|
224
|
+
var workDirChildrenBlockIds = (0, group_1.findDirectChildrenBlockIds)(newblock, selectedBlockId);
|
225
|
+
var collisions = workDirChildrenBlockIds.filter(function (each) {
|
226
|
+
var cbId = (0, group_1.formatBlockIdToCbId)(each);
|
227
|
+
var allCollisions = (0, group_1.findAllChildrenCbIds)(newblock, each);
|
228
|
+
if (cbId !== null && allCollisionsCbIds.includes(cbId)) {
|
229
|
+
return true;
|
230
|
+
}
|
231
|
+
var hasCollision = allCollisions.some(function (each) { return allCollisionsCbIds.includes(each); });
|
232
|
+
return hasCollision;
|
233
|
+
});
|
234
|
+
return __spreadArray(__spreadArray([], collisions, true), [(0, group_1.formatCbIdToBlockId)(cdId1)], false);
|
221
235
|
};
|
222
236
|
var _m = (0, util_1.parseCustomSectionPlacement)({
|
223
237
|
isMobile: isMobile,
|