@nine-lab/nine-mu 0.1.311 → 0.1.313

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nine-lab/nine-mu",
3
- "version": "0.1.311",
3
+ "version": "0.1.313",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -92,10 +92,13 @@ export class NineDiffPopup extends HTMLElement {
92
92
  this.#tabContainer.innerHTML = totalTabHtml;
93
93
 
94
94
  this.#tabContainer.querySelectorAll("nine-diff").forEach((element) => {
95
+ trace.log(element);
96
+
95
97
  element.addEventListener('change-dirty', (e) => {
96
98
  const { isDirty } = e.detail;
97
99
  trace.log(isDirty);
98
100
 
101
+ trace.log(this.shadowRoot.querySelector('.btn-confirm'));
99
102
  this.shadowRoot.querySelector('.btn-confirm').disabled = !isDirty; // 수정되었을 때만 저장 버튼 활성화
100
103
  });
101
104
  });
@@ -84,14 +84,17 @@ export class NotificationHandler {
84
84
  #openDiffPopup = () => {
85
85
  if (this.#collectedFiles.length === 0) return;
86
86
 
87
- // DOM 상에 싱글톤 팝업 인스턴스 레이아웃 추출 및 빌드
88
- let $popup = document.querySelector('nine-diff-popup');
89
- if (!$popup) {
90
- $popup = document.createElement('nine-diff-popup');
91
- $popup.setAttribute('package-name', this.#owner.getAttribute('package-name') || '');
92
- document.body.appendChild($popup);
87
+ const oldPopup = this.shadowRoot.querySelector('nine-diff-popup');
88
+ if (oldPopup) {
89
+ oldPopup.remove();
93
90
  }
94
91
 
92
+ // DOM 상에 싱글톤 팝업 인스턴스 레이아웃 추출 및 빌드
93
+
94
+ const $popup = document.createElement('nine-diff-popup');
95
+ $popup.setAttribute('package-name', this.#owner.getAttribute('package-name') || '');
96
+ document.body.appendChild($popup);
97
+
95
98
  // 팝업 내부 맵 저장소에 수집된 멀티 탭 소스 리스트 주입 및 모달 디스플레이
96
99
  $popup.data([...this.#collectedFiles]);
97
100
  $popup.popup();