publ-echo-test 0.0.383 → 0.0.385
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.
|
@@ -573,7 +573,7 @@ var ReactGridLayout = function (_a) {
|
|
|
573
573
|
var zIndex = editorMode === "EDIT" ? editorZIndex : z;
|
|
574
574
|
// Check if a layout item overlaps any of the activeRows (vertical overlap)
|
|
575
575
|
var isOverlappingActiveRows = function (item) {
|
|
576
|
-
if ((parsedSelectedBlockId === null || parsedSelectedBlockId === void 0 ? void 0 : parsedSelectedBlockId.
|
|
576
|
+
if ((parsedSelectedBlockId === null || parsedSelectedBlockId === void 0 ? void 0 : parsedSelectedBlockId.cbId) === item.i) {
|
|
577
577
|
return false;
|
|
578
578
|
}
|
|
579
579
|
if (!(activeDragItemOrSelectedItem === null || activeDragItemOrSelectedItem === void 0 ? void 0 : activeDragItemOrSelectedItem.heightFitContent)) {
|
|
@@ -765,19 +765,16 @@ var ReactGridLayout = function (_a) {
|
|
|
765
765
|
return __assign({ i: groupblockId }, groupItem);
|
|
766
766
|
}
|
|
767
767
|
var selectedLayoutItem = (parsedSelectedBlockId === null || parsedSelectedBlockId === void 0 ? void 0 : parsedSelectedBlockId.type) === "CB"
|
|
768
|
-
? getLayoutItem(layout, parsedSelectedBlockId.
|
|
768
|
+
? getLayoutItem(layout, parsedSelectedBlockId.cbId)
|
|
769
769
|
: (parsedSelectedBlockId === null || parsedSelectedBlockId === void 0 ? void 0 : parsedSelectedBlockId.type) === "GB"
|
|
770
|
-
? generateGrouplayout(parsedSelectedBlockId.
|
|
770
|
+
? generateGrouplayout(parsedSelectedBlockId.blockId)
|
|
771
771
|
: null;
|
|
772
|
-
console.log("selectedLayoutItem", selectedLayoutItem);
|
|
773
772
|
var activeDragItemOrSelectedItem = activeDrag || selectedLayoutItem;
|
|
774
|
-
console.log("activeDragItemOrSelectedItem", activeDragItemOrSelectedItem);
|
|
775
773
|
var activeBlock = activeDragItemOrSelectedItem
|
|
776
774
|
? blockStructure
|
|
777
|
-
? findBlockByBlockId(blockStructure, parsedSelectedBlockId.
|
|
775
|
+
? findBlockByBlockId(blockStructure, parsedSelectedBlockId.blockId)
|
|
778
776
|
: null
|
|
779
777
|
: null;
|
|
780
|
-
console.log("activeBlock", activeBlock);
|
|
781
778
|
var activeRows = activeDragItemOrSelectedItem &&
|
|
782
779
|
Array.from({ length: activeDragItemOrSelectedItem.h }, function (_, i) { return activeDragItemOrSelectedItem.y + i; });
|
|
783
780
|
var heightVariableRows = getRowsForHeightFitContentItems(layout);
|
|
@@ -64,10 +64,12 @@ export declare function formatBlockIdToCbId(blockId: string): number | null;
|
|
|
64
64
|
export declare function formatCbIdToBlockId(cbId: number): string;
|
|
65
65
|
export declare function getBlockIdKind(blockId: string): {
|
|
66
66
|
type: "GB";
|
|
67
|
-
|
|
67
|
+
blockId: string;
|
|
68
|
+
cbId: string | null;
|
|
68
69
|
} | {
|
|
69
70
|
type: "CB";
|
|
70
|
-
|
|
71
|
+
blockId: string;
|
|
72
|
+
cbId: string;
|
|
71
73
|
} | null;
|
|
72
74
|
export declare function findParentGroupBlock(current: Block, targetBlockId: string): GroupBlock | null;
|
|
73
75
|
export declare function findOneComponentBlock(current: Block, targetBlockId: string): number | null;
|
|
@@ -254,13 +254,15 @@ export function getBlockIdKind(blockId) {
|
|
|
254
254
|
if (/^GB_.+$/i.test(blockId)) {
|
|
255
255
|
return {
|
|
256
256
|
type: "GB",
|
|
257
|
-
|
|
257
|
+
cbId: null,
|
|
258
|
+
blockId: blockId,
|
|
258
259
|
};
|
|
259
260
|
}
|
|
260
261
|
if (/^CB_\d+$/i.test(blockId)) {
|
|
261
262
|
return {
|
|
262
263
|
type: "CB",
|
|
263
|
-
|
|
264
|
+
cbId: formatBlockIdToCbId(blockId).toString(),
|
|
265
|
+
blockId: blockId,
|
|
264
266
|
};
|
|
265
267
|
}
|
|
266
268
|
return null;
|