publ-echo-test 0.0.295 → 0.0.296

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.
@@ -139,8 +139,7 @@ var GridItem = function (_a) {
139
139
  for (var _i = 0, mutationsList_2 = mutationsList; _i < mutationsList_2.length; _i++) {
140
140
  var mutation = mutationsList_2[_i];
141
141
  console.log("mutation", mutation);
142
- var isInitial = mutation.attributeName === "data-is-initialized" &&
143
- mutation.target.getAttribute("data-is-initialized") === "true";
142
+ var isInitial = mutation.attributeName === "data-is-initialized";
144
143
  console.log("isInitial", isInitial);
145
144
  var isSizeChanged = mutation.attributeName === "data-min-width" ||
146
145
  mutation.attributeName === "data-min-height";
@@ -264,17 +263,12 @@ var GridItem = function (_a) {
264
263
  var config = { attributes: true, characterData: true };
265
264
  // 대상 노드와 설정으로 관찰 시작
266
265
  observer.observe(targetNode, config);
267
- setTimeout(function () {
268
- targetNode.setAttribute("data-is-initialized", "true");
269
- }, 100);
270
266
  // 정리 함수에서 MutationObserver 해제
271
267
  return function () {
272
268
  if (targetNode.id !== "contentslist-box") {
273
269
  return;
274
270
  }
275
271
  observer.disconnect();
276
- // NOTE: 필수? 아니람 삭제
277
- targetNode.removeAttribute("data-is-initialized");
278
272
  };
279
273
  }, [autoResize, isSelected, isDragging, isResizing, props.w, props.h, x, y]);
280
274
  // useEffect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.295",
3
+ "version": "0.0.296",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",