@gendive/chatllm 0.17.7 → 0.17.9

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.
@@ -1046,6 +1046,11 @@ interface InputProps {
1046
1046
  * @Todo vibecode - accept 속성 ('image/*', 'application/pdf' 등)
1047
1047
  */
1048
1048
  acceptedFileTypes?: string[];
1049
+ /**
1050
+ * @description AI 면책조항 클릭 핸들러
1051
+ * @Todo vibecode - 하단 "AI는 실수를 할 수 있습니다" 클릭 시 모달 열기
1052
+ */
1053
+ onDisclaimerClick?: () => void;
1049
1054
  }
1050
1055
  interface HeaderProps {
1051
1056
  title: string;
@@ -1046,6 +1046,11 @@ interface InputProps {
1046
1046
  * @Todo vibecode - accept 속성 ('image/*', 'application/pdf' 등)
1047
1047
  */
1048
1048
  acceptedFileTypes?: string[];
1049
+ /**
1050
+ * @description AI 면책조항 클릭 핸들러
1051
+ * @Todo vibecode - 하단 "AI는 실수를 할 수 있습니다" 클릭 시 모달 열기
1052
+ */
1053
+ onDisclaimerClick?: () => void;
1049
1054
  }
1050
1055
  interface HeaderProps {
1051
1056
  title: string;
@@ -4714,7 +4714,8 @@ var ChatInput = ({
4714
4714
  attachments = [],
4715
4715
  onFileAttach,
4716
4716
  onRemoveAttachment,
4717
- acceptedFileTypes
4717
+ acceptedFileTypes,
4718
+ onDisclaimerClick
4718
4719
  }) => {
4719
4720
  const [mainMenuOpen, setMainMenuOpen] = import_react9.default.useState(false);
4720
4721
  const textareaRef = (0, import_react9.useRef)(null);
@@ -4810,7 +4811,7 @@ var ChatInput = ({
4810
4811
  display: "flex",
4811
4812
  flexDirection: "column",
4812
4813
  alignItems: "center",
4813
- paddingBottom: "40px",
4814
+ paddingBottom: "16px",
4814
4815
  paddingTop: "64px",
4815
4816
  background: "linear-gradient(to top, var(--chatllm-bg) 60%, transparent)",
4816
4817
  pointerEvents: "none"
@@ -5413,7 +5414,22 @@ var ChatInput = ({
5413
5414
  )
5414
5415
  ]
5415
5416
  }
5416
- )
5417
+ ),
5418
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { textAlign: "center", marginTop: "10px" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
5419
+ "button",
5420
+ {
5421
+ onClick: onDisclaimerClick,
5422
+ style: {
5423
+ background: "none",
5424
+ border: "none",
5425
+ cursor: onDisclaimerClick ? "pointer" : "default",
5426
+ fontSize: "12px",
5427
+ color: "var(--chatllm-text-muted, #94a3b8)",
5428
+ padding: "2px 8px"
5429
+ },
5430
+ children: "AI\uB294 \uC2E4\uC218\uB97C \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."
5431
+ }
5432
+ ) })
5417
5433
  ]
5418
5434
  }
5419
5435
  )
@@ -10785,33 +10801,8 @@ var ChatUIView = ({
10785
10801
  activeSkillExecution,
10786
10802
  attachments,
10787
10803
  onFileAttach: addAttachments,
10788
- onRemoveAttachment: removeAttachment
10789
- }
10790
- ),
10791
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
10792
- "div",
10793
- {
10794
- style: {
10795
- textAlign: "center",
10796
- padding: "6px 0 10px",
10797
- flexShrink: 0
10798
- },
10799
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
10800
- "button",
10801
- {
10802
- onClick: () => setDisclaimerOpen(true),
10803
- style: {
10804
- background: "none",
10805
- border: "none",
10806
- cursor: "pointer",
10807
- fontSize: "12px",
10808
- color: "var(--chatllm-text-muted, #94a3b8)",
10809
- padding: "2px 8px",
10810
- textDecoration: "none"
10811
- },
10812
- children: "AI\uB294 \uC2E4\uC218\uB97C \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."
10813
- }
10814
- )
10804
+ onRemoveAttachment: removeAttachment,
10805
+ onDisclaimerClick: () => setDisclaimerOpen(true)
10815
10806
  }
10816
10807
  )
10817
10808
  ]