@nine-lab/nine-mu 0.1.282 → 0.1.284

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