@apteva/apteva-kit 0.1.96 → 0.1.98

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/index.d.mts CHANGED
@@ -274,6 +274,7 @@ interface ChatProps {
274
274
  onError?: (error: Error) => void;
275
275
  onToolCall?: (toolName: string, toolId: string) => void;
276
276
  onToolResult?: (toolName: string, result?: any) => void;
277
+ variant?: 'default' | 'minimal' | 'terminal';
277
278
  theme?: 'light' | 'dark' | 'auto';
278
279
  placeholder?: string;
279
280
  showHeader?: boolean;
package/dist/index.d.ts CHANGED
@@ -274,6 +274,7 @@ interface ChatProps {
274
274
  onError?: (error: Error) => void;
275
275
  onToolCall?: (toolName: string, toolId: string) => void;
276
276
  onToolResult?: (toolName: string, result?: any) => void;
277
+ variant?: 'default' | 'minimal' | 'terminal';
277
278
  theme?: 'light' | 'dark' | 'auto';
278
279
  placeholder?: string;
279
280
  showHeader?: boolean;
package/dist/index.js CHANGED
@@ -3017,6 +3017,7 @@ var Chat = _react.forwardRef.call(void 0, function Chat2({
3017
3017
  onToolCall,
3018
3018
  onToolResult,
3019
3019
  // UI
3020
+ variant = "default",
3020
3021
  placeholder,
3021
3022
  showHeader = true,
3022
3023
  headerTitle = "Chat",
@@ -3585,13 +3586,16 @@ ${planToExecute}`;
3585
3586
  setCurrentRequestId(null);
3586
3587
  };
3587
3588
  const isCompact = commandVariant === "compact";
3588
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: cn("apteva-chat flex flex-col h-full", className), children: [
3589
- showHeader && mode === "chat" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "apteva-chat-header px-4 py-3 flex items-center justify-between", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
3590
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "apteva-chat-title", children: headerTitle }),
3591
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: cn(
3592
- "apteva-chat-status",
3593
- isLoading ? chatToolName ? "apteva-chat-status-tool" : "apteva-chat-status-thinking" : "apteva-chat-status-ready"
3594
- ), children: isLoading ? chatToolName ? `Using ${chatToolName}...` : "Thinking..." : "Ready" })
3589
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: cn("apteva-chat flex flex-col h-full", variant !== "default" && `apteva-chat-${variant}`, className), children: [
3590
+ showHeader && mode === "chat" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "apteva-chat-header px-4 py-3 flex items-center justify-between", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
3591
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "apteva-chat-icon", children: variant === "terminal" ? ">_" : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { className: "w-5 h-5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z" }) }) }),
3592
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
3593
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "apteva-chat-title", children: headerTitle }),
3594
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: cn(
3595
+ "apteva-chat-status",
3596
+ isLoading ? chatToolName ? "apteva-chat-status-tool" : "apteva-chat-status-thinking" : "apteva-chat-status-ready"
3597
+ ), children: isLoading ? chatToolName ? `Using ${chatToolName}...` : "Thinking..." : "Ready" })
3598
+ ] })
3595
3599
  ] }) }),
3596
3600
  mode === "chat" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3597
3601
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,