@gram-ai/elements 1.8.4 → 1.9.0

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.
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const AssistantSidecar: FC;
@@ -0,0 +1,5 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ export declare const ToolGroup: FC<PropsWithChildren<{
3
+ startIndex: number;
4
+ endIndex: number;
5
+ }>>;
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+ type ToolStatus = 'pending' | 'running' | 'complete' | 'error';
3
+ interface ToolUIProps {
4
+ /** Display name of the tool */
5
+ name: string;
6
+ /** Optional icon to display (defaults to first letter of name) */
7
+ icon?: React.ReactNode;
8
+ /** Provider/source name (e.g., "Notion", "GitHub") */
9
+ provider?: string;
10
+ /** Current status of the tool execution */
11
+ status?: ToolStatus;
12
+ /** Request/input data - can be string or object */
13
+ request?: string | Record<string, unknown>;
14
+ /** Result/output data - can be string or object */
15
+ result?: string | Record<string, unknown>;
16
+ /** Whether the tool card starts expanded */
17
+ defaultExpanded?: boolean;
18
+ /** Additional class names */
19
+ className?: string;
20
+ }
21
+ interface ToolUISectionProps {
22
+ /** Section title */
23
+ title: string;
24
+ /** Content to display - string or object (will be JSON stringified) */
25
+ content: string | Record<string, unknown>;
26
+ /** Whether section starts expanded */
27
+ defaultExpanded?: boolean;
28
+ }
29
+ declare function ToolUISection({ title, content, defaultExpanded, }: ToolUISectionProps): import("react/jsx-runtime").JSX.Element;
30
+ declare function ToolUI({ name, icon, provider, status, request, result, defaultExpanded, className, }: ToolUIProps): import("react/jsx-runtime").JSX.Element;
31
+ export { ToolUI, ToolUISection };
32
+ export type { ToolUIProps, ToolUISectionProps, ToolStatus };