@gendive/chatllm 0.17.4 → 0.17.5
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/react/index.js +48 -23
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +48 -23
- package/dist/react/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react/index.mjs
CHANGED
|
@@ -4712,6 +4712,7 @@ var ChatInput = ({
|
|
|
4712
4712
|
}
|
|
4713
4713
|
};
|
|
4714
4714
|
const handleKeyDown = (e) => {
|
|
4715
|
+
if (e.nativeEvent.isComposing || e.keyCode === 229) return;
|
|
4715
4716
|
if (e.key === "Enter" && !e.shiftKey) {
|
|
4716
4717
|
e.preventDefault();
|
|
4717
4718
|
onSubmit();
|
|
@@ -8268,8 +8269,18 @@ var MessageBubble = ({
|
|
|
8268
8269
|
]
|
|
8269
8270
|
}
|
|
8270
8271
|
),
|
|
8271
|
-
|
|
8272
|
-
|
|
8272
|
+
message.contentParts?.length && /* @__PURE__ */ jsx15("div", { style: { wordBreak: "break-word" }, children: /* @__PURE__ */ jsx15(
|
|
8273
|
+
ContentPartRenderer,
|
|
8274
|
+
{
|
|
8275
|
+
parts: message.contentParts,
|
|
8276
|
+
onChoiceClick,
|
|
8277
|
+
showThinking,
|
|
8278
|
+
thinkingDefaultOpen
|
|
8279
|
+
}
|
|
8280
|
+
) }),
|
|
8281
|
+
isLoading && !displayContent && !message.isDeepResearch && (message.contentParts?.length ? (
|
|
8282
|
+
/* contentParts 있을 때: 간소화된 AI 응답 대기 표시 */
|
|
8283
|
+
/* @__PURE__ */ jsxs14("div", { style: { display: "flex", alignItems: "center", gap: "8px", marginTop: "4px" }, children: [
|
|
8273
8284
|
/* @__PURE__ */ jsxs14("div", { style: { display: "flex", gap: "4px", alignItems: "center" }, children: [
|
|
8274
8285
|
/* @__PURE__ */ jsx15("span", { className: "chatllm-dot-bounce", style: dotStyle }),
|
|
8275
8286
|
/* @__PURE__ */ jsx15("span", { className: "chatllm-dot-bounce", style: dotStyle }),
|
|
@@ -8279,33 +8290,47 @@ var MessageBubble = ({
|
|
|
8279
8290
|
"span",
|
|
8280
8291
|
{
|
|
8281
8292
|
style: {
|
|
8282
|
-
fontSize: "
|
|
8283
|
-
fontWeight:
|
|
8293
|
+
fontSize: "13px",
|
|
8294
|
+
fontWeight: 500,
|
|
8284
8295
|
fontStyle: "italic",
|
|
8285
8296
|
color: "var(--chatllm-text-muted)"
|
|
8286
8297
|
},
|
|
8287
|
-
children: "\uC0DD\
|
|
8298
|
+
children: "\uB2F5\uBCC0 \uC0DD\uC131 \uC911..."
|
|
8288
8299
|
}
|
|
8289
8300
|
)
|
|
8290
|
-
] })
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
/* @__PURE__ */
|
|
8296
|
-
|
|
8301
|
+
] })
|
|
8302
|
+
) : (
|
|
8303
|
+
/* contentParts 없을 때: 풀 스켈레톤 */
|
|
8304
|
+
/* @__PURE__ */ jsxs14("div", { style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [
|
|
8305
|
+
/* @__PURE__ */ jsxs14("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
|
|
8306
|
+
/* @__PURE__ */ jsxs14("div", { style: { display: "flex", gap: "4px", alignItems: "center" }, children: [
|
|
8307
|
+
/* @__PURE__ */ jsx15("span", { className: "chatllm-dot-bounce", style: dotStyle }),
|
|
8308
|
+
/* @__PURE__ */ jsx15("span", { className: "chatllm-dot-bounce", style: dotStyle }),
|
|
8309
|
+
/* @__PURE__ */ jsx15("span", { className: "chatllm-dot-bounce", style: dotStyle })
|
|
8310
|
+
] }),
|
|
8311
|
+
/* @__PURE__ */ jsx15(
|
|
8312
|
+
"span",
|
|
8313
|
+
{
|
|
8314
|
+
style: {
|
|
8315
|
+
fontSize: "14px",
|
|
8316
|
+
fontWeight: 600,
|
|
8317
|
+
fontStyle: "italic",
|
|
8318
|
+
color: "var(--chatllm-text-muted)"
|
|
8319
|
+
},
|
|
8320
|
+
children: "\uC0DD\uAC01 \uC911..."
|
|
8321
|
+
}
|
|
8322
|
+
)
|
|
8323
|
+
] }),
|
|
8324
|
+
/* @__PURE__ */ jsxs14("div", { className: "chatllm-skeleton-pulse", style: { display: "flex", flexDirection: "column", gap: "12px" }, children: [
|
|
8325
|
+
/* @__PURE__ */ jsx15("div", { style: { height: "32px", width: "75%", backgroundColor: "var(--chatllm-bg-tertiary)", borderRadius: "8px" } }),
|
|
8326
|
+
/* @__PURE__ */ jsxs14("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
|
|
8327
|
+
/* @__PURE__ */ jsx15("div", { style: { height: "16px", width: "100%", backgroundColor: "var(--chatllm-bg-secondary)", borderRadius: "4px" } }),
|
|
8328
|
+
/* @__PURE__ */ jsx15("div", { style: { height: "16px", width: "85%", backgroundColor: "var(--chatllm-bg-secondary)", borderRadius: "4px" } }),
|
|
8329
|
+
/* @__PURE__ */ jsx15("div", { style: { height: "16px", width: "65%", backgroundColor: "var(--chatllm-bg-secondary)", borderRadius: "4px" } })
|
|
8330
|
+
] })
|
|
8297
8331
|
] })
|
|
8298
8332
|
] })
|
|
8299
|
-
|
|
8300
|
-
message.contentParts?.length && /* @__PURE__ */ jsx15("div", { style: { wordBreak: "break-word" }, children: /* @__PURE__ */ jsx15(
|
|
8301
|
-
ContentPartRenderer,
|
|
8302
|
-
{
|
|
8303
|
-
parts: message.contentParts,
|
|
8304
|
-
onChoiceClick,
|
|
8305
|
-
showThinking,
|
|
8306
|
-
thinkingDefaultOpen
|
|
8307
|
-
}
|
|
8308
|
-
) }),
|
|
8333
|
+
)),
|
|
8309
8334
|
displayContent ? /* @__PURE__ */ jsx15("div", { style: { wordBreak: "break-word" }, children: /* @__PURE__ */ jsx15(
|
|
8310
8335
|
MarkdownRenderer,
|
|
8311
8336
|
{
|
|
@@ -8327,7 +8352,7 @@ var MessageBubble = ({
|
|
|
8327
8352
|
}
|
|
8328
8353
|
}
|
|
8329
8354
|
),
|
|
8330
|
-
!isLoading && !displayContent && !message.pollBlock && /* @__PURE__ */ jsx15(
|
|
8355
|
+
!isLoading && !displayContent && !message.pollBlock && !message.contentParts?.length && /* @__PURE__ */ jsx15(
|
|
8331
8356
|
"div",
|
|
8332
8357
|
{
|
|
8333
8358
|
style: {
|