@nine-lab/nine-mu 0.1.286 β†’ 0.1.288

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.285"}/dist/css/nine-mu.css";
17566
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.287"}/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.285"}/dist/css/nine-mu.css";
43783
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.287"}/dist/css/nine-mu.css";
43784
43784
  ${customImport}
43785
43785
  </style>
43786
43786
 
@@ -43847,14 +43847,14 @@ class NineDiffPopup extends HTMLElement {
43847
43847
  return this;
43848
43848
  }
43849
43849
  /**
43850
- * πŸ’‘ [100% 동적 λΉŒλ”© μ‹œμŠ€ν…œ]
43851
- * λ“€μ–΄μ˜¨ 데이터 κ°œμˆ˜μ— μ •ν™•νžˆ λ§žμΆ”μ–΄ λŸ°νƒ€μž„μ— νƒ­ νŽ˜μ΄μ§€μ™€ 에디터λ₯Ό μΌλŒ€μΌ λ§€ν•‘μœΌλ‘œ 직접 μ‘°λ¦½ν•©λ‹ˆλ‹€.
43852
- * @param {Array} fileList - [{ layer: "MyBatis", full_path: "...", asis_source: "...", source: "..." }]
43850
+ * πŸ’‘ [정석 데이터 μœ„μž„ 연동 μ—”μ§„]
43853
43851
  */
43854
43852
  async data(fileList) {
43855
43853
  if (!Array.isArray(fileList) || fileList.length === 0) return this;
43856
43854
  __privateSet(this, _fileList, fileList);
43857
- __privateGet(this, _tabContainer).innerHTML = "";
43855
+ if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).clearTabs === "function") {
43856
+ __privateGet(this, _tabContainer).clearTabs();
43857
+ }
43858
43858
  const detectLanguage = (path) => {
43859
43859
  const lower = (path || "").toLowerCase();
43860
43860
  if (lower.endsWith(".xml")) return "xml";
@@ -43864,31 +43864,28 @@ class NineDiffPopup extends HTMLElement {
43864
43864
  };
43865
43865
  fileList.forEach((file) => {
43866
43866
  const { layer: layer2, full_path } = file;
43867
- detectLanguage(full_path);
43868
43867
  const fileName = full_path.split("/").pop() || "Unknown";
43869
43868
  const captionName = `${layer2.toUpperCase()} (${fileName})`;
43870
- const tabPage = document.createElement("nine-tab-page");
43871
- tabPage.setAttribute("caption", captionName);
43872
- const diffWrapper = document.createElement("div");
43873
- diffWrapper.className = "diff-wrapper";
43874
- const diffView = document.createElement("nine-diff");
43875
- diffView.className = layer2;
43876
- diffWrapper.appendChild(diffView);
43877
- tabPage.appendChild(diffWrapper);
43878
- __privateGet(this, _tabContainer).appendChild(tabPage);
43869
+ const targetHtmlContent = `
43870
+ <div class="diff-wrapper">
43871
+ <nine-diff class="${layer2}"></nine-diff>
43872
+ </div>
43873
+ `;
43874
+ if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).addTabPage === "function") {
43875
+ __privateGet(this, _tabContainer).addTabPage(captionName, targetHtmlContent);
43876
+ }
43879
43877
  });
43880
43878
  setTimeout(() => {
43881
43879
  fileList.forEach((file) => {
43882
- const { layer: layer2, asis_source, source } = file;
43883
- const diff = this.shadowRoot.querySelector(`nine-diff.${layer2}`);
43880
+ const { layer: layer2, full_path, asis_source, source } = file;
43881
+ const diff = __privateGet(this, _tabContainer).shadowRoot.querySelector(`nine-diff.${layer2}`);
43884
43882
  if (diff) {
43885
- const lang = detectLanguage(file.full_path);
43883
+ const lang = detectLanguage(full_path);
43886
43884
  diff.initialize(asis_source || "", source || "", lang);
43885
+ } else {
43886
+ trace.error(`❌ 에디터 탐색 μ‹€νŒ¨: nine-diff.${layer2}`);
43887
43887
  }
43888
43888
  });
43889
- if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).initialize === "function") {
43890
- __privateGet(this, _tabContainer).initialize();
43891
- }
43892
43889
  }, 150);
