@nine-lab/nine-mu 0.1.231 → 0.1.233

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 CHANGED
@@ -17399,11 +17399,11 @@ initActions_fn = function() {
17399
17399
  const parsed = JSON.parse(rawText);
17400
17400
  __privateGet(this, _manager).addChatHistory(parsed.message);
17401
17401
  __privateGet(this, _$nineChatMessage).add("ai", parsed.message);
17402
- const currRoutes = await __privateGet(this, _manager).getRoutes();
17402
+ const asis = await __privateGet(this, _manager).getRoutes();
17403
17403
  if ((parsed == null ? void 0 : parsed.selected_tool) === "source-missing") {
17404
17404
  nine.alert("메뉴 정리를 위한 라우터 정보 저장 화면으로 이동합니다.").then((res) => {
17405
- trace.log(currRoutes, parsed == null ? void 0 : parsed.data);
17406
- __privateGet(this, _showDiff).call(this, currRoutes, parsed == null ? void 0 : parsed.data, "json");
17405
+ const tobe = ((parsed == null ? void 0 : parsed.data) || []).map(({ isNew, ...rest }) => rest);
17406
+ __privateGet(this, _showDiff).call(this, asis, tobe, "json");
17407
17407
  });
17408
17408
  }
17409
17409
  } catch (err2) {
@@ -17420,7 +17420,7 @@ render_fn = function() {
17420
17420
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
17421
17421
  this.shadowRoot.innerHTML = `
17422
17422
  <style>
17423
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.230"}/dist/css/nine-mu.css";
17423
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.232"}/dist/css/nine-mu.css";
17424
17424
  ${customImport}
17425
17425
  </style>
17426
17426
  <div class="wrapper">
@@ -43637,7 +43637,7 @@ class NineDiff extends HTMLElement {
43637
43637
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43638
43638
  this.shadowRoot.innerHTML = `
43639
43639
  <style>
43640
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.230"}/dist/css/nine-mu.css";
43640
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.232"}/dist/css/nine-mu.css";
43641
43641
  ${customImport}
43642
43642
  </style>
43643
43643
 
@@ -43747,7 +43747,7 @@ render_fn2 = function() {
43747
43747
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43748
43748
  this.shadowRoot.innerHTML = `
43749
43749
  <style>
43750
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.230"}/dist/css/nine-mu.css";
43750
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.232"}/dist/css/nine-mu.css";
43751
43751
  ${customImport}
43752
43752
  </style>
43753
43753
 
@@ -43769,15 +43769,16 @@ render_fn2 = function() {
43769
43769
  this.shadowRoot.querySelector(".btn-cancel").onclick = () => __privateMethod(this, _NineDiffPopup_instances, handleCancel_fn).call(this);
43770
43770
  };
43771
43771
  handleConfirm_fn = function() {
43772
- const jsonString = __privateGet(this, _diffView) ? __privateGet(this, _diffView).getContents() : __privateGet(this, _asisBackup);
43773
- const cleanedData = JSON.parse(jsonString, (key, value) => {
43774
- if (key === "isNew") {
43775
- return void 0;
43776
- }
43777
- return value;
43772
+ const content2 = __privateGet(this, _diffView) ? __privateGet(this, _diffView).getContents() : __privateGet(this, _asisBackup);
43773
+ const params = {
43774
+ packageName: __privateGet(this, _host).getAttribute("package-name"),
43775
+ contents: content2
43776
+ };
43777
+ api.post(`/nine-mu/source/generateJsonFile`, params).then((res) => {
43778
+ nine.alert("소스를 변경하였습니다.").then((res2) => {
43779
+ __privateGet(this, _dialog).close();
43780
+ });
43778
43781
  });
43779
- console.log(JSON.stringify(cleanedData));
43780
- return;
43781
43782
  };
43782
43783
  handleCancel_fn = function() {
43783
43784
  __privateGet(this, _dialog).close();
@@ -44072,7 +44073,7 @@ class ChatMessageBody extends HTMLElement {
44072
44073
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44073
44074
  this.shadowRoot.innerHTML = `
44074
44075
  <style>
44075
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.230"}/dist/css/nine-mu.css";
44076
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.232"}/dist/css/nine-mu.css";
44076
44077
  ${customImport}
44077
44078
  </style>
44078
44079
 
@@ -44166,7 +44167,7 @@ if (!customElements.get("nine-chat-progress")) {
44166
44167
  customElements.define("nine-chat-progress", ProgressMessage);
44167
44168
  }
44168
44169
  const NineMu = {
44169
- version: "0.1.230",
44170
+ version: "0.1.232",
44170
44171
  init: (config2) => {
44171
44172
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44172
44173
  }