publ-echo 0.0.133 → 0.0.134
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.
- package/dist/lib/GridItem/GridItem.js +0 -2
- package/dist/lib/GridItem/GridItemCopy.js +0 -1
- package/dist/lib/GridLayoutEditor/Placeholder.js +0 -2
- package/dist/lib/GridLayoutEditor/ReactGridLayout.js +1 -2
- package/dist/lib/GridLayoutEditor/group.js +7 -0
- package/dist/lib/Resizable/Resizable.js +0 -6
- package/package.json +1 -1
|
@@ -138,7 +138,6 @@ var GridItem = function (_a) {
|
|
|
138
138
|
var callback = function (mutationsList) {
|
|
139
139
|
for (var _i = 0, mutationsList_2 = mutationsList; _i < mutationsList_2.length; _i++) {
|
|
140
140
|
var mutation = mutationsList_2[_i];
|
|
141
|
-
console.log("mutation", mutation);
|
|
142
141
|
// const isInitial = mutation.attributeName === "data-is-initialized";
|
|
143
142
|
var isSizeChanged = mutation.attributeName === "data-min-width" ||
|
|
144
143
|
mutation.attributeName === "data-min-height";
|
|
@@ -313,7 +312,6 @@ var GridItem = function (_a) {
|
|
|
313
312
|
// h = prevH;
|
|
314
313
|
// }
|
|
315
314
|
// if (prevH === h && prevW === w) {
|
|
316
|
-
// console.log("cancelled 3");
|
|
317
315
|
// return;
|
|
318
316
|
// }
|
|
319
317
|
// props.onFitToContent &&
|
|
@@ -23,8 +23,6 @@ export function GridBackgroundPlaceholder(_a) {
|
|
|
23
23
|
var isHeightVariable = activeBlock
|
|
24
24
|
? getIsHeightVariable(activeBlock, device)
|
|
25
25
|
: false;
|
|
26
|
-
console.log("activeBlock", activeBlock);
|
|
27
|
-
console.log("isHeightVariable", isHeightVariable);
|
|
28
26
|
var showActiveRows = activeBlock && activeBlock.type === "GROUP_BLOCK"
|
|
29
27
|
? getShowActiveRows(activeBlock, layout)
|
|
30
28
|
: !!activeDrag.heightFitContent || isHeightVariable;
|
|
@@ -773,7 +773,7 @@ var ReactGridLayout = function (_a) {
|
|
|
773
773
|
y: groupItem.y,
|
|
774
774
|
i: block.blockId,
|
|
775
775
|
});
|
|
776
|
-
var showBlockData =
|
|
776
|
+
var showBlockData = overlapsActiveRows;
|
|
777
777
|
return (_jsx(OutsideClickHandler, { onOutsideClick: onDoubleClickOutsideGroup, onMouseEnter: function () {
|
|
778
778
|
setHoveredGroupId(block.blockId);
|
|
779
779
|
}, onMouseLeave: function () {
|
|
@@ -819,7 +819,6 @@ var ReactGridLayout = function (_a) {
|
|
|
819
819
|
? generateGrouplayout(parsedSelectedBlockId.blockId)
|
|
820
820
|
: null;
|
|
821
821
|
var activeDragItemOrSelectedItem = activeDrag || selectedLayoutItem;
|
|
822
|
-
console.log("activeDragItemOrSelectedItem", parsedSelectedBlockId);
|
|
823
822
|
var activeBlock = activeDragItemOrSelectedItem && parsedSelectedBlockId
|
|
824
823
|
? blockStructure
|
|
825
824
|
? findBlockByBlockId(blockStructure, parsedSelectedBlockId.blockId)
|
|
@@ -251,6 +251,13 @@ export function formatCbIdToBlockId(cbId) {
|
|
|
251
251
|
return "CB_".concat(cbId);
|
|
252
252
|
}
|
|
253
253
|
export function getBlockIdKind(blockId) {
|
|
254
|
+
if (blockId === "BULK") {
|
|
255
|
+
return {
|
|
256
|
+
type: "GB",
|
|
257
|
+
cbId: null,
|
|
258
|
+
blockId: blockId,
|
|
259
|
+
};
|
|
260
|
+
}
|
|
254
261
|
if (/^GB_.+$/i.test(blockId)) {
|
|
255
262
|
return {
|
|
256
263
|
type: "GB",
|
|
@@ -157,9 +157,6 @@ var Resizable = function (_a) {
|
|
|
157
157
|
if (contentsWrapper) {
|
|
158
158
|
var gridWrapperInnerH = contentsWrapper.clientHeight;
|
|
159
159
|
var oneCompositionH = oneComposition.scrollHeight;
|
|
160
|
-
console.log("scrollHeight", oneCompositionH);
|
|
161
|
-
console.log("clientHeight", oneComposition.clientHeight);
|
|
162
|
-
console.log("gap", oneCompositionH - oneComposition.clientHeight);
|
|
163
160
|
var compositionBGwrapperPaddingT = Number(oneComposition.getAttribute("data-wrapper-paddingt"));
|
|
164
161
|
var compositionBGwrapperPaddingB = Number(oneComposition.getAttribute("data-wrapper-paddingb"));
|
|
165
162
|
var compositionBGwrapperPaddingL = Number(oneComposition.getAttribute("data-wrapper-paddingl"));
|
|
@@ -238,7 +235,6 @@ var Resizable = function (_a) {
|
|
|
238
235
|
height = Math.min(maxConstraints[1], height);
|
|
239
236
|
}
|
|
240
237
|
slack.current = [slackW + (oldW - width), slackH + (oldH - height)];
|
|
241
|
-
console.log("minH", minHeight.current);
|
|
242
238
|
return [width, height];
|
|
243
239
|
};
|
|
244
240
|
var checkTopLeft = function (deltaX, deltaY, top, left, width, height, handleAxis) {
|
|
@@ -310,7 +306,6 @@ var Resizable = function (_a) {
|
|
|
310
306
|
// if (lastHandleRectRef.current !== null) {
|
|
311
307
|
// if (axisH === "w") {
|
|
312
308
|
// const deltaLeftSinceLast = handleRect.left - lastHandleRectRef.current.left;
|
|
313
|
-
// console.log('delta, :', deltaLeftSinceLast);
|
|
314
309
|
// deltaX += deltaLeftSinceLast;
|
|
315
310
|
// }
|
|
316
311
|
// if (axisV === "n") {
|
|
@@ -339,7 +334,6 @@ var Resizable = function (_a) {
|
|
|
339
334
|
if (autoResize && minHeight.current === height) {
|
|
340
335
|
handleAxis = removeNorthHandle(handleAxis);
|
|
341
336
|
}
|
|
342
|
-
console.log("deltax deltay", deltaX, deltaY);
|
|
343
337
|
_c = checkTopLeft(deltaX, deltaY, top, left, width, height, handleAxis), top = _c[0], left = _c[1];
|
|
344
338
|
var isDimensionsChanged = width !== props.width || height !== props.height;
|
|
345
339
|
var cb = typeof props[handlerName] === "function" ? props[handlerName] : null;
|