@nine-lab/nine-mu 0.1.162 → 0.1.164

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
@@ -13801,14 +13801,14 @@ initActions_fn = function() {
13801
13801
  $textarea.addEventListener("keypress", async (e) => {
13802
13802
  if (e.key === "Enter" && !e.shiftKey) {
13803
13803
  e.preventDefault();
13804
- const userInput = $textarea.value.trim();
13805
- if (!userInput || this.isProcessing) return;
13806
- $textarea.disabled = true;
13804
+ const userInput = e.target.value.trim();
13805
+ if (!userInput) return;
13806
+ e.target.setAttribute("disabled", "disabled");
13807
13807
  trace.log("22222222222222");
13808
13808
  __privateGet(this, _$nineChatMessage).add("me", userInput);
13809
13809
  __privateGet(this, _$nineChatMessage).add("ing", "");
13810
13810
  setTimeout(() => {
13811
- $textarea.value = "";
13811
+ e.target.value = "";
13812
13812
  });
13813
13813
  const [_, err] = await nine.safe(__privateGet(this, _manager).handleChatSubmit($textarea));
13814
13814
  if (err) {
@@ -13816,7 +13816,6 @@ initActions_fn = function() {
13816
13816
  this.shadowRoot.querySelectorAll("nx-ai-ing-message").forEach((el) => el.remove());
13817
13817
  nine.alert("메시지 전송 중 오류가 발생했습니다.").rgb().shake();
13818
13818
  }
13819
- $textarea.disabled = false;
13820
13819
  }
13821
13820
  });
13822
13821
  };
@@ -13825,7 +13824,7 @@ render_fn = function() {
13825
13824
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
13826
13825
  this.shadowRoot.innerHTML = `
13827
13826
  <style>
13828
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.161"}/dist/css/nine-mu.css";
13827
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.163"}/dist/css/nine-mu.css";
13829
13828
  ${customImport}
13830
13829
  </style>
13831
13830
  <div class="wrapper">
@@ -40044,7 +40043,7 @@ class NineDiff extends HTMLElement {
40044
40043
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
40045
40044
  this.shadowRoot.innerHTML = `
40046
40045
  <style>
40047
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.161"}/dist/css/nine-mu.css";
40046
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.163"}/dist/css/nine-mu.css";
40048
40047
  ${customImport}
40049
40048
  </style>
40050
40049
 
@@ -40154,7 +40153,7 @@ render_fn2 = function() {
40154
40153
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
40155
40154
  this.shadowRoot.innerHTML = `
40156
40155
  <style>
40157
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.161"}/dist/css/nine-mu.css";
40156
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.163"}/dist/css/nine-mu.css";
40158
40157
  ${customImport}
40159
40158
  </style>
40160
40159
 
@@ -40482,7 +40481,7 @@ class ChatMessage extends HTMLElement {
40482
40481
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
40483
40482
  this.shadowRoot.innerHTML = `
40484
40483
  <style>
40485
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.161"}/dist/css/nine-mu.css";
40484
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.163"}/dist/css/nine-mu.css";
40486
40485
  ${customImport}
40487
40486
  </style>
40488
40487
 
@@ -40576,7 +40575,7 @@ if (!customElements.get("nine-chat-me")) {
40576
40575
  customElements.define("nine-chat-me", MyMessage);
40577
40576
  }
40578
40577
  const NineMu = {
40579
- version: "0.1.161",
40578
+ version: "0.1.163",
40580
40579
  init: (config2) => {
40581
40580
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
40582
40581
  }