@nine-lab/nine-mu 0.1.46 → 0.1.48
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/css/nine-mu.css +2 -1
- package/dist/nine-mu.js +9 -31
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +2 -2
- package/public/css/nine-mu.css +2 -1
- package/src/components/NineDiffPopup.js +5 -28
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nine-lab/nine-mu",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.48",
|
|
4
4
|
"description": "AI-Driven Full-Stack Code Fabrication Engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/nine-mu.umd.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@nine-lab/nine-ai": "^0.1.75",
|
|
29
29
|
"@nine-lab/nine-util": "^0.9.40",
|
|
30
|
-
"@nine-lab/nine-ux": "^0.1.
|
|
30
|
+
"@nine-lab/nine-ux": "^0.1.111"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
package/public/css/nine-mu.css
CHANGED
|
@@ -814,7 +814,8 @@
|
|
|
814
814
|
outline: none;
|
|
815
815
|
}
|
|
816
816
|
|
|
817
|
-
|
|
817
|
+
--dialog { --dialog-width: 90vw; --dialog-height: 85vh; }
|
|
818
|
+
dialog { width: calc(100% - 50px); height: calc(100% - 50px); }
|
|
818
819
|
.main-layout { width: 100%; height: 100%; display: flex; flex-direction: column; }
|
|
819
820
|
.diff-area { flex: 1; min-height: 0; }
|
|
820
821
|
.footer {
|
|
@@ -24,49 +24,26 @@ export class NineDiffPopup extends HTMLElement {
|
|
|
24
24
|
${customImport}
|
|
25
25
|
</style>
|
|
26
26
|
|
|
27
|
-
<
|
|
27
|
+
<nine-dialog>
|
|
28
28
|
<div class="main-layout">
|
|
29
29
|
<div class="diff-area">
|
|
30
|
-
<nine-diff
|
|
30
|
+
<nine-diff></nine-diff>
|
|
31
31
|
</div>
|
|
32
32
|
<div class="footer">
|
|
33
33
|
<button class="btn btn-cancel">취소</button>
|
|
34
34
|
<button class="btn btn-confirm">최종 확정 및 저장</button>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
|
-
</
|
|
37
|
+
</nine-dialog>
|
|
38
38
|
`;
|
|
39
39
|
|
|
40
|
-
this.#dialog = this.shadowRoot.querySelector('
|
|
41
|
-
this.#diffView = this.shadowRoot.querySelector('
|
|
40
|
+
this.#dialog = this.shadowRoot.querySelector('nine-dialog');
|
|
41
|
+
this.#diffView = this.shadowRoot.querySelector('nine-diff');
|
|
42
42
|
|
|
43
43
|
this.shadowRoot.querySelector('.btn-confirm').onclick = () => this.#handleConfirm();
|
|
44
44
|
this.shadowRoot.querySelector('.btn-cancel').onclick = () => this.#handleCancel();
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
/**
|
|
48
|
-
async popup1(data) {
|
|
49
|
-
return new Promise((resolve) => {
|
|
50
|
-
this.#resolve = resolve;
|
|
51
|
-
this.#asisBackup = data?.asis || "";
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
// 💡 에디터가 준비되었다는 신호를 받으면 데이터 주입
|
|
55
|
-
this.#diffView.addEventListener('ready', () => {
|
|
56
|
-
trace.log("NineDiff is Ready! Injecting data...");
|
|
57
|
-
|
|
58
|
-
const asisStr = typeof data.asis === 'object' ? JSON.stringify(data.asis, null, 2) : data.asis;
|
|
59
|
-
const tobeStr = typeof data.tobe === 'object' ? JSON.stringify(data.tobe, null, 2) : data.tobe;
|
|
60
|
-
|
|
61
|
-
trace.log(asisStr, tobeStr);
|
|
62
|
-
|
|
63
|
-
this.#diffView.initialize(asisStr, tobeStr, data.lang);
|
|
64
|
-
}, { once: true }); // 딱 한 번만 실행
|
|
65
|
-
|
|
66
|
-
this.#dialog.showModal();
|
|
67
|
-
});
|
|
68
|
-
} */
|
|
69
|
-
|
|
70
47
|
popup() {
|
|
71
48
|
// 초기화
|
|
72
49
|
this.#dialog.showModal();
|