@nine-lab/nine-mu 0.1.168 → 0.1.170

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
@@ -13796,24 +13796,24 @@ initActions_fn = function() {
13796
13796
  this.shadowRoot.querySelector("#q").addEventListener("keypress", async (e) => {
13797
13797
  if (e.key === "Enter" && !e.shiftKey) {
13798
13798
  e.preventDefault();
13799
- const userInput = e.target.value.trim();
13799
+ const target = e.target;
13800
+ const userInput = target.value.trim();
13800
13801
  if (!userInput) return;
13801
- e.target.setAttribute("disabled", "disabled");
13802
+ target.setAttribute("disabled", "disabled");
13802
13803
  __privateGet(this, _$nineChatMessage).add("me", userInput);
13803
13804
  __privateGet(this, _$nineChatMessage).add("ing", "");
13804
13805
  setTimeout(() => {
13805
- e.target.value = "";
13806
+ target.value = "";
13806
13807
  });
13807
- console.log("===========start");
13808
- const [_, err] = await nine.safe(__privateGet(this, _manager).handleChatSubmit(e.target));
13809
- console.log("===========end");
13808
+ const [result, err] = await nine.safe(__privateGet(this, _manager).handleChatSubmit(target));
13809
+ target.removeAttribute("disabled");
13810
13810
  if (err) {
13811
13811
  console.error("Manager 실행 에러:", err);
13812
13812
  this.shadowRoot.querySelectorAll("nx-ai-ing-message").forEach((el) => el.remove());
13813
13813
  nine.alert("메시지 전송 중 오류가 발생했습니다.").rgb().shake();
13814
+ } else {
13815
+ console.log(result);
13814
13816
  }
13815
- console.log(e.target);
13816
- e.target.removeAttribute("disabled");
13817
13817
  }
13818
13818
  });
13819
13819
  };
@@ -13822,7 +13822,7 @@ render_fn = function() {
13822
13822
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
13823
13823
  this.shadowRoot.innerHTML = `
13824
13824
  <style>
13825
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.167"}/dist/css/nine-mu.css";
13825
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.169"}/dist/css/nine-mu.css";
13826
13826
  ${customImport}
13827
13827
  </style>
13828
13828
  <div class="wrapper">
@@ -40041,7 +40041,7 @@ class NineDiff extends HTMLElement {
40041
40041
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
40042
40042
  this.shadowRoot.innerHTML = `
40043
40043
  <style>
40044
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.167"}/dist/css/nine-mu.css";
40044
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.169"}/dist/css/nine-mu.css";
40045
40045
  ${customImport}
40046
40046
  </style>
40047
40047
 
@@ -40151,7 +40151,7 @@ render_fn2 = function() {
40151
40151
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
40152
40152
  this.shadowRoot.innerHTML = `
40153
40153
  <style>
40154
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.167"}/dist/css/nine-mu.css";
40154
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.169"}/dist/css/nine-mu.css";
40155
40155
  ${customImport}
40156
40156
  </style>
40157
40157
 
@@ -40479,7 +40479,7 @@ class ChatMessage extends HTMLElement {
40479
40479
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
40480
40480
  this.shadowRoot.innerHTML = `
40481
40481
  <style>
40482
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.167"}/dist/css/nine-mu.css";
40482
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.169"}/dist/css/nine-mu.css";
40483
40483
  ${customImport}
40484
40484
  </style>
40485
40485
 
@@ -40573,7 +40573,7 @@ if (!customElements.get("nine-chat-me")) {
40573
40573
  customElements.define("nine-chat-me", MyMessage);
40574
40574
  }
40575
40575
  const NineMu = {
40576
- version: "0.1.167",
40576
+ version: "0.1.169",
40577
40577
  init: (config2) => {
40578
40578
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
40579
40579
  }