@nine-lab/nine-mu 0.1.158 → 0.1.160
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/css/nine-mu.css +6 -0
- package/dist/nine-mu.js +11 -10
- 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/public/css/nine-mu.css +6 -0
- package/src/components/NineChat.js +9 -5
package/dist/css/nine-mu.css
CHANGED
|
@@ -207,6 +207,12 @@
|
|
|
207
207
|
textarea:focus {
|
|
208
208
|
border: 1px solid green;
|
|
209
209
|
}
|
|
210
|
+
textarea:disabled {
|
|
211
|
+
background-color: #f5f5f5; /* 연한 회색 배경 */
|
|
212
|
+
color: #999; /* 글자색도 연하게 */
|
|
213
|
+
cursor: not-allowed; /* 마우스 커서를 금지 모양으로 변경 */
|
|
214
|
+
border-color: #ddd; /* 테두리 색상도 힘을 뺌 */
|
|
215
|
+
}
|
|
210
216
|
}
|
|
211
217
|
}
|
|
212
218
|
}
|
package/dist/nine-mu.js
CHANGED
|
@@ -13798,23 +13798,24 @@ initInteractions_fn = function() {
|
|
|
13798
13798
|
// --- [그룹 2: Action] 엔터키 입력 시 서비스 호출 ---
|
|
13799
13799
|
initActions_fn = function() {
|
|
13800
13800
|
const $textarea = this.shadowRoot.querySelector("#q");
|
|
13801
|
-
this.isProcessing = false;
|
|
13802
13801
|
$textarea.addEventListener("keypress", async (e) => {
|
|
13803
13802
|
if (e.key === "Enter" && !e.shiftKey) {
|
|
13804
13803
|
e.preventDefault();
|
|
13805
13804
|
const userInput = $textarea.value.trim();
|
|
13806
13805
|
if (!userInput || this.isProcessing) return;
|
|
13807
|
-
|
|
13806
|
+
$textarea.disabled = true;
|
|
13808
13807
|
__privateGet(this, _$nineChatMessage).add("me", userInput);
|
|
13809
13808
|
__privateGet(this, _$nineChatMessage).add("ing", "");
|
|
13810
|
-
|
|
13811
|
-
|
|
13809
|
+
setTimeout(() => {
|
|
13810
|
+
$textarea.value = "";
|
|
13811
|
+
});
|
|
13812
|
+
const [_, err] = await nine.safe(__privateGet(this, _manager).handleChatSubmit($textarea));
|
|
13812
13813
|
if (err) {
|
|
13813
13814
|
console.error("Manager 실행 에러:", err);
|
|
13814
13815
|
this.shadowRoot.querySelectorAll("nx-ai-ing-message").forEach((el) => el.remove());
|
|
13815
13816
|
nine.alert("메시지 전송 중 오류가 발생했습니다.").rgb().shake();
|
|
13816
13817
|
}
|
|
13817
|
-
|
|
13818
|
+
$textarea.disabled = false;
|
|
13818
13819
|
}
|
|
13819
13820
|
});
|
|
13820
13821
|
};
|
|
@@ -13823,7 +13824,7 @@ render_fn = function() {
|
|
|
13823
13824
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
13824
13825
|
this.shadowRoot.innerHTML = `
|
|
13825
13826
|
<style>
|
|
13826
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
13827
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.159"}/dist/css/nine-mu.css";
|
|
13827
13828
|
${customImport}
|
|
13828
13829
|
</style>
|
|
13829
13830
|
<div class="wrapper">
|
|
@@ -40042,7 +40043,7 @@ class NineDiff extends HTMLElement {
|
|
|
40042
40043
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40043
40044
|
this.shadowRoot.innerHTML = `
|
|
40044
40045
|
<style>
|
|
40045
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40046
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.159"}/dist/css/nine-mu.css";
|
|
40046
40047
|
${customImport}
|
|
40047
40048
|
</style>
|
|
40048
40049
|
|
|
@@ -40152,7 +40153,7 @@ render_fn2 = function() {
|
|
|
40152
40153
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40153
40154
|
this.shadowRoot.innerHTML = `
|
|
40154
40155
|
<style>
|
|
40155
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40156
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.159"}/dist/css/nine-mu.css";
|
|
40156
40157
|
${customImport}
|
|
40157
40158
|
</style>
|
|
40158
40159
|
|
|
@@ -40480,7 +40481,7 @@ class ChatMessage extends HTMLElement {
|
|
|
40480
40481
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40481
40482
|
this.shadowRoot.innerHTML = `
|
|
40482
40483
|
<style>
|
|
40483
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40484
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.159"}/dist/css/nine-mu.css";
|
|
40484
40485
|
${customImport}
|
|
40485
40486
|
</style>
|
|
40486
40487
|
|
|
@@ -40574,7 +40575,7 @@ if (!customElements.get("nine-chat-me")) {
|
|
|
40574
40575
|
customElements.define("nine-chat-me", MyMessage);
|
|
40575
40576
|
}
|
|
40576
40577
|
const NineMu = {
|
|
40577
|
-
version: "0.1.
|
|
40578
|
+
version: "0.1.159",
|
|
40578
40579
|
init: (config2) => {
|
|
40579
40580
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
40580
40581
|
}
|