publ-echo-test 0.0.86 → 0.0.88
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.
| @@ -176,7 +176,6 @@ var GridItem = function (_a) { | |
| 176 176 | 
             
                        var _a;
         | 
| 177 177 | 
             
                        if (!isDraggable) {
         | 
| 178 178 | 
             
                            if ((_a = elementRef.current) === null || _a === void 0 ? void 0 : _a.classList) {
         | 
| 179 | 
            -
                                // elementRef.current?.classList.add('pointer-events-none')
         | 
| 180 179 | 
             
                                setPointerEventsNone(true);
         | 
| 181 180 | 
             
                            }
         | 
| 182 181 | 
             
                        }
         | 
| @@ -408,8 +407,9 @@ var GridItem = function (_a) { | |
| 408 407 | 
             
                        "react-draggable-dragging": Boolean(dragging),
         | 
| 409 408 | 
             
                        // dropping: Boolean(droppingPosition),
         | 
| 410 409 | 
             
                        cssTransforms: useCSSTransforms,
         | 
| 410 | 
            +
                        'pointer-events': isDraggable,
         | 
| 411 411 | 
             
                    }),
         | 
| 412 | 
            -
                    style: __assign(__assign(__assign( | 
| 412 | 
            +
                    style: __assign(__assign(__assign({}, props.style), child.props.style), createStyle(pos)),
         | 
| 413 413 | 
             
                });
         | 
| 414 414 | 
             
                newChild = mixinResizable(newChild, pos, isResizable);
         | 
| 415 415 | 
             
                newChild = mixinDraggable(newChild, isDraggable);
         | 
| @@ -465,10 +465,11 @@ var ReactGridLayout = function (_a) { | |
| 465 465 | 
             
                        var originalKey = String(child.key).split(".$");
         | 
| 466 466 | 
             
                        return originalKey[1] === l.i;
         | 
| 467 467 | 
             
                    });
         | 
| 468 | 
            +
                    var isInBulk = blockStructure && (bulkIds === null || bulkIds === void 0 ? void 0 : bulkIds.includes(getBlockIdByComponentId(blockStructure, Number(activeDrag.i))));
         | 
| 468 469 | 
             
                    if (!item) {
         | 
| 469 470 | 
             
                        return null;
         | 
| 470 471 | 
             
                    }
         | 
| 471 | 
            -
                    return (_jsx(GridItem, { w: activeDrag.w, h: activeDrag.h, x: activeDrag.x, y: activeDrag.y, z: activeDrag.z || 0, i: activeDrag.i, className:  | 
| 472 | 
            +
                    return (_jsx(GridItem, { w: activeDrag.w, h: activeDrag.h, x: activeDrag.x, y: activeDrag.y, z: activeDrag.z || 0, i: activeDrag.i, className: 'placeholder', containerWidth: width, cols: cols, margin: margin, containerPadding: containerPadding || margin, maxRows: maxRows, rowHeight: rowHeight, isDraggable: false, isResizable: false, isBounded: false, useCSSTransforms: useCSSTransforms, transformScale: transformScale, autoResize: !!l.autoResize, children: item && item }));
         | 
| 472 473 | 
             
                };
         | 
| 473 474 | 
             
                /**
         | 
| 474 475 | 
             
                 * Given a grid item, set its style attributes & surround in a <Draggable>.
         | 
| @@ -644,7 +645,6 @@ var ReactGridLayout = function (_a) { | |
| 644 645 | 
             
                            isHiddenVisibility: isHiddenVisibility, customColWidth: colWidth, autoResize: false, children: _jsx("div", { onClick: handleClick, onDoubleClick: handleDoubleClick }) }, block.blockId) }));
         | 
| 645 646 | 
             
                };
         | 
| 646 647 | 
             
                var currentGroupBlocks = blockStructure ? findGroupBlocks(blockStructure, editingGroupBlock) : [];
         | 
| 647 | 
            -
                console.log('currentGroup', currentGroupBlocks);
         | 
| 648 648 | 
             
                return (_jsxs("div", { ref: innerRef, className: mergedClassName, style: mergedStyle, onDrop: isDroppable ? onDropHandler : noop, onDragLeave: isDroppable ? onDragLeaveHandler : noop, onDragEnter: isDroppable ? onDragEnterHandler : noop, onDragOver: isDroppable ? onDragOverHandler : noop, children: [currentGroupBlocks.map(function (each) { return processGroup(each); }), React.Children.map(children, function (child) { return processGridItem(child); }), placeholder(), activeDrag && _jsx("div", { className: "grid-guide-line-center" }), activeDrag && (_jsx("div", { className: "grid-placeholder", style: {
         | 
| 649 649 | 
             
                                marginTop: margin[1] + "px",
         | 
| 650 650 | 
             
                                marginBottom: margin[1] + "px",
         |