publ-echo-test 0.0.90 → 0.0.92
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.
@@ -241,12 +241,10 @@ var DraggableCore = function (_a) {
|
|
241
241
|
}
|
242
242
|
}
|
243
243
|
var handleMouseDown = function (e) {
|
244
|
-
setPointerEventsNone(true);
|
245
244
|
dragEventFor = EVENTS.MOUSE;
|
246
245
|
return handleDragStart(e);
|
247
246
|
};
|
248
247
|
var handleMouseUp = function (e) {
|
249
|
-
setPointerEventsNone(false);
|
250
248
|
dragEventFor = EVENTS.MOUSE;
|
251
249
|
return handleDragStop(e);
|
252
250
|
};
|
@@ -264,7 +262,6 @@ var DraggableCore = function (_a) {
|
|
264
262
|
onMouseUp: handleMouseUp,
|
265
263
|
onTouchEnd: handleTouchEnd,
|
266
264
|
ref: (_b = props.nodeRef) !== null && _b !== void 0 ? _b : draggableCoreRef,
|
267
|
-
className: pointerEventsNone ? 'pointer-events-none' : props.className,
|
268
265
|
});
|
269
266
|
};
|
270
267
|
export default DraggableCore;
|
@@ -399,7 +399,6 @@ var GridItem = function (_a) {
|
|
399
399
|
"react-draggable-dragging": Boolean(dragging),
|
400
400
|
// dropping: Boolean(droppingPosition),
|
401
401
|
cssTransforms: useCSSTransforms,
|
402
|
-
// 'pointer-events-none': !isDraggable,
|
403
402
|
}),
|
404
403
|
style: __assign(__assign(__assign({}, props.style), child.props.style), createStyle(pos)),
|
405
404
|
});
|
@@ -140,7 +140,6 @@ var ReactGridLayout = function (_a) {
|
|
140
140
|
var _b;
|
141
141
|
var e = _a.e, node = _a.node;
|
142
142
|
var l = (_b = getLayoutItem(layout, i)) !== null && _b !== void 0 ? _b : { i: i, x: x, y: y, w: 1, h: 1 };
|
143
|
-
console.log(l);
|
144
143
|
if (!l)
|
145
144
|
return;
|
146
145
|
setOldDragItem(cloneLayoutItem(l));
|
@@ -53,3 +53,4 @@ export declare const addBulkToTarget: (blockStructure: Block[], targetId: string
|
|
53
53
|
export declare const getBlockWorkDirPath: (blockStructure: Block[], blockId: string) => string | null;
|
54
54
|
export declare const getBlockIdByComponentId: (blockStructure: Block[], componentId: number) => string | null;
|
55
55
|
export declare const blockStructure: Block[];
|
56
|
+
export declare const mapComponentBlockIdsToBlockIds: (blockStructure: Block[]) => Record<number, string>;
|
@@ -414,3 +414,19 @@ export var blockStructure = [
|
|
414
414
|
]
|
415
415
|
}
|
416
416
|
];
|
417
|
+
export var mapComponentBlockIdsToBlockIds = function (blockStructure) {
|
418
|
+
var map = {};
|
419
|
+
var traverse = function (blocks) {
|
420
|
+
for (var _i = 0, blocks_7 = blocks; _i < blocks_7.length; _i++) {
|
421
|
+
var block = blocks_7[_i];
|
422
|
+
if (block.type === 'COMPONENT_BLOCK') {
|
423
|
+
map[block.componentBlockId] = block.blockId;
|
424
|
+
}
|
425
|
+
if ('children' in block && block.children) {
|
426
|
+
traverse(block.children);
|
427
|
+
}
|
428
|
+
}
|
429
|
+
};
|
430
|
+
traverse(blockStructure);
|
431
|
+
return map;
|
432
|
+
};
|