@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.
@@ -4778,6 +4778,7 @@ var ChatInput = ({
4778
4778
  }
4779
4779
  };
4780
4780
  const handleKeyDown = (e) => {
4781
+ if (e.nativeEvent.isComposing || e.keyCode === 229) return;
4781
4782
  if (e.key === "Enter" && !e.shiftKey) {
4782
4783
  e.preventDefault();
4783
4784
  onSubmit();
@@ -8334,8 +8335,18 @@ var MessageBubble = ({
8334
8335
  ]
8335
8336
  }
8336
8337
  ),
8337
- isLoading && !displayContent && !message.isDeepResearch && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [
8338
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
8338
+ message.contentParts?.length && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { wordBreak: "break-word" }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8339
+ ContentPartRenderer,
8340
+ {
8341
+ parts: message.contentParts,
8342
+ onChoiceClick,
8343
+ showThinking,
8344
+ thinkingDefaultOpen
8345
+ }
8346
+ ) }),
8347
+ isLoading && !displayContent && !message.isDeepResearch && (message.contentParts?.length ? (
8348
+ /* contentParts 있을 때: 간소화된 AI 응답 대기 표시 */
8349
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "8px", marginTop: "4px" }, children: [
8339
8350
  /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", gap: "4px", alignItems: "center" }, children: [
8340
8351
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "chatllm-dot-bounce", style: dotStyle }),
8341
8352
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "chatllm-dot-bounce", style: dotStyle }),
@@ -8345,33 +8356,47 @@ var MessageBubble = ({
8345
8356
  "span",
8346
8357
  {
8347
8358
  style: {
8348
- fontSize: "14px",
8349
- fontWeight: 600,
8359
+ fontSize: "13px",
8360
+ fontWeight: 500,
8350
8361
  fontStyle: "italic",
8351
8362
  color: "var(--chatllm-text-muted)"
8352
8363
  },
8353
- children: "\uC0DD\uAC01 \uC911..."
8364
+ children: "\uB2F5\uBCC0 \uC0DD\uC131 \uC911..."
8354
8365
  }
8355
8366
  )
8356
- ] }),
8357
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "chatllm-skeleton-pulse", style: { display: "flex", flexDirection: "column", gap: "12px" }, children: [
8358
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { height: "32px", width: "75%", backgroundColor: "var(--chatllm-bg-tertiary)", borderRadius: "8px" } }),
8359
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
8360
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { height: "16px", width: "100%", backgroundColor: "var(--chatllm-bg-secondary)", borderRadius: "4px" } }),
8361
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { height: "16px", width: "85%", backgroundColor: "var(--chatllm-bg-secondary)", borderRadius: "4px" } }),
8362
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { height: "16px", width: "65%", backgroundColor: "var(--chatllm-bg-secondary)", borderRadius: "4px" } })
8367
+ ] })
8368
+ ) : (
8369
+ /* contentParts 없을 때: 스켈레톤 */
8370
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [
8371
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
8372
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", gap: "4px", alignItems: "center" }, children: [
8373
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "chatllm-dot-bounce", style: dotStyle }),
8374
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "chatllm-dot-bounce", style: dotStyle }),
8375
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "chatllm-dot-bounce", style: dotStyle })
8376
+ ] }),
8377
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8378
+ "span",
8379
+ {
8380
+ style: {
8381
+ fontSize: "14px",
8382
+ fontWeight: 600,
8383
+ fontStyle: "italic",
8384
+ color: "var(--chatllm-text-muted)"
8385
+ },
8386
+ children: "\uC0DD\uAC01 \uC911..."
8387
+ }
8388
+ )
8389
+ ] }),
8390
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "chatllm-skeleton-pulse", style: { display: "flex", flexDirection: "column", gap: "12px" }, children: [
8391
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { height: "32px", width: "75%", backgroundColor: "var(--chatllm-bg-tertiary)", borderRadius: "8px" } }),
8392
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
8393
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { height: "16px", width: "100%", backgroundColor: "var(--chatllm-bg-secondary)", borderRadius: "4px" } }),
8394
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { height: "16px", width: "85%", backgroundColor: "var(--chatllm-bg-secondary)", borderRadius: "4px" } }),
8395
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { height: "16px", width: "65%", backgroundColor: "var(--chatllm-bg-secondary)", borderRadius: "4px" } })
8396
+ ] })
8363
8397
  ] })
8364
8398
  ] })
8365
- ] }),
8366
- message.contentParts?.length && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { wordBreak: "break-word" }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8367
- ContentPartRenderer,
8368
- {
8369
- parts: message.contentParts,
8370
- onChoiceClick,
8371
- showThinking,
8372
- thinkingDefaultOpen
8373
- }
8374
- ) }),
8399
+ )),
8375
8400
  displayContent ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { wordBreak: "break-word" }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8376
8401
  MarkdownRenderer,
8377
8402
  {
@@ -8393,7 +8418,7 @@ var MessageBubble = ({
8393
8418
  }
8394
8419
  }
8395
8420
  ),
8396
- !isLoading && !displayContent && !message.pollBlock && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8421
+ !isLoading && !displayContent && !message.pollBlock && !message.contentParts?.length && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8397
8422
  "div",
8398
8423
  {
8399
8424
  style: {