@nine-lab/nine-mu 0.1.281 → 0.1.283

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
@@ -17161,9 +17161,7 @@ handleLoggingMessage_fn = function(params) {
17161
17161
  }
17162
17162
  break;
17163
17163
  case "modify-source-brain-completed":
17164
- if (data && data.source) {
17165
- __privateGet(this, _openDiffPopup).call(this);
17166
- }
17164
+ __privateGet(this, _openDiffPopup).call(this);
17167
17165
  break;
17168
17166
  }
17169
17167
  };
@@ -17565,7 +17563,7 @@ render_fn = function() {
17565
17563
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
17566
17564
  this.shadowRoot.innerHTML = `
17567
17565
  <style>
17568
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.280"}/dist/css/nine-mu.css";
17566
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.282"}/dist/css/nine-mu.css";
17569
17567
  ${customImport}
17570
17568
  </style>
17571
17569
  <div class="wrapper">
@@ -43782,7 +43780,7 @@ class NineDiff extends HTMLElement {
43782
43780
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43783
43781
  this.shadowRoot.innerHTML = `
43784
43782
  <style>
43785
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.280"}/dist/css/nine-mu.css";
43783
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.282"}/dist/css/nine-mu.css";
43786
43784
  ${customImport}
43787
43785
  </style>
43788
43786
 
@@ -43836,7 +43834,7 @@ class NineDiffPopup extends HTMLElement {
43836
43834
  __privateAdd(this, _dialog, null);
43837
43835
  __privateAdd(this, _tabContainer, null);
43838
43836
  __privateAdd(this, _filesMap, /* @__PURE__ */ new Map());
43839
- // 각 탭(파일)별 원본 및 에디터 인스턴스, 메타데이터 관리를 위한 맵
43837
+ // 각 탭(파일)별 메타데이터 및 에디터 인스턴스를 관리할 고유 저장소
43840
43838
  __privateAdd(this, _host);
43841
43839
  this.attachShadow({ mode: "open" });
43842
43840
  }
@@ -43849,7 +43847,8 @@ class NineDiffPopup extends HTMLElement {
43849
43847
  return this;
43850
43848
  }
43851
43849
  /**
43852
- * 💡 [핵심 고도화] 여러 파일 리스트를 받아 동적으로 탭을 생성하고 데이터를 주입하는 함수
43850
+ * 💡 [완벽 동적 빌딩 시스템]
43851
+ * 백엔드 완료 시그널로부터 모아진 collectedFiles 가 들어오면, 런타임에 해당하는 탭만 정확하게 파싱하여 주입합니다.
43853
43852
  * @param {Array} fileList - [{ layer: "MyBatis", full_path: "...", asis_source: "...", source: "..." }]
43854
43853
  */
43855
43854
  async data(fileList) {
@@ -43866,7 +43865,8 @@ class NineDiffPopup extends HTMLElement {
43866
43865
  fileList.forEach((file, index) => {
43867
43866
  const { layer: layer2, full_path, asis_source, source } = file;
43868
43867
  const lang = detectLanguage(full_path);
43869
- const caption = `${layer2} (${full_path.split("/").pop()})`;
43868
+ const fileName = full_path.split("/").pop() || "Unknown";
43869
+ const caption = `${layer2.toUpperCase()} (${fileName})`;
43870
43870
  const tabPage = document.createElement("nine-tab-page");
43871
43871
  tabPage.setAttribute("caption", caption);
43872
43872
  const diffWrapper = document.createElement("div");
@@ -43886,6 +43886,11 @@ class NineDiffPopup extends HTMLElement {
43886
43886
  diffView.initialize(asis_source || "", source || "", lang);
43887
43887
  }, { once: true });
43888
43888
  });
43889
+ setTimeout(() => {
43890
+ if (typeof __privateGet(this, _tabContainer).initialize === "function") {
43891
+ __privateGet(this, _tabContainer).initialize();
43892
+ }
43893
+ }, 50);
43889
43894
  return this;
43890
43895
  }
43891
43896
  }
@@ -43895,11 +43900,11 @@ _filesMap = new WeakMap();
43895
43900
  _host = new WeakMap();
43896
43901
  _NineDiffPopup_instances = new WeakSet();
43897
43902
  /**
43898
- * 💡 기본 다이얼로그 및 레이아웃 스케폴딩 렌더링
43903
+ * 💡 기본 다이얼로그 프레임 스타일 스케폴딩 렌더링
43899
43904
  */
43900
43905
  renderScaffolding_fn = function() {
43901
43906
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43902
- const appVersion = "0.1.280";
43907
+ const appVersion = "0.1.282";
43903
43908
  this.shadowRoot.innerHTML = `
43904
43909
  <style>
43905
43910
  @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${appVersion}/dist/css/nine-mu.css";
@@ -43918,15 +43923,23 @@ renderScaffolding_fn = function() {
43918
43923
  display: flex;
43919
43924
  flex-direction: column;
43920
43925
  }
43926
+ /* 💡 nx-tab / nine-tab 프레임워크가 100% 자라나도록 높이 강제 배치 */
43921
43927
  nine-tab {
43922
43928
  flex: 1;
43923
43929
  display: flex;
43924
43930
  flex-direction: column;
43925
43931
  height: 100%;
43926
43932
  }
43933
+ /* 💡 내부 에디터 가시성이 유실되어 숨겨지는 현상을 확실하게 방어 */
43927
43934
  .diff-wrapper {
43928
- height: calc(80vh - 120px); /* 푸터와 탭 헤더 높이를 제외한 에디터 영역 확보 */
43935
+ height: calc(80vh - 120px);
43929
43936
  width: 100%;
43937
+ display: block;
43938
+ }
43939
+ nine-diff {
43940
+ display: block;
43941
+ width: 100%;
43942
+ height: 100%;
43930
43943
  }
43931
43944
  .footer {
43932
43945
  display: flex;
@@ -43973,13 +43986,15 @@ handleConfirmAll_fn = async function() {
43973
43986
  __privateGet(this, _dialog).close();
43974
43987
  } catch (error) {
43975
43988
  trace.error("일괄 파일 저장 처리 중 실패:", error);
43976
- nine$1.alert("소스 저장 중 오류가 발생했습니다.");
43989
+ nine$1.alert("소스 일괄 저장 연동 치명적인 오류가 발생했습니다.");
43977
43990
  }
43978
43991
  };
43979
43992
  handleCancel_fn = function() {
43980
43993
  __privateGet(this, _dialog).close();
43981
43994
  };
43982
- customElements.define("nine-diff-popup", NineDiffPopup);
43995
+ if (!customElements.get("nine-diff-popup")) {
43996
+ customElements.define("nine-diff-popup", NineDiffPopup);
43997
+ }
43983
43998
  class AiMessage extends HTMLElement {
43984
43999
  constructor() {
43985
44000
  super();
@@ -44269,7 +44284,7 @@ class ChatMessageBody extends HTMLElement {
44269
44284
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44270
44285
  this.shadowRoot.innerHTML = `
44271
44286
  <style>
44272
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.280"}/dist/css/nine-mu.css";
44287
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.282"}/dist/css/nine-mu.css";
44273
44288
  ${customImport}
44274
44289
  </style>
44275
44290
 
@@ -44363,7 +44378,7 @@ if (!customElements.get("nine-chat-progress")) {
44363
44378
  customElements.define("nine-chat-progress", ProgressMessage);
44364
44379
  }
44365
44380
  const NineMu = {
44366
- version: "0.1.280",
44381
+ version: "0.1.282",
44367
44382
  init: (config2) => {
44368
44383
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44369
44384
  }