teodor-new-chat-ui 4.3.399 → 4.3.400

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.
Files changed (50) hide show
  1. package/dist/features/checkpoint/utils/attemptDetection.d.ts +1 -1
  2. package/dist/features/checkpoint/utils/messagePreviews.d.ts +1 -1
  3. package/dist/features/core/contexts/providers/index.d.ts +2 -0
  4. package/dist/features/core/types/context.d.ts +2 -1
  5. package/dist/features/core/types/index.d.ts +3 -2
  6. package/dist/features/core/types/models.d.ts +202 -0
  7. package/dist/features/core/types/requests.d.ts +22 -0
  8. package/dist/features/messaging/components/chat/message/ResearchTaskArtifact.d.ts +20 -0
  9. package/dist/features/messaging/utils/markdown.worker.d.ts +1 -0
  10. package/dist/features/settings/components/ChatSettings.d.ts +30 -0
  11. package/dist/features/streaming/utils/types.d.ts +0 -8
  12. package/dist/features/thread/hooks/useThreadHistoryState.d.ts +1 -1
  13. package/dist/features/ui/components/ui/accordion.d.ts +7 -0
  14. package/dist/features/ui/components/ui/alert-dialog.d.ts +20 -0
  15. package/dist/features/ui/components/ui/alert.d.ts +8 -0
  16. package/dist/features/ui/components/ui/aspect-ratio.d.ts +3 -0
  17. package/dist/features/ui/components/ui/avatar.d.ts +6 -0
  18. package/dist/features/ui/components/ui/breadcrumb.d.ts +19 -0
  19. package/dist/features/ui/components/ui/calendar.d.ts +8 -0
  20. package/dist/features/ui/components/ui/carousel.d.ts +18 -0
  21. package/dist/features/ui/components/ui/chart.d.ts +62 -0
  22. package/dist/features/ui/components/ui/checkbox.d.ts +4 -0
  23. package/dist/features/ui/components/ui/collapsible.d.ts +5 -0
  24. package/dist/features/ui/components/ui/context-menu.d.ts +27 -0
  25. package/dist/features/ui/components/ui/drawer.d.ts +22 -0
  26. package/dist/features/ui/components/ui/form.d.ts +23 -0
  27. package/dist/features/ui/components/ui/hover-card.d.ts +6 -0
  28. package/dist/features/ui/components/ui/input-otp.d.ts +34 -0
  29. package/dist/features/ui/components/ui/menubar.d.ts +28 -0
  30. package/dist/features/ui/components/ui/navigation-menu.d.ts +12 -0
  31. package/dist/features/ui/components/ui/pagination.d.ts +28 -0
  32. package/dist/features/ui/components/ui/popover.d.ts +6 -0
  33. package/dist/features/ui/components/ui/progress.d.ts +4 -0
  34. package/dist/features/ui/components/ui/radio-group.d.ts +5 -0
  35. package/dist/features/ui/components/ui/resizable.d.ts +23 -0
  36. package/dist/features/ui/components/ui/sidebar.d.ts +66 -0
  37. package/dist/features/ui/components/ui/skeleton.d.ts +2 -0
  38. package/dist/features/ui/components/ui/slider.d.ts +4 -0
  39. package/dist/features/ui/components/ui/table.d.ts +10 -0
  40. package/dist/features/ui/components/ui/tabs.d.ts +7 -0
  41. package/dist/features/ui/components/ui/toggle-group.d.ts +12 -0
  42. package/dist/features/ui/components/ui/toggle.d.ts +12 -0
  43. package/dist/features/ui/components/ui/use-toast.d.ts +2 -0
  44. package/dist/features/ui/hooks/index.d.ts +2 -0
  45. package/dist/features/ui/hooks/use-mobile.d.ts +1 -0
  46. package/dist/features/ui/hooks/use-toast.d.ts +1 -1
  47. package/dist/types/models.d.ts +1 -202
  48. package/dist/types/requests.d.ts +1 -15
  49. package/package.json +1 -1
  50. package/dist/types/marked.d.ts +0 -11
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * msg3 appears in multiple checkpoints = multiple attempts/versions
12
12
  */
13
- import type { HydratedCheckpointSnapshot } from "@/types/models";
13
+ import type { HydratedCheckpointSnapshot } from "@/features/core/types";
14
14
  import type { CheckpointAttemptInfo } from "../types";
