@nine-lab/nine-mu 0.1.303 → 0.1.304
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
|
@@ -253,22 +253,9 @@ export class NineChat extends HTMLElement {
|
|
|
253
253
|
const container = this.shadowRoot.querySelector('.wrapper') || this.shadowRoot;
|
|
254
254
|
container.appendChild($diffPopup);
|
|
255
255
|
|
|
256
|
-
const filePayload = {
|
|
257
|
-
//layer: "Unknown",
|
|
258
|
-
full_path: "unknown_file",
|
|
259
|
-
asis_source: asis || "",
|
|
260
|
-
source: tobe || ""
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
let collectedFiles = [];
|
|
264
|
-
collectedFiles.push(filePayload);
|
|
265
|
-
|
|
266
|
-
$diffPopup.data([...collectedFiles]);
|
|
267
|
-
$diffPopup.popup();
|
|
268
|
-
|
|
269
256
|
// 4. 데이터 주입 및 팝업 실행
|
|
270
257
|
// 💡 팝업이 네이티브 <dialog> 기반이라면 .popup() 내부에서 showModal()이 실행될 겁니다.
|
|
271
|
-
|
|
258
|
+
$diffPopup.popup().data(asis, tobe, lang);
|
|
272
259
|
}
|
|
273
260
|
}
|
|
274
261
|
|
|
@@ -2,7 +2,7 @@ import { trace } from '@nopeer';
|
|
|
2
2
|
import { api, nine } from '@nine-lab/nine-util';
|
|
3
3
|
import '@nine-lab/nine-util';
|
|
4
4
|
|
|
5
|
-
export class
|
|
5
|
+
export class NineMenuDiffPopup extends HTMLElement {
|
|
6
6
|
#dialog = null;
|
|
7
7
|
#diffView = null; // Container 대신 직접 에디터 뷰를 참조
|
|
8
8
|
#asisBackup = "";
|
|
@@ -122,4 +122,4 @@ export class NineDiffPopup extends HTMLElement {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
customElements.define("nine-diff-popup",
|
|
125
|
+
customElements.define("nine-menu-diff-popup", NineMenuDiffPopup);
|