@nine-lab/nine-mu 0.1.43 → 0.1.44
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 +6 -11
- 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/src/components/NineChat.js +2 -10
package/package.json
CHANGED
|
@@ -141,16 +141,8 @@ export class NineChat extends HTMLElement {
|
|
|
141
141
|
this.#diffPopup = this.shadowRoot.querySelector('nine-diff-popup');
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
* @param {Object} params - { asis, tobe, lang }
|
|
147
|
-
* @returns {Promise<string|null>} - 확정 시 소스코드, 취소 시 null
|
|
148
|
-
*/
|
|
149
|
-
showDiff = async ({ asis, tobe, lang }) => {
|
|
150
|
-
// NineDiffPopup에 만들어둔 .wait() 또는 .open()을 연동
|
|
151
|
-
return await this.#diffPopup.popup()
|
|
152
|
-
.data(asis, tobe, lang)
|
|
153
|
-
.wait(); // 사용자가 버튼을 누를 때까지 여기서 await 걸림
|
|
144
|
+
showDiff = (data) => {
|
|
145
|
+
this.#diffPopup.popup().data(data);
|
|
154
146
|
}
|
|
155
147
|
}
|
|
156
148
|
|