15
15
  export interface AttemptMetadata {
16
16
  attemptIndex: number;
@@ -1,5 +1,5 @@
1
1
  import type { ChatMessage } from '@/types';
2
- import type { HydratedCheckpointSnapshot } from '@/types/models';
2
+ import type { HydratedCheckpointSnapshot } from '@/features/core/types';
3
3
  export declare function getPreviewForMessage(message: ChatMessage): string;
4
4
  /**
5
5
  * Legacy function: builds a map of message ID -> preview text.
@@ -0,0 +1,2 @@
1
+ export { ApiProvider, useApi } from "./ApiProvider";
2
+ export { ChatSessionProvider, useHasChatSession, useStream, useThreads, useThreadState, } from "./ChatSessionProvider";
@@ -1,5 +1,6 @@
1
1
  import type { ChatMessage, HydratedCheckpointSnapshot, PendingInterrupt, ThreadSummary } from "@/types";
2
- import type { MessageStreamEvent, StreamCommand, StreamEvent, SystemStreamEvent, ThreadStreamEvent, ToolStreamEvent } from "@/features/streaming";
2
+ import type { MessageStreamEvent, StreamEvent, SystemStreamEvent, ThreadStreamEvent, ToolStreamEvent } from "@/features/streaming";
3
+ import type { StreamCommand } from "./requests";
3
4
  export interface ApiConfig {
4
5
  baseUrl?: string;
5
6
  apiKey?: string;
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Core Infrastructure Types
3
3
  *
4
- * Re-exports global types from @/types for convenience.
5
- * Don't add feature-specific types here - keep them in their feature folders.
4
+ * Re-export the core domain contracts used by features and hosts.
6
5
  */
7
6
  export * from "./context";
7
+ export * from "./models";
8
+ export * from "./requests";
@@ -0,0 +1,202 @@
1
+ export type Role = "system" | "user" | "assistant" | "tool";
2
+ export type TextPart = {
3
+ type: "text";
4
+ text: string;
5
+ };
6
+ export type ImagePart = {
7
+ type: "image_url";
8
+ url: string;
9
+ mimeType?: string;
10
+ alt?: string;
11
+ };
12
+ export type FilePart = {
13
+ type: "file";
14
+ url: string;
15
+ mimeType?: string;
16
+ name?: string;
17
+ size?: number;
18
+ sourceType?: string;
19
+ };
20
+ export type ToolCallPart = {
21
+ type: "tool_call";
22
+ id: string;
23
+ name: string;
24
+ args: Record<string, unknown>;
25
+ };
26
+ export type InterruptPart = {
27
+ type: "interrupt";
28
+ value?: any;
29
+ [key: string]: unknown;
30
+ };
31
+ export type MessagePart = TextPart | ImagePart | FilePart | ToolCallPart | InterruptPart;
32
+ export type PlotData = {
33
+ format?: string;
34
+ content_base64?: string;
35
+ url?: string;
36
+ mimeType?: string;
37
+ mime_type?: string;
38
+ plotId?: string;
39
+ artifactId?: string;
40
+ [key: string]: unknown;
41
+ };
42
+ export interface MessageArtifact {
43
+ [key: string]: unknown;
44
+ }
45
+ export type ArtifactPreview = {
46
+ src: string;
47
+ alt: string;
48
+ label?: string;
49
+ };
50
+ export interface ChatMessage {
51
+ id: string;
52
+ threadId?: string;
53
+ role: Role;
54
+ content: MessagePart[];
55
+ createdAt: string;
56
+ artifacts?: MessageArtifact[];
57
+ artifactPreviews?: Record<string, ArtifactPreview>;
58
+ edited?: boolean;
59
+ checkpointId?: string | null;
60
+ checkpointNs?: string | null;
61
+ branchLabel?: string;
62
+ toolCalls?: Array<{
63
+ id: string;
64
+ name: string;
65
+ args: Record<string, unknown>;
66
+ }>;
67
+ artifact?: MessageArtifact;
68
+ name?: string;
69
+ model?: string;
70
+ additionalKwargs?: Record<string, unknown>;
71
+ responseMetadata?: Record<string, unknown>;
72
+ __syntheticStreaming?: boolean;
73
+ }
74
+ export interface DefaultMessage {
75
+ type?: "default_message";
76
+ id?: string;
77
+ threadId?: string;
78
+ role: Role;
79
+ content: string;
80
+ createdAt?: string;
81
+ }
82
+ export interface PregelTask {
83
+ [key: string]: unknown;
84
+ }
85
+ export type PendingInterrupt = {
86
+ id: string;
87
+ value: unknown;
88
+ } | null;
89
+ export interface StateSnapshot {
90
+ values: Record<string, unknown>;
91
+ next?: string[];
92
+ config?: Record<string, unknown>;
93
+ metadata?: {
94
+ source?: string;
95
+ step?: number;
96
+ writes?: Record<string, unknown>;
97
+ execution_time?: number;
98
+ };
99
+ tasks?: PregelTask[];
100
+ created_at?: string;
101
+ createdAt?: string;
102
+ parentConfig?: Record<string, unknown>;
103
+ parent_config?: Record<string, unknown>;
104
+ }
105
+ export interface HydratedCheckpointSnapshot {
106
+ checkpointId: string | null;
107
+ checkpointNs: string | null;
108
+ parentId: string | null;
109
+ createdAt: string;
110
+ messages: ChatMessage[];
111
+ nextCursor: string | null;
112
+ nextCursorNs: string | null;
113
+ interrupt: PendingInterrupt;
114
+ metadata: {
115
+ step: number;
116
+ source: string | null;
117
+ [key: string]: unknown;
118
+ };
119
+ config: Record<string, unknown> | null;
120
+ parentConfig: Record<string, unknown> | null;
121
+ next: string[] | null;
122
+ tasks: Record<string, unknown>[] | null;
123
+ }
124
+ export interface HistoryPayload {
125
+ version: string;
126
+ threadId: string;
127
+ checkpoints: StateSnapshot[];
128
+ }
129
+ export interface CheckpointList {
130
+ checkpoints: Array<{
131
+ checkpoint_id: string;
132
+ checkpoint_ns: string | null;
133
+ checkpoint_config: Record<string, unknown> | null;
134
+ }>;
135
+ }
136
+ export interface StatePayload {
137
+ [key: string]: unknown;
138
+ }
139
+ export interface Envelope<T = unknown> {
140
+ type?: string;
141
+ data?: T;
142
+ error?: string;
143
+ metadata?: Record<string, unknown>;
144
+ }
145
+ export interface ThreadSummary {
146
+ threadId: string;
147
+ title: string;
148
+ createdAt: string;
149
+ updatedAt: string;
150
+ messageCount: number;
151
+ lastMessage?: string | null;
152
+ created?: boolean | null;
153
+ ready?: boolean | null;
154
+ }
155
+ export interface SharedThreadSummary extends ThreadSummary {
156
+ sharedAt: string;
157
+ sharedBy?: string;
158
+ sharedByUserId?: string;
159
+ }
160
+ export interface ThreadShareResponse {
161
+ success: boolean;
162
+ threadId: string;
163
+ shareUrl?: string;
164
+ message?: string;
165
+ }
166
+ export interface ThreadShareTarget {
167
+ type: "email" | "link" | "user";
168
+ value: string;
169
+ id?: string;
170
+ label?: string;
171
+ secondaryLabel?: string;
172
+ sharedByUserId?: string;
173
+ }
174
+ export interface ThreadInfo extends ThreadSummary {
175
+ description?: string;
176
+ isArchived?: boolean;
177
+ tags?: string[];
178
+ }
179
+ export interface AgentSummary {
180
+ id: string;
181
+ name: string;
182
+ createdAt: string;
183
+ updatedAt: string;
184
+ }
185
+ export interface AgentDetail extends AgentSummary {
186
+ description?: string;
187
+ schema?: Record<string, unknown>;
188
+ uiDefaultMessage?: string;
189
+ [key: string]: unknown;
190
+ }
191
+ export interface AgentList {
192
+ items?: AgentDetail[];
193
+ [key: string]: unknown;
194
+ }
195
+ export interface AgentSchemaInfo {
196
+ schema?: Record<string, unknown>;
197
+ [key: string]: unknown;
198
+ }
199
+ export type TokenListener = (token: string | null) => void;
200
+ export interface ExcelUploadResponse {
201
+ [key: string]: unknown;
202
+ }
@@ -0,0 +1,22 @@
1
+ export type StreamCommand = {
2
+ kind: "resume";
3
+ value: unknown;
4
+ } | {
5
+ kind: "goto";
6
+ node: string;
7
+ value?: unknown;
8
+ };
9
+ import type { TimelineCheckpoint } from "@/features/checkpoint/types";
10
+ export interface ChatRequest {
11
+ threadId?: string | null;
12
+ payload?: Record<string, unknown>;
13
+ checkpointId?: string | null;
14
+ checkpointNs?: string | null;
15
+ nodeFilter?: string | string[] | null;
16
+ config?: Record<string, unknown>;
17
+ edit?: boolean;
18
+ branchLabel?: string;
19
+ active_agent?: string;
20
+ command?: StreamCommand | null;
21
+ timelineCheckpoints?: TimelineCheckpoint[];
22
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Custom artifact renderer for research_task_info type
3
+ * Displays research task status with links and metadata
4
+ */
5
+ export interface ResearchTaskInfo {
6
+ type: "research_task_info";
7
+ task_id: string;
8
+ progress_url: string;
9
+ query?: string;
10
+ status?: "pending" | "processing" | "completed" | "failed";
11
+ createdAt?: string;
12
+ [key: string]: unknown;
13
+ }
14
+ export interface ResearchTaskArtifactProps {
15
+ artifact: ResearchTaskInfo;
16
+ }
17
+ /**
18
+ * Renders a research task artifact with status badge and action buttons
19
+ */
20
+ export declare function ResearchTaskArtifact({ artifact }: ResearchTaskArtifactProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Chat Settings Component - Persistent settings with beautiful UI
3
+ * Handles API configuration, layout preferences, and chat behavior
4
+ */
5
+ export interface ChatSettingsConfig {
6
+ api: {
7
+ baseUrl: string;
8
+ authToken: string;
9
+ enableAuth: boolean;
10
+ };
11
+ ui: {
12
+ layout: 'sidebar' | 'fullscreen' | 'tabs';
13
+ theme: 'light' | 'dark' | 'system';
14
+ showTimestamps: boolean;
15
+ showAgentNames: boolean;
16
+ compactMessages: boolean;
17
+ };
18
+ behavior: {
19
+ autoSave: boolean;
20
+ enableStreaming: boolean;
21
+ showTypingIndicator: boolean;
22
+ };
23
+ }
24
+ interface ChatSettingsProps {
25
+ settings: ChatSettingsConfig;
26
+ onSettingsChange: (settings: ChatSettingsConfig) => void;
27
+ className?: string;
28
+ }
29
+ export declare function ChatSettings({ settings, onSettingsChange, className }: ChatSettingsProps): import("react/jsx-runtime").JSX.Element;
30
+ export {};
@@ -1,12 +1,4 @@
1
1
  import type { MessagePart, HistoryPayload } from "@/types";
2
- export type StreamCommand = {
3
- kind: "resume";
4
- value: unknown;
5
- } | {
6
- kind: "goto";
7
- node: string;
8
- value?: unknown;
9
- };
10
2
  type ToolEventIdentity = {
11
3
  id: string;
12
4
  call_id?: string;
@@ -2,7 +2,7 @@ import type { ChatApi } from "@/features/core";
2
2
  import type { StateHistoryEvent } from "@/features/streaming";
3
3
  import type { ChatMessage, HydratedCheckpointSnapshot } from "@/types";
4
4
  import type { TimelineCheckpoint } from "@/features/checkpoint/types";
5
- import type { PendingInterrupt } from "@/types/models";
5
+ import type { PendingInterrupt } from "@/features/core/types";
6
6
  import type { CheckpointIndex } from "@/features/checkpoint/utils/checkpointIndex";
7
7
  interface UseThreadHistoryStateOptions {
8
8
  api: ChatApi;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
+ declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
4
+ declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
3
+ declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
4
+ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
6
+ declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const AlertDialogHeader: {
9
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
12
+ declare const AlertDialogFooter: {
13
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
17
+ declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
18
+ declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
19
+ declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
20
+ export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
4
+ variant?: "default" | "destructive" | null | undefined;
5
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
7
+ declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
8
+ export { Alert, AlertTitle, AlertDescription };
@@ -0,0 +1,3 @@
1
+ import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
2
+ declare const AspectRatio: import("react").ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export { AspectRatio };
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
3
+ declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
+ declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
5
+ declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
+ export { Avatar, AvatarImage, AvatarFallback };
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
3
+ separator?: React.ReactNode;
4
+ } & React.RefAttributes<HTMLElement>>;
5
+ declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
6
+ declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
7
+ declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
8
+ asChild?: boolean;
9
+ } & React.RefAttributes<HTMLAnchorElement>>;
10
+ declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
11
+ declare const BreadcrumbSeparator: {
12
+ ({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
13
+ displayName: string;
14
+ };
15
+ declare const BreadcrumbEllipsis: {
16
+ ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
17
+ displayName: string;
18
+ };
19
+ export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import { DayPicker } from "react-day-picker";
3
+ export type CalendarProps = React.ComponentProps<typeof DayPicker>;
4
+ declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
5
+ declare namespace Calendar {
6
+ var displayName: string;
7
+ }
8
+ export { Calendar };
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react";
3
+ type CarouselApi = UseEmblaCarouselType[1];
4
+ type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
5
+ type CarouselOptions = UseCarouselParameters[0];
6
+ type CarouselPlugin = UseCarouselParameters[1];
7
+ type CarouselProps = {
8
+ opts?: CarouselOptions;
9
+ plugins?: CarouselPlugin;
10
+ orientation?: "horizontal" | "vertical";
11
+ setApi?: (api: CarouselApi) => void;
12
+ };
13
+ declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
14
+ declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
15
+ declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
16
+ declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import("./button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
17
+ declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import("./button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
18
+ export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
@@ -0,0 +1,62 @@
1
+ import * as React from "react";
2
+ import * as RechartsPrimitive from "recharts";
3
+ declare const THEMES: {
4
+ readonly light: "";
5
+ readonly dark: ".dark";
6
+ };
7
+ export type ChartConfig = {
8
+ [k in string]: {
9
+ label?: React.ReactNode;
10
+ icon?: React.ComponentType;
11
+ } & ({
12
+ color?: string;
13
+ theme?: never;
14
+ } | {
15
+ color?: never;
16
+ theme: Record<keyof typeof THEMES, string>;
17
+ });
18
+ };
19
+ declare const ChartContainer: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
20
+ config: ChartConfig;
21
+ children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
22
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
+ declare const ChartStyle: ({ id, config }: {
24
+ id: string;
25
+ config: ChartConfig;
26
+ }) => import("react/jsx-runtime").JSX.Element | null;
27
+ declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
28
+ declare const ChartTooltipContent: React.ForwardRefExoticComponent<Omit<RechartsPrimitive.DefaultTooltipContentProps<import("recharts/types/component/DefaultTooltipContent").ValueType, import("recharts/types/component/DefaultTooltipContent").NameType> & {
29
+ accessibilityLayer?: boolean;
30
+ active?: boolean | undefined;
31
+ includeHidden?: boolean | undefined;
32
+ allowEscapeViewBox?: import("recharts/types/util/types").AllowInDimension;
33
+ animationDuration?: import("recharts/types/util/types").AnimationDuration;
34
+ animationEasing?: import("recharts/types/util/types").AnimationTiming;
35
+ content?: import("recharts/types/component/Tooltip").ContentType<import("recharts/types/component/DefaultTooltipContent").ValueType, import("recharts/types/component/DefaultTooltipContent").NameType> | undefined;
36
+ coordinate?: Partial<import("recharts/types/util/types").Coordinate>;
37
+ cursor?: boolean | React.ReactElement | React.SVGProps<SVGElement>;
38
+ filterNull?: boolean;
39
+ defaultIndex?: number;
40
+ isAnimationActive?: boolean;
41
+ offset?: number;
42
+ payloadUniqBy?: import("recharts/types/util/payload/getUniqPayload").UniqueOption<import("recharts/types/component/DefaultTooltipContent").Payload<import("recharts/types/component/DefaultTooltipContent").ValueType, import("recharts/types/component/DefaultTooltipContent").NameType>> | undefined;
43
+ position?: Partial<import("recharts/types/util/types").Coordinate>;
44
+ reverseDirection?: import("recharts/types/util/types").AllowInDimension;
45
+ shared?: boolean;
46
+ trigger?: "hover" | "click";
47
+ useTranslate3d?: boolean;
48
+ viewBox?: import("recharts/types/util/types").CartesianViewBox;
49
+ wrapperStyle?: React.CSSProperties;
50
+ } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
51
+ hideLabel?: boolean;
52
+ hideIndicator?: boolean;
53
+ indicator?: "line" | "dot" | "dashed";
54
+ nameKey?: string;
55
+ labelKey?: string;
56
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
57
+ declare const ChartLegend: typeof RechartsPrimitive.Legend;
58
+ declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
59
+ hideIcon?: boolean;
60
+ nameKey?: string;
61
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
62
+ export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Checkbox };
@@ -0,0 +1,5 @@
1
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
2
+ declare const Collapsible: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
4
+ declare const CollapsibleContent: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import("react").RefAttributes<HTMLDivElement>>;
5
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -0,0 +1,27 @@
1
+ import * as React from "react";
2
+ import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
3
+ declare const ContextMenu: React.FC<ContextMenuPrimitive.ContextMenuProps>;
4
+ declare const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
5
+ declare const ContextMenuGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
6
+ declare const ContextMenuPortal: React.FC<ContextMenuPrimitive.ContextMenuPortalProps>;
7
+ declare const ContextMenuSub: React.FC<ContextMenuPrimitive.ContextMenuSubProps>;
8
+ declare const ContextMenuRadioGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
9
+ declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
10
+ inset?: boolean;
11
+ } & React.RefAttributes<HTMLDivElement>>;
12
+ declare const ContextMenuSubContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const ContextMenuContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ declare const ContextMenuItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
+ inset?: boolean;
16
+ } & React.RefAttributes<HTMLDivElement>>;
17
+ declare const ContextMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
+ declare const ContextMenuRadioItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ declare const ContextMenuLabel: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
20
+ inset?: boolean;
21
+ } & React.RefAttributes<HTMLDivElement>>;
22
+ declare const ContextMenuSeparator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
+ declare const ContextMenuShortcut: {
24
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
25
+ displayName: string;
26
+ };
27
+ export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
@@ -0,0 +1,22 @@
1
+ import * as React from "react";
2
+ import { Drawer as DrawerPrimitive } from "vaul";
3
+ declare const Drawer: {
4
+ ({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ declare const DrawerTrigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
8
+ declare const DrawerPortal: typeof import("vaul").Portal;
9
+ declare const DrawerClose: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
10
+ declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const DrawerHeader: {
13
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ declare const DrawerFooter: {
17
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
20
+ declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
21
+ declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
22
+ export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
@@ -0,0 +1,23 @@
1
+ import * as React from "react";
2
+ import * as LabelPrimitive from "@radix-ui/react-label";
3
+ import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
4
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
5
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
6
+ declare const useFormField: () => {
7
+ invalid: boolean;
8
+ isDirty: boolean;
9
+ isTouched: boolean;
10
+ isValidating: boolean;
11
+ error?: import("react-hook-form").FieldError;
12
+ id: string;
13
+ name: string;
14
+ formItemId: string;
15
+ formDescriptionId: string;
16
+ formMessageId: string;
17
+ };
18
+ declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
19
+ declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
20
+ declare const FormControl: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-slot").SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
21
+ declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
22
+ declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
23
+ export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
3
+ declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
4
+ declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
5
+ declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ export { HoverCard, HoverCardTrigger, HoverCardContent };
@@ -0,0 +1,34 @@
1
+ import * as React from "react";
2
+ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
3
+ value?: string;
4
+ onChange?: (newValue: string) => unknown;
5
+ maxLength: number;
6
+ textAlign?: "left" | "center" | "right";
7
+ onComplete?: (...args: any[]) => unknown;
8
+ pushPasswordManagerStrategy?: "increase-width" | "none";
9
+ pasteTransformer?: (pasted: string) => string;
10
+ containerClassName?: string;
11
+ noScriptCSSFallback?: string | null;
12
+ } & {
13
+ render: (props: import("input-otp").RenderProps) => React.ReactNode;
14
+ children?: never;
15
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
16
+ value?: string;
17
+ onChange?: (newValue: string) => unknown;
18
+ maxLength: number;
19
+ textAlign?: "left" | "center" | "right";
20
+ onComplete?: (...args: any[]) => unknown;
21
+ pushPasswordManagerStrategy?: "increase-width" | "none";
22
+ pasteTransformer?: (pasted: string) => string;
23
+ containerClassName?: string;
24
+ noScriptCSSFallback?: string | null;
25
+ } & {
26
+ render?: never;
27
+ children: React.ReactNode;
28
+ } & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
29
+ declare const InputOTPGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
30
+ declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
31
+ index: number;
32
+ } & React.RefAttributes<HTMLDivElement>>;
33
+ declare const InputOTPSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
34
+ export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
@@ -0,0 +1,28 @@
1
+ import * as React from "react";
2
+ import * as MenubarPrimitive from "@radix-ui/react-menubar";
3
+ declare const MenubarMenu: React.ComponentType<any>;
4
+ declare const MenubarGroup: React.ForwardRefExoticComponent<MenubarPrimitive.MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
5
+ declare const MenubarPortal: React.FC<MenubarPrimitive.MenubarPortalProps>;
6
+ declare const MenubarSub: React.FC<MenubarPrimitive.MenubarSubProps>;
7
+ declare const MenubarRadioGroup: React.ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
8
+ declare const Menubar: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const MenubarTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
10
+ declare const MenubarSubTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
11
+ inset?: boolean;
12
+ } & React.RefAttributes<HTMLDivElement>>;
13
+ declare const MenubarSubContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ declare const MenubarContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ declare const MenubarItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
16
+ inset?: boolean;
17
+ } & React.RefAttributes<HTMLDivElement>>;
18
+ declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ declare const MenubarRadioItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
21
+ inset?: boolean;
22
+ } & React.RefAttributes<HTMLDivElement>>;
23
+ declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
24
+ declare const MenubarShortcut: {
25
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
26
+ displayname: string;
27
+ };
28
+ export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarLabel, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarPortal, MenubarSubContent, MenubarSubTrigger, MenubarGroup, MenubarSub, MenubarShortcut, };
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
3
+ declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
4
+ declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
5
+ declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
6
+ declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
7
+ declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
8
+ declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
10
+ declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ export { navigationMenuTriggerStyle, NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, };
@@ -0,0 +1,28 @@
1
+ import * as React from "react";
2
+ import { ButtonProps } from "./button";
3
+ declare const Pagination: {
4
+ ({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
8
+ declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
9
+ type PaginationLinkProps = {
10
+ isActive?: boolean;
11
+ } & Pick<ButtonProps, "size"> & React.ComponentProps<"a">;
12
+ declare const PaginationLink: {
13
+ ({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ declare const PaginationPrevious: {
17
+ ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
20
+ declare const PaginationNext: {
21
+ ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
22
+ displayName: string;
23
+ };
24
+ declare const PaginationEllipsis: {
25
+ ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
26
+ displayName: string;
27
+ };
28
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
4
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ export { Popover, PopoverTrigger, PopoverContent };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as ProgressPrimitive from "@radix-ui/react-progress";
3
+ declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ export { Progress };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
+ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,23 @@
1
+ import * as ResizablePrimitive from "react-resizable-panels";
2
+ declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLAnchorElement | HTMLElement | HTMLDivElement | HTMLButtonElement | HTMLSpanElement | HTMLParagraphElement | HTMLObjectElement | HTMLSourceElement | HTMLLinkElement | HTMLDataElement | HTMLHeadElement | HTMLBodyElement | HTMLMapElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
4
+ className?: string | undefined;
5
+ collapsedSize?: number | undefined;
6
+ collapsible?: boolean | undefined;
7
+ defaultSize?: number | undefined;
8
+ id?: string | undefined;
9
+ maxSize?: number | undefined;
10
+ minSize?: number | undefined;
11
+ onCollapse?: ResizablePrimitive.PanelOnCollapse | undefined;
12
+ onExpand?: ResizablePrimitive.PanelOnExpand | undefined;
13
+ onResize?: ResizablePrimitive.PanelOnResize | undefined;
14
+ order?: number | undefined;
15
+ style?: object | undefined;
16
+ tagName?: keyof HTMLElementTagNameMap | undefined;
17
+ } & {
18
+ children?: import("react").ReactNode;
19
+ } & import("react").RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
20
+ declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
21
+ withHandle?: boolean;
22
+ }) => import("react/jsx-runtime").JSX.Element;
23
+ export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
@@ -0,0 +1,66 @@
1
+ import * as React from "react";
2
+ import { VariantProps } from "class-variance-authority";
3
+ import { TooltipContent } from "./tooltip";
4
+ type SidebarContext = {
5
+ state: "expanded" | "collapsed";
6
+ open: boolean;
7
+ setOpen: (open: boolean) => void;
8
+ openMobile: boolean;
9
+ setOpenMobile: (open: boolean) => void;
10
+ isMobile: boolean;
11
+ toggleSidebar: () => void;
12
+ };
13
+ declare const SidebarContext: React.Context<SidebarContext | null>;
14
+ declare function useSidebar(): SidebarContext;
15
+ declare const SidebarProvider: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
16
+ defaultOpen?: boolean;
17
+ open?: boolean;
18
+ onOpenChange?: (open: boolean) => void;
19
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ declare const Sidebar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
21
+ side?: "left" | "right";
22
+ variant?: "sidebar" | "floating" | "inset";
23
+ collapsible?: "offcanvas" | "icon" | "none";
24
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
+ declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<import("./button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
26
+ declare const SidebarRail: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
27
+ declare const SidebarInset: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
28
+ declare const SidebarInput: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
29
+ declare const SidebarHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
30
+ declare const SidebarFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
31
+ declare const SidebarSeparator: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-separator").SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
32
+ declare const SidebarContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
33
+ declare const SidebarGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
34
+ declare const SidebarGroupLabel: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
35
+ asChild?: boolean;
36
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
37
+ declare const SidebarGroupAction: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
38
+ asChild?: boolean;
39
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
40
+ declare const SidebarGroupContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
41
+ declare const SidebarMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
42
+ declare const SidebarMenuItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
43
+ declare const SidebarMenuButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
44
+ asChild?: boolean;
45
+ isActive?: boolean;
46
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
47
+ } & VariantProps<(props?: ({
48
+ variant?: "default" | "outline" | null | undefined;
49
+ size?: "default" | "sm" | "lg" | null | undefined;
50
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
51
+ declare const SidebarMenuAction: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
52
+ asChild?: boolean;
53
+ showOnHover?: boolean;
54
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
55
+ declare const SidebarMenuBadge: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
56
+ declare const SidebarMenuSkeleton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
57
+ showIcon?: boolean;
58
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
59
+ declare const SidebarMenuSub: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
60
+ declare const SidebarMenuSubItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
61
+ declare const SidebarMenuSubButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
62
+ asChild?: boolean;
63
+ size?: "sm" | "md";
64
+ isActive?: boolean;
65
+ }, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
66
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
@@ -0,0 +1,2 @@
1
+ declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
2
+ export { Skeleton };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as SliderPrimitive from "@radix-ui/react-slider";
3
+ declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
+ export { Slider };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
3
+ declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
4
+ declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
5
+ declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
6
+ declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
7
+ declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
8
+ declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
9
+ declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
10
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
3
+ declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
4
+ declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
3
+ import { type VariantProps } from "class-variance-authority";
4
+ declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
5
+ variant?: "default" | "outline" | null | undefined;
6
+ size?: "default" | "sm" | "lg" | null | undefined;
7
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
8
+ declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
9
+ variant?: "default" | "outline" | null | undefined;
10
+ size?: "default" | "sm" | "lg" | null | undefined;
11
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
12
+ export { ToggleGroup, ToggleGroupItem };
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import * as TogglePrimitive from "@radix-ui/react-toggle";
3
+ import { type VariantProps } from "class-variance-authority";
4
+ declare const toggleVariants: (props?: ({
5
+ variant?: "default" | "outline" | null | undefined;
6
+ size?: "default" | "sm" | "lg" | null | undefined;
7
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
+ declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
9
+ variant?: "default" | "outline" | null | undefined;
10
+ size?: "default" | "sm" | "lg" | null | undefined;
11
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
12
+ export { Toggle, toggleVariants };
@@ -0,0 +1,2 @@
1
+ import { useToast, toast } from "@/features/ui/hooks/use-toast";
2
+ export { useToast, toast };
@@ -0,0 +1,2 @@
1
+ export { useIsMobile } from "./use-mobile";
2
+ export { useToast, toast } from "./use-toast";
@@ -0,0 +1 @@
1
+ export declare function useIsMobile(): boolean;
@@ -31,7 +31,7 @@ interface State {
31
31
  }
32
32
  export declare const reducer: (state: State, action: Action) => State;
33
33
  type Toast = Omit<ToasterToast, "id">;
34
- declare function toast({ ...props }: Toast): {
34
+ export declare function toast({ ...props }: Toast): {
35
35
  id: string;
36
36
  dismiss: () => void;
37
37
  update: (props: ToasterToast) => void;
@@ -1,202 +1 @@
1
- export type Role = "system" | "user" | "assistant" | "tool";
2
- export type TextPart = {
3
- type: "text";
4
- text: string;
5
- };
6
- export type ImagePart = {
7
- type: "image_url";
8
- url: string;
9
- mimeType?: string;
10
- alt?: string;
11
- };
12
- export type FilePart = {
13
- type: "file";
14
- url: string;
15
- mimeType?: string;
16
- name?: string;
17
- size?: number;
18
- sourceType?: string;
19
- };
20
- export type ToolCallPart = {
21
- type: "tool_call";
22
- id: string;
23
- name: string;
24
- args: Record<string, unknown>;
25
- };
26
- export type InterruptPart = {
27
- type: "interrupt";
28
- value?: any;
29
- [key: string]: unknown;
30
- };
31
- export type MessagePart = TextPart | ImagePart | FilePart | ToolCallPart | InterruptPart;
32
- export type PlotData = {
33
- format?: string;
34
- content_base64?: string;
35
- url?: string;
36
- mimeType?: string;
37
- mime_type?: string;
38
- plotId?: string;
39
- artifactId?: string;
40
- [key: string]: unknown;
41
- };
42
- export interface MessageArtifact {
43
- [key: string]: unknown;
44
- }
45
- export type ArtifactPreview = {
46
- src: string;
47
- alt: string;
48
- label?: string;
49
- };
50
- export interface ChatMessage {
51
- id: string;
52
- threadId?: string;
53
- role: Role;
54
- content: MessagePart[];
55
- createdAt: string;
56
- artifacts?: MessageArtifact[];
57
- artifactPreviews?: Record<string, ArtifactPreview>;
58
- edited?: boolean;
59
- checkpointId?: string | null;
60
- checkpointNs?: string | null;
61
- branchLabel?: string;
62
- toolCalls?: Array<{
63
- id: string;
64
- name: string;
65
- args: Record<string, unknown>;
66
- }>;
67
- artifact?: MessageArtifact;
68
- name?: string;
69
- model?: string;
70
- additionalKwargs?: Record<string, unknown>;
71
- responseMetadata?: Record<string, unknown>;
72
- __syntheticStreaming?: boolean;
73
- }
74
- export interface DefaultMessage {
75
- type?: "default_message";
76
- id?: string;
77
- threadId?: string;
78
- role: Role;
79
- content: string;
80
- createdAt?: string;
81
- }
82
- export interface PregelTask {
83
- [key: string]: unknown;
84
- }
85
- export type PendingInterrupt = {
86
- id: string;
87
- value: unknown;
88
- } | null;
89
- export interface StateSnapshot {
90
- values: Record<string, unknown>;
91
- next?: string[];
92
- config?: Record<string, unknown>;
93
- metadata?: {
94
- source?: string;
95
- step?: number;
96
- writes?: Record<string, unknown>;
97
- execution_time?: number;
98
- };
99
- tasks?: PregelTask[];
100
- created_at?: string;
101
- createdAt?: string;
102
- parentConfig?: Record<string, unknown>;
103
- parent_config?: Record<string, unknown>;
104
- }
105
- export interface HydratedCheckpointSnapshot {
106
- checkpointId: string | null;
107
- checkpointNs: string | null;
108
- parentId: string | null;
109
- createdAt: string;
110
- messages: ChatMessage[];
111
- nextCursor: string | null;
112
- nextCursorNs: string | null;
113
- interrupt: PendingInterrupt;
114
- metadata: {
115
- step: number;
116
- source: string | null;
117
- [key: string]: unknown;
118
- };
119
- config: Record<string, unknown> | null;
120
- parentConfig: Record<string, unknown> | null;
121
- next: string[] | null;
122
- tasks: Record<string, unknown>[] | null;
123
- }
124
- export interface HistoryPayload {
125
- version: string;
126
- threadId: string;
127
- checkpoints: StateSnapshot[];
128
- }
129
- export interface CheckpointList {
130
- checkpoints: Array<{
131
- checkpoint_id: string;
132
- checkpoint_ns: string | null;
133
- checkpoint_config: Record<string, unknown> | null;
134
- }>;
135
- }
136
- export interface StatePayload {
137
- [key: string]: unknown;
138
- }
139
- export interface Envelope<T = unknown> {
140
- type?: string;
141
- data?: T;
142
- error?: string;
143
- metadata?: Record<string, unknown>;
144
- }
145
- export interface ThreadSummary {
146
- threadId: string;
147
- title: string;
148
- createdAt: string;
149
- updatedAt: string;
150
- messageCount: number;
151
- lastMessage?: string | null;
152
- created?: boolean | null;
153
- ready?: boolean | null;
154
- }
155
- export interface SharedThreadSummary extends ThreadSummary {
156
- sharedAt: string;
157
- sharedBy?: string;
158
- sharedByUserId?: string;
159
- }
160
- export interface ThreadShareResponse {
161
- success: boolean;
162
- threadId: string;
163
- shareUrl?: string;
164
- message?: string;
165
- }
166
- export interface ThreadShareTarget {
167
- type: "email" | "link" | "user";
168
- value: string;
169
- id?: string;
170
- label?: string;
171
- secondaryLabel?: string;
172
- sharedByUserId?: string;
173
- }
174
- export interface ThreadInfo extends ThreadSummary {
175
- description?: string;
176
- isArchived?: boolean;
177
- tags?: string[];
178
- }
179
- export interface AgentSummary {
180
- id: string;
181
- name: string;
182
- createdAt: string;
183
- updatedAt: string;
184
- }
185
- export interface AgentDetail extends AgentSummary {
186
- description?: string;
187
- schema?: Record<string, unknown>;
188
- uiDefaultMessage?: string;
189
- [key: string]: unknown;
190
- }
191
- export interface AgentList {
192
- items?: AgentDetail[];
193
- [key: string]: unknown;
194
- }
195
- export interface AgentSchemaInfo {
196
- schema?: Record<string, unknown>;
197
- [key: string]: unknown;
198
- }
199
- export type TokenListener = (token: string | null) => void;
200
- export interface ExcelUploadResponse {
201
- [key: string]: unknown;
202
- }
1
+ export * from "@/features/core/types/models";
@@ -1,15 +1 @@
1
- import type { StreamCommand } from "./events";
2
- import type { TimelineCheckpoint } from "@/features/checkpoint/types";
3
- export interface ChatRequest {
4
- threadId?: string | null;
5
- payload?: Record<string, unknown>;
6
- checkpointId?: string | null;
7
- checkpointNs?: string | null;
8
- nodeFilter?: string | string[] | null;
9
- config?: Record<string, unknown>;
10
- edit?: boolean;
11
- branchLabel?: string;
12
- active_agent?: string;
13
- command?: StreamCommand | null;
14
- timelineCheckpoints?: TimelineCheckpoint[];
15
- }
1
+ export * from "@/features/core/types/requests";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teodor-new-chat-ui",
3
- "version": "4.3.399",
3
+ "version": "4.3.400",
4
4
  "description": "React chat UI components with streaming support, tool calls, and modern design",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,11 +0,0 @@
1
- declare module 'marked' {
2
- type MarkedFn = ((src: string) => string) & {
3
- parse?: (src: string) => string;
4
- };
5
- export const marked: MarkedFn;
6
- export const parse: (src: string) => string;
7
- const markedDefault: MarkedFn & {
8
- parse: (src: string) => string;
9
- };
10
- export default markedDefault;
11
- }