publ-echo-test 0.0.293 → 0.0.295
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.
@@ -138,6 +138,7 @@ 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);
|
141
142
|
var isInitial = mutation.attributeName === "data-is-initialized" &&
|
142
143
|
mutation.target.getAttribute("data-is-initialized") === "true";
|
143
144
|
console.log("isInitial", isInitial);
|
@@ -263,7 +264,9 @@ var GridItem = function (_a) {
|
|
263
264
|
var config = { attributes: true, characterData: true };
|
264
265
|
// 대상 노드와 설정으로 관찰 시작
|
265
266
|
observer.observe(targetNode, config);
|
266
|
-
|
267
|
+
setTimeout(function () {
|
268
|
+
targetNode.setAttribute("data-is-initialized", "true");
|
269
|
+
}, 100);
|
267
270
|
// 정리 함수에서 MutationObserver 해제
|
268
271
|
return function () {
|
269
272
|
if (targetNode.id !== "contentslist-box") {
|
@@ -124,8 +124,6 @@ var GridItem = function (_a) {
|
|
124
124
|
return;
|
125
125
|
}
|
126
126
|
var targetNode = (_a = elementRef.current) === null || _a === void 0 ? void 0 : _a.children[0].children[0].children[0];
|
127
|
-
console.log("elementRef", elementRef.current);
|
128
|
-
console.dir("targetNode", targetNode);
|
129
127
|
if (!targetNode || isDragging || isResizing) {
|
130
128
|
return;
|
131
129
|
}
|
@@ -149,7 +147,6 @@ var GridItem = function (_a) {
|
|
149
147
|
var minWidth = 0;
|
150
148
|
// const minHeight =
|
151
149
|
// Number(mutation.target.dataset.minHeight) + insetTop + insetBottom;
|
152
|
-
console.dir("mutation target", mutation.target);
|
153
150
|
var contentsWrapper = mutation.target.querySelector(".cb-contentslist-wrapper");
|
154
151
|
var oneComposition = mutation.target.querySelector(".composition-container");
|
155
152
|
var minHeight = 0;
|
@@ -36,7 +36,7 @@ import classNames from "../../external-lib/classnames";
|
|
36
36
|
import { bottom, cloneLayoutItem, compact, getAllCollisions, getBoundingArea, getLayoutItem, moveElement, noop, synchronizeLayoutWithChildren, withLayoutItem, } from "./utils/renderHelpers";
|
37
37
|
import { calcGridColWidth, calcXY, resolveRowHeight, } from "../GridItem/utils/calculateUtils";
|
38
38
|
// NOTE: 필수 변경하기
|
39
|
-
import GridItem from "../GridItem/
|
39
|
+
import GridItem from "../GridItem/GridItem";
|
40
40
|
import isEqual from "../../external-lib/lodash.isEqual";
|
41
41
|
import { findAllChildrenCbIds, findBlockByBlockId, findDirectChildrenBlockIds, findDirectChildrenCbIds, findGroupBlocks, findParentGroupBlock, formatCbIdToBlockId, getBlockSpecificType, zIndexMap, } from "./group";
|
42
42
|
import GroupItem from "../GridItem/GroupItem";
|