agentic-ui-kit 0.4.0 → 0.5.1

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.
@@ -75,6 +75,13 @@ export interface ChatIcons {
75
75
  file: ReactNode;
76
76
  /** Remove an attachment. */
77
77
  remove: ReactNode;
78
+ /**
79
+ * Left of the thinking / tool-steps summary while the model works, e.g. your logo animating. None by
80
+ * default.
81
+ */
82
+ activity?: ReactNode;
83
+ /** The same spot once the steps are done, e.g. the logo at rest. None by default. */
84
+ activityDone?: ReactNode;
78
85
  }
79
86
  /** Lucide icons, plus the claude.ai caret. Unsized: the places that show them size them with CSS. */
80
87
  export declare const defaultIcons: ChatIcons;
@@ -175,10 +175,17 @@ export interface ChatLabels {
175
175
  effortNote: string;
176
176
  /** Badge on the recommended effort. */
177
177
  recommended: string;
178
+ /** Ends of the effort slider. */
179
+ effortFaster: string;
180
+ effortSmarter: string;
178
181
  /** Submenu item and list name. */
179
182
  moreModels: string;
180
183
  /** Accessible name of a widget without a title. */
181
184
  widget: string;
185
+ /** Link left where a visual was, once a later reply updated it. */
186
+ visualUpdated: string;
187
+ /** Under a visual while its update streams. */
188
+ visualUpdating: string;
182
189
  /** Loading line while a widget streams and the model gave none. */
183
190
  drawingWidget: string;
184
191
  }
@@ -44,6 +44,11 @@ export interface ChatViewProps {
44
44
  emptyState?: (composer: ReactNode) => ReactNode;
45
45
  /** Small print under the composer. */
46
46
  disclaimer?: ReactNode;
47
+ /**
48
+ * Wraps the composer, on the empty screen and docked under the chat, to put things outside its box:
49
+ * buttons above or beside it, a row of chips under it. `where` says which of the two it is.
50
+ */
51
+ renderComposer?: (composer: ReactNode, where: "empty" | "docked") => ReactNode;
47
52
  /** "full": a page. "panel": a docked side panel. "inline": a small area inside a form. */
48
53
  density?: Density;
49
54
  /** Width of the message column, e.g. "48rem". Users can change it in settings. */
@@ -53,11 +58,14 @@ export interface ChatViewProps {
53
58
  className?: string;
54
59
  }
55
60
  /** A whole chat: header, the conversation, the docked composer. An empty chat shows `emptyState`. */
56
- export declare function ChatView({ messages, busy, onSend, onStop, approvals, onApprove, onRetry, onEdit, onFeedback, onReadAloud, messageActions, renderPart, widgets, header, composer, emptyState, disclaimer, density, contentWidth, contentPadding, className, }: ChatViewProps): import("react").JSX.Element;
61
+ export declare function ChatView({ messages, busy, onSend, onStop, approvals, onApprove, onRetry, onEdit, onFeedback, onReadAloud, messageActions, renderPart, widgets, header, composer, emptyState, disclaimer, renderComposer, density, contentWidth, contentPadding, className, }: ChatViewProps): import("react").JSX.Element;
57
62
  export interface EmptyStateProps {
58
63
  /** "Good evening, Alex". */
59
64
  greeting: ReactNode;
60
- /** Mark left of the greeting, e.g. a logo. */
65
+ /**
66
+ * Mark left of the greeting, e.g. a logo. Its currentColor is --chat-empty-icon (default the accent), for
67
+ * one-color marks; a multi-color logo sets its own fills.
68
+ */
61
69
  icon?: ReactNode;
62
70
  /** The centered composer. */
63
71
  children: ReactNode;
@@ -2,6 +2,8 @@ import type { ReactNode } from "react";
2
2
  export interface SidebarProps {
3
3
  /** Name or logo at the top left; hidden when collapsed. */
4
4
  brand?: ReactNode;
5
+ /** A logo mark left of `brand`, sized 1.25rem. It stays at the top of the collapsed rail. */
6
+ brandIcon?: ReactNode;
5
7
  /** Buttons at the top right next to the collapse toggle, e.g. a mode switch. */
6
8
  headerActions?: ReactNode;
7
9
  /** Fixed items under the header: New chat, Search, Projects… (`SidebarItem`s). */
@@ -13,7 +15,7 @@ export interface SidebarProps {
13
15
  className?: string;
14
16
  }
15
17
  /** The claude.ai sidebar frame. Collapses to an icon rail inside `AppShell`; a drawer on phones. */
16
- export declare function Sidebar({ brand, headerActions, nav, children, footer, className }: SidebarProps): import("react").JSX.Element;
18
+ export declare function Sidebar({ brand, brandIcon, headerActions, nav, children, footer, className }: SidebarProps): import("react").JSX.Element;
17
19
  export interface SidebarItemProps {
18
20
  icon: ReactNode;
19
21
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-ui-kit",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "description": "React UI kit for LLM chat and agentic apps: streaming messages, tool calls, approvals, themable with CSS variables.",
5
5
  "license": "MIT",
6
6
  "type": "module",