@nine-lab/nine-mu 0.1.307 → 0.1.308

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.307",
3
+ "version": "0.1.308",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -804,8 +804,8 @@
804
804
  }
805
805
 
806
806
 
807
-
808
- :host(nine-diff-popup) {
807
+ :host(nine-diff-popup),
808
+ :host(nine-menu-diff-popup) {
809
809
 
810
810
  div.buttons {
811
811
  position: absolute;
@@ -862,6 +862,7 @@
862
862
  }
863
863
  }
864
864
 
865
+
865
866
  :host(nine-diff) {
866
867
  width: 100%;
867
868
  height: 100%;
@@ -233,10 +233,19 @@ export class NineDiff extends HTMLElement {
233
233
  }
234
234
  }
235
235
 
236
+
236
237
  getContents = () => {
237
238
  return (this.#tobeEditorView) ? this.#tobeEditorView.state.doc.toString() : "";
238
239
  };
239
240
 
241
+ getAsisContents = () => {
242
+ return (this.#asisEditorView) ? this.#asisEditorView.state.doc.toString() : "";
243
+ };
244
+
245
+ getTobeContents = () => {
246
+ return (this.#tobeEditorView) ? this.#tobeEditorView.state.doc.toString() : "";
247
+ };
248
+
240
249
  #initCodeMirror = () => {
241
250
 
242
251
  let asisReady = false;
@@ -104,7 +104,7 @@ export class NineMenuDiffPopup extends HTMLElement {
104
104
 
105
105
  #handleConfirm() {
106
106
  // 에디터에서 직접 콘텐츠 추출
107
- const content = this.#diffView ? this.#diffView.getContents() : this.#asisBackup;
107
+ const content = this.#diffView ? this.#diffView.getAsisContents() : this.#asisBackup;
108
108
 
109
109
  const params = {
110
110
  packageName: this.#host.getAttribute('package-name'),