@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/dist/css/nine-mu.css +3 -2
- package/dist/nine-mu.js +13 -7
- 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 +1 -1
- package/public/css/nine-mu.css +3 -2
- package/src/components/NineDiff.js +9 -0
- package/src/components/NineMenuDiffPopup.js +1 -1
package/package.json
CHANGED
package/public/css/nine-mu.css
CHANGED
|
@@ -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.
|
|
107
|
+
const content = this.#diffView ? this.#diffView.getAsisContents() : this.#asisBackup;
|
|
108
108
|
|
|
109
109
|
const params = {
|
|
110
110
|
packageName: this.#host.getAttribute('package-name'),
|