@nine-lab/nine-mu 0.1.303 → 0.1.305
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/dist/nine-mu.js +108 -17
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +3 -3
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineChat.js +2 -15
- package/src/components/{NineDiffPopup_BAK.js → NineMenuDiffPopup.js} +2 -2
- package/src/index.js +1 -0
package/package.json
CHANGED
|
@@ -241,7 +241,7 @@ export class NineChat extends HTMLElement {
|
|
|
241
241
|
|
|
242
242
|
#showDiff = (asis, tobe, lang) => {
|
|
243
243
|
// 1. 혹시 잔상이 남아있을지 모르니 기존에 생성된 팝업이 있다면 강제 제거
|
|
244
|
-
const oldPopup = this.shadowRoot.querySelector('nine-diff-popup');
|
|
244
|
+
const oldPopup = this.shadowRoot.querySelector('nine-menu-diff-popup');
|
|
245
245
|
if (oldPopup) {
|
|
246
246
|
oldPopup.remove();
|
|
247
247
|
}
|
|
@@ -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);
|
package/src/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { trace } from '@nine-lab/nine-util';
|
|
|
2
2
|
import { NineChat } from './components/NineChat.js';
|
|
3
3
|
import { NineDiff } from './components/NineDiff.js';
|
|
4
4
|
import { NineDiffPopup } from './components/NineDiffPopup.js';
|
|
5
|
+
import { NineMenuDiffPopup } from './components/NineMenuDiffPopup.js';
|
|
5
6
|
import './components/ChatMessage.js';
|
|
6
7
|
|
|
7
8
|
/**
|