@nine-lab/nine-mu 0.1.291 β†’ 0.1.292

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.290"}/dist/css/nine-mu.css";
17566
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.291"}/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.290"}/dist/css/nine-mu.css";
43783
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.291"}/dist/css/nine-mu.css";
43784
43784
  ${customImport}
43785
43785
  </style>
43786
43786
 
@@ -43875,11 +43875,6 @@ class NineDiffPopup extends HTMLElement {
43875
43875
  currentBtn.style.display = "unset";
43876
43876
  }
43877
43877
  pageBody.innerHTML = `<nine-diff class="${layerName}"></nine-diff>`;
43878
- const freshDiff = pageBody.querySelector(`nine-diff.${layerName}`);
43879
- if (freshDiff) {
43880
- const lang = detectLanguage(fileData.full_path);
43881
- freshDiff.initialize(fileData.asis_source || "", fileData.source || "", lang);
43882
- }
43883
43878
  } else {
43884
43879
  if (currentBtn) {
43885
43880
  currentBtn.style.display = "none";
@@ -43888,9 +43883,21 @@ class NineDiffPopup extends HTMLElement {
43888
43883
  pageBody.innerHTML = "";
43889
43884
  }
43890
43885
  });
43891
- if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).initialize === "function") {
43892
- __privateGet(this, _tabContainer).initialize();
43893
- }
43886
+ requestAnimationFrame(() => {
43887
+ requestAnimationFrame(() => {
43888
+ fileList.forEach((file) => {
43889
+ const { layer: layer2, full_path, asis_source, source } = file;
43890
+ const diff = __privateGet(this, _tabContainer).shadowRoot.querySelector(`nine-diff.${layer2}`);
43891
+ if (diff && typeof diff.initialize === "function") {
43892
+ const lang = detectLanguage(full_path);
43893
+ diff.initialize(asis_source || "", source || "", lang);
43894
+ }
43895
+ });
43896
+ if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).initialize === "function") {
43897
+ __privateGet(this, _tabContainer).initialize();
43898
+ }
43899
+ });
43900
+ });
43894
43901
  }, 120);
43895
43902
  return this;
43896
43903
  }
@@ -43901,11 +43908,11 @@ _fileList = new WeakMap();
43901
43908
  _host = new WeakMap();
43902
43909
  _NineDiffPopup_instances = new WeakSet();
43903
43910
  /**
43904
- * πŸ’‘ νƒ­ νŽ˜μ΄μ§€ μ™Έκ³½ 틀은 μ˜€λ¦¬μ§€λ„ 정적 ꡬ쑰둜 μ•ˆμ „ν•˜κ²Œ 확보 (λ‚΄λΆ€ 에디터 μŠ¬λ‘―μ€ λΉ„μ›Œλ‘ )
43911
+ * πŸ’‘ νƒ­ νŽ˜μ΄μ§€ μ™Έκ³½ 정적 ꡬ쑰 확보
43905
43912
  */
43906
43913
  renderScaffolding_fn = function() {
43907
43914
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43908
- const appVersion = "0.1.290";
43915
+ const appVersion = "0.1.291";
43909
43916
  this.shadowRoot.innerHTML = `
43910
43917
  <style>
43911
43918
  @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${appVersion}/dist/css/nine-mu.css";
@@ -44249,7 +44256,7 @@ class ChatMessageBody extends HTMLElement {
44249
44256
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44250
44257
  this.shadowRoot.innerHTML = `
44251
44258
  <style>
44252
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.290"}/dist/css/nine-mu.css";
44259
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.291"}/dist/css/nine-mu.css";
44253
44260
  ${customImport}
44254
44261
  </style>
44255
44262
 
@@ -44343,7 +44350,7 @@ if (!customElements.get("nine-chat-progress")) {
44343
44350
  customElements.define("nine-chat-progress", ProgressMessage);
44344
44351
  }
44345
44352
  const NineMu = {
44346
- version: "0.1.290",
44353
+ version: "0.1.291",
44347
44354
  init: (config2) => {
44348
44355
  trace$1.log("πŸ› οΈ Nine-Mu Engine initialized", config2);
44349
44356
  }