@nine-lab/nine-mu 0.1.156 → 0.1.158
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 +19 -13
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineChat.js +23 -8
package/dist/nine-mu.js
CHANGED
|
@@ -13798,17 +13798,23 @@ initInteractions_fn = function() {
|
|
|
13798
13798
|
// --- [그룹 2: Action] 엔터키 입력 시 서비스 호출 ---
|
|
13799
13799
|
initActions_fn = function() {
|
|
13800
13800
|
const $textarea = this.shadowRoot.querySelector("#q");
|
|
13801
|
+
this.isProcessing = false;
|
|
13801
13802
|
$textarea.addEventListener("keypress", async (e) => {
|
|
13802
13803
|
if (e.key === "Enter" && !e.shiftKey) {
|
|
13803
13804
|
e.preventDefault();
|
|
13804
|
-
const
|
|
13805
|
-
if (!
|
|
13806
|
-
|
|
13807
|
-
|
|
13808
|
-
|
|
13809
|
-
|
|
13810
|
-
__privateGet(this,
|
|
13811
|
-
|
|
13805
|
+
const userInput = $textarea.value.trim();
|
|
13806
|
+
if (!userInput || this.isProcessing) return;
|
|
13807
|
+
this.isProcessing = true;
|
|
13808
|
+
__privateGet(this, _$nineChatMessage).add("me", userInput);
|
|
13809
|
+
__privateGet(this, _$nineChatMessage).add("ing", "");
|
|
13810
|
+
$textarea.value = "";
|
|
13811
|
+
const [_, err] = await nine.safe(__privateGet(this, _manager).handleChatSubmit(userInput));
|
|
13812
|
+
if (err) {
|
|
13813
|
+
console.error("Manager 실행 에러:", err);
|
|
13814
|
+
this.shadowRoot.querySelectorAll("nx-ai-ing-message").forEach((el) => el.remove());
|
|
13815
|
+
nine.alert("메시지 전송 중 오류가 발생했습니다.").rgb().shake();
|
|
13816
|
+
}
|
|
13817
|
+
this.isProcessing = false;
|
|
13812
13818
|
}
|
|
13813
13819
|
});
|
|
13814
13820
|
};
|
|
@@ -13817,7 +13823,7 @@ render_fn = function() {
|
|
|
13817
13823
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
13818
13824
|
this.shadowRoot.innerHTML = `
|
|
13819
13825
|
<style>
|
|
13820
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
13826
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.157"}/dist/css/nine-mu.css";
|
|
13821
13827
|
${customImport}
|
|
13822
13828
|
</style>
|
|
13823
13829
|
<div class="wrapper">
|
|
@@ -40036,7 +40042,7 @@ class NineDiff extends HTMLElement {
|
|
|
40036
40042
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40037
40043
|
this.shadowRoot.innerHTML = `
|
|
40038
40044
|
<style>
|
|
40039
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40045
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.157"}/dist/css/nine-mu.css";
|
|
40040
40046
|
${customImport}
|
|
40041
40047
|
</style>
|
|
40042
40048
|
|
|
@@ -40146,7 +40152,7 @@ render_fn2 = function() {
|
|
|
40146
40152
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40147
40153
|
this.shadowRoot.innerHTML = `
|
|
40148
40154
|
<style>
|
|
40149
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40155
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.157"}/dist/css/nine-mu.css";
|
|
40150
40156
|
${customImport}
|
|
40151
40157
|
</style>
|
|
40152
40158
|
|
|
@@ -40474,7 +40480,7 @@ class ChatMessage extends HTMLElement {
|
|
|
40474
40480
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40475
40481
|
this.shadowRoot.innerHTML = `
|
|
40476
40482
|
<style>
|
|
40477
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40483
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.157"}/dist/css/nine-mu.css";
|
|
40478
40484
|
${customImport}
|
|
40479
40485
|
</style>
|
|
40480
40486
|
|
|
@@ -40568,7 +40574,7 @@ if (!customElements.get("nine-chat-me")) {
|
|
|
40568
40574
|
customElements.define("nine-chat-me", MyMessage);
|
|
40569
40575
|
}
|
|
40570
40576
|
const NineMu = {
|
|
40571
|
-
version: "0.1.
|
|
40577
|
+
version: "0.1.157",
|
|
40572
40578
|
init: (config2) => {
|
|
40573
40579
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
40574
40580
|
}
|