43893
43890
  return this;
43894
43891
  }
@@ -43899,11 +43896,11 @@ _fileList = new WeakMap();
43899
43896
  _host = new WeakMap();
43900
43897
  _NineDiffPopup_instances = new WeakSet();
43901
43898
  /**
43902
- * πŸ’‘ κΈ°λ³Έ λ‹€μ΄μ–Όλ‘œκ·Έ μ™Έκ³½ ν”„λ ˆμž„λ§Œ μ •μ μœΌλ‘œ μ„ μ–Έ (νƒ­ λ ˆμ΄μ•„μ›ƒμ€ λΉ„μ›Œλ‘ )
43899
+ * πŸ’‘ κΈ°λ³Έ λ‹€μ΄μ–Όλ‘œκ·Έ μ™Έκ³½ ν”„λ ˆμž„ 및 μŠ€νƒ€μΌ μŠ€μΌ€ν΄λ”© λ Œλ”λ§
43903
43900
  */
43904
43901
  renderScaffolding_fn = function() {
43905
43902
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43906
- const appVersion = "0.1.285";
43903
+ const appVersion = "0.1.287";
43907
43904
  this.shadowRoot.innerHTML = `
43908
43905
  <style>
43909
43906
  @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${appVersion}/dist/css/nine-mu.css";
@@ -43928,9 +43925,9 @@ renderScaffolding_fn = function() {
43928
43925
  flex-direction: column;
43929
43926
  height: 100%;
43930
43927
  }
43931
- /* πŸ’‘ ν•˜μ–—κ²Œ μ•ˆ λ³΄μ΄λŠ” ν˜„μƒμ„ λ°©μ§€ν•˜κΈ° μœ„ν•΄ 동적 μ‚½μž…λ  에디터 μ˜μ—­μ˜ 높이λ₯Ό ν™•μ‹€νžˆ 보μž₯ */
43928
+ /* πŸ’‘ 에디터 μ˜μ—­μ˜ κ°€μ‹œμ„± 및 λ„ˆλΉ„/높이 ν•œκ³„μ„  κ³ μ • */
43932
43929
  .diff-wrapper {
43933
- height: calc(80vh - 120px);
43930
+ height: calc(80vh - 160px);
43934
43931
  width: 100%;
43935
43932
  display: block;
43936
43933
  }
@@ -43970,7 +43967,7 @@ handleConfirmAll_fn = async function() {
43970
43967
  const payloadList = [];
43971
43968
  for (const file of __privateGet(this, _fileList)) {
43972
43969
  const { layer: layer2, full_path, asis_source } = file;
43973
- const diff = this.shadowRoot.querySelector(`nine-diff.${layer2}`);
43970
+ const diff = __privateGet(this, _tabContainer).shadowRoot.querySelector(`nine-diff.${layer2}`);
43974
43971
  const currentContent = diff ? diff.getContents() : asis_source;
43975
43972
  payloadList.push({
43976
43973
  layer: layer2,
@@ -44283,7 +44280,7 @@ class ChatMessageBody extends HTMLElement {
44283
44280
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44284
44281
  this.shadowRoot.innerHTML = `
44285
44282
  <style>
44286
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.285"}/dist/css/nine-mu.css";
44283
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.287"}/dist/css/nine-mu.css";
44287
44284
  ${customImport}
44288
44285
  </style>
44289
44286
 
@@ -44377,7 +44374,7 @@ if (!customElements.get("nine-chat-progress")) {
44377
44374
  customElements.define("nine-chat-progress", ProgressMessage);
44378
44375
  }
44379
44376
  const NineMu = {
44380
- version: "0.1.285",
44377
+ version: "0.1.287",
44381
44378
  init: (config2) => {
44382
44379
  trace$1.log("πŸ› οΈ Nine-Mu Engine initialized", config2);
44383
44380
  }