@nine-lab/nine-mu 0.1.314 → 0.1.316

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.314",
3
+ "version": "0.1.316",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -76,7 +76,7 @@ export class NotificationHandler {
76
76
  #openDiffPopup = () => {
77
77
  if (this.#collectedFiles.length === 0) return;
78
78
 
79
- const oldPopup = this.shadowRoot.querySelector('nine-diff-popup');
79
+ const oldPopup = this.#owner.shadowRoot.querySelector('nine-diff-popup');
80
80
  if (oldPopup) {
81
81
  oldPopup.remove();
82
82
  }
@@ -85,7 +85,10 @@ export class NotificationHandler {
85
85
 
86
86
  const $popup = document.createElement('nine-diff-popup');
87
87
  $popup.setAttribute('package-name', this.#owner.getAttribute('package-name') || '');
88
- document.body.appendChild($popup);
88
+
89
+ const container = this.#owner.shadowRoot.querySelector('.wrapper') || this.#owner.shadowRoot;
90
+ container.appendChild($diffPopup);
91
+ //document.body.appendChild($popup);
89
92
 
90
93
  // 팝업 내부 맵 저장소에 수집된 멀티 탭 소스 리스트 주입 및 모달 디스플레이
91
94
  $popup.data([...this.#collectedFiles]);