teodor-new-chat-ui 4.3.398 → 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.
- package/dist/features/checkpoint/components/TimelineColumn.d.ts +12 -0
- package/dist/features/checkpoint/components/index.d.ts +1 -0
- package/dist/{hooks/checkpoints → features/checkpoint/hooks}/index.d.ts +0 -1
- package/dist/{hooks/checkpoints → features/checkpoint/hooks}/useCheckpointIndex.d.ts +1 -1
- package/dist/{hooks/checkpoints → features/checkpoint/hooks}/useMessageMetadata.d.ts +2 -2
- package/dist/features/checkpoint/index.d.ts +4 -0
- package/dist/{types/checkpoints.d.ts → features/checkpoint/types.d.ts} +1 -0
- package/dist/{lib → features/checkpoint/utils}/attemptDetection.d.ts +2 -2
- package/dist/{lib → features/checkpoint/utils}/checkpointIndex.d.ts +1 -1
- package/dist/features/checkpoint/utils/index.d.ts +7 -0
- package/dist/{lib → features/checkpoint/utils}/messageMetadataResolver.d.ts +2 -2
- package/dist/{lib → features/checkpoint/utils}/messagePreviews.d.ts +1 -1
- package/dist/{api/chat-api.d.ts → features/core/api/clients/chatClient.d.ts} +2 -3
- package/dist/features/core/api/clients/index.d.ts +2 -0
- package/dist/features/core/api/index.d.ts +2 -0
- package/dist/features/core/api/utils/index.d.ts +1 -0
- package/dist/{config → features/core/constants}/env.d.ts +1 -1
- package/dist/features/core/constants/index.d.ts +1 -0
- package/dist/{context → features/core/contexts}/ChatProviders.d.ts +2 -3
- package/dist/features/core/contexts/index.d.ts +6 -0
- package/dist/{context → features/core/contexts}/providers/ApiProvider.d.ts +1 -1
- package/dist/features/core/contexts/providers/ChatSessionProvider.d.ts +1 -0
- package/dist/features/core/contexts/providers/index.d.ts +2 -0
- package/dist/features/core/hooks/index.d.ts +2 -0
- package/dist/features/core/index.d.ts +6 -0
- package/dist/{types → features/core/types}/context.d.ts +4 -3
- package/dist/features/core/types/index.d.ts +8 -0
- package/dist/features/core/types/models.d.ts +202 -0
- package/dist/features/core/types/requests.d.ts +22 -0
- package/dist/features/core/utils/index.d.ts +1 -0
- package/dist/{components → features/messaging/components}/chat/ChatApp.d.ts +1 -2
- package/dist/{components → features/messaging/components}/chat/MessageComponent.d.ts +1 -1
- package/dist/{components → features/messaging/components}/chat/MessageList.d.ts +2 -2
- package/dist/{components → features/messaging/components}/chat/MessageRow.d.ts +2 -2
- package/dist/features/messaging/index.d.ts +12 -0
- package/dist/features/messaging/utils/markdown.worker.d.ts +1 -0
- package/dist/{context/providers/ChatSessionProvider.d.ts → features/streaming/contexts/StreamingProvider.d.ts} +9 -9
- package/dist/features/streaming/contexts/index.d.ts +3 -0
- package/dist/{context → features/streaming/contexts}/services/use-streaming-service.d.ts +3 -12
- package/dist/features/streaming/index.d.ts +3 -0
- package/dist/features/streaming/utils/index.d.ts +1 -0
- package/dist/features/streaming/utils/types.d.ts +101 -0
- package/dist/{hooks → features/thread/hooks}/useThreadHistoryState.d.ts +5 -5
- package/dist/{hooks → features/thread/hooks}/useThreadsState.d.ts +2 -2
- package/dist/features/thread/index.d.ts +2 -0
- package/dist/{components → features/ui/components}/ui/carousel.d.ts +2 -2
- package/dist/{components → features/ui/components}/ui/pagination.d.ts +1 -1
- package/dist/features/ui/components/ui/resizable.d.ts +23 -0
- package/dist/{components → features/ui/components}/ui/sidebar.d.ts +2 -2
- package/dist/features/ui/components/ui/use-toast.d.ts +2 -0
- package/dist/features/ui/hooks/index.d.ts +2 -0
- package/dist/{hooks → features/ui/hooks}/use-toast.d.ts +4 -4
- package/dist/features/ui/index.d.ts +17 -0
- package/dist/features/ui/utils/index.d.ts +1 -0
- package/dist/index.esm.js +13985 -12997
- package/dist/index.umd.js +49 -48
- package/dist/lib/index.d.ts +8 -27
- package/dist/types/events.d.ts +1 -90
- package/dist/types/index.d.ts +1 -3
- package/dist/types/models.d.ts +1 -226
- package/dist/types/requests.d.ts +1 -15
- package/package.json +1 -1
- package/dist/components/ui/resizable.d.ts +0 -23
- package/dist/components/ui/use-toast.d.ts +0 -2
- package/dist/context/index.d.ts +0 -14
- package/dist/context/types.d.ts +0 -1
- package/dist/hooks/checkpoints/types.d.ts +0 -1
- package/dist/lib/markdown.d.ts +0 -46
- package/dist/types/toolStream.d.ts +0 -11
- package/dist/utils/env.d.ts +0 -12
- /package/dist/{lib → features/checkpoint/utils}/historyUtils.d.ts +0 -0
- /package/dist/{lib → features/checkpoint/utils}/schemaUtils.d.ts +0 -0
- /package/dist/{api/file-api.d.ts → features/core/api/clients/fileClient.d.ts} +0 -0
- /package/dist/{api/utils.d.ts → features/core/api/utils/http.d.ts} +0 -0
- /package/dist/{lib → features/core/utils}/chatUtils.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/ChatInput.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/ChatInterface.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/FileViewerModal.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/MarkdownContent.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/ThreadManager.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/ArtifactRenderer.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/InterruptPartRenderer.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/ResearchTaskArtifact.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/SimpleJsonView.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/StreamProgress.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/ToolComponent.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/UserTextContent.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/artifacts/PlotArtifact.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/artifacts/ResearchTaskArtifact.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/index.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/useFilePreview.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/threads/ThreadListItem.d.ts +0 -0
- /package/dist/{lib → features/messaging/utils}/messageHelpers.d.ts +0 -0
- /package/dist/{lib → features/messaging/utils}/messageUtils.d.ts +0 -0
- /package/dist/{components/settings → features/settings/components}/ChatSettings.d.ts +0 -0
- /package/dist/{context → features/streaming/contexts}/reducers/MessageReducer.d.ts +0 -0
- /package/dist/{context → features/streaming/contexts}/reducers/utils/reducerUtils.d.ts +0 -0
- /package/dist/{hooks → features/streaming/hooks}/use-stream.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/accordion.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/alert-dialog.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/alert.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/aspect-ratio.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/avatar.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/badge.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/breadcrumb.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/button.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/calendar.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/card.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/chart.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/checkbox.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/collapsible.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/command.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/context-menu.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/dialog.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/drawer.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/dropdown-menu.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/form.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/hover-card.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/input-otp.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/input.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/label.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/menubar.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/navigation-menu.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/popover.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/progress.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/radio-group.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/scroll-area.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/select.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/separator.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/sheet.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/skeleton.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/slider.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/sonner.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/switch.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/table.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/tabs.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/textarea.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/toast.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/toaster.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/toggle-group.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/toggle.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/tooltip.d.ts +0 -0
- /package/dist/{hooks → features/ui/hooks}/use-mobile.d.ts +0 -0
- /package/dist/{lib/utils.d.ts → features/ui/utils/cn.d.ts} +0 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { MessagePart, HistoryPayload } from "@/types";
|
|
2
|
+
type ToolEventIdentity = {
|
|
3
|
+
id: string;
|
|
4
|
+
call_id?: string;
|
|
5
|
+
} | {
|
|
6
|
+
call_id: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
};
|
|
9
|
+
export type ToolStartEvent = {
|
|
10
|
+
type: "tool.start";
|
|
11
|
+
args: Record<string, unknown>;
|
|
12
|
+
name?: string;
|
|
13
|
+
tool?: string;
|
|
14
|
+
seq?: number;
|
|
15
|
+
} & ToolEventIdentity;
|
|
16
|
+
export type ToolEndEvent = {
|
|
17
|
+
type: "tool.end";
|
|
18
|
+
output: unknown;
|
|
19
|
+
artifact?: unknown;
|
|
20
|
+
error?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
tool?: string;
|
|
23
|
+
seq?: number;
|
|
24
|
+
} & ToolEventIdentity;
|
|
25
|
+
export type ToolProgressEvent = {
|
|
26
|
+
type: "tool.progress";
|
|
27
|
+
content?: string;
|
|
28
|
+
seq?: number;
|
|
29
|
+
};
|
|
30
|
+
export type ToolStreamEvent = ToolStartEvent | ToolEndEvent;
|
|
31
|
+
export type MessageStreamEvent = {
|
|
32
|
+
type: "message.start";
|
|
33
|
+
role: "assistant";
|
|
34
|
+
id: string;
|
|
35
|
+
model?: string;
|
|
36
|
+
} | {
|
|
37
|
+
type: "message.delta";
|
|
38
|
+
delta: MessagePart[];
|
|
39
|
+
} | {
|
|
40
|
+
type: "message.end";
|
|
41
|
+
} | ToolProgressEvent;
|
|
42
|
+
export type ThreadStreamEvent = {
|
|
43
|
+
type: "thread_info";
|
|
44
|
+
threadId: string;
|
|
45
|
+
title: string;
|
|
46
|
+
createdAt: string;
|
|
47
|
+
updatedAt: string;
|
|
48
|
+
messageCount: number;
|
|
49
|
+
lastMessage?: string | null;
|
|
50
|
+
created?: boolean | null;
|
|
51
|
+
ready?: boolean | null;
|
|
52
|
+
seq?: number | null;
|
|
53
|
+
} | {
|
|
54
|
+
type: "checkpoint";
|
|
55
|
+
checkpointId: string;
|
|
56
|
+
checkpointNs?: string | null;
|
|
57
|
+
};
|
|
58
|
+
export type SystemStreamEvent = {
|
|
59
|
+
type: "error";
|
|
60
|
+
message: string;
|
|
61
|
+
error_type?: string;
|
|
62
|
+
code?: string;
|
|
63
|
+
} | {
|
|
64
|
+
type: "interrupt";
|
|
65
|
+
id: string;
|
|
66
|
+
value: any;
|
|
67
|
+
seq: number;
|
|
68
|
+
} | {
|
|
69
|
+
type: "heartbeat";
|
|
70
|
+
timestamp: number;
|
|
71
|
+
seq: number;
|
|
72
|
+
} | {
|
|
73
|
+
type: "cancelled";
|
|
74
|
+
reason?: string;
|
|
75
|
+
seq?: number;
|
|
76
|
+
} | ({
|
|
77
|
+
type: "state_history";
|
|
78
|
+
seq?: number;
|
|
79
|
+
} & HistoryPayload);
|
|
80
|
+
export type ThreadInfoEvent = Extract<ThreadStreamEvent, {
|
|
81
|
+
type: "thread_info";
|
|
82
|
+
}>;
|
|
83
|
+
export type HeartbeatEvent = Extract<SystemStreamEvent, {
|
|
84
|
+
type: "heartbeat";
|
|
85
|
+
}>;
|
|
86
|
+
export type StateHistoryEvent = Extract<SystemStreamEvent, {
|
|
87
|
+
type: "state_history";
|
|
88
|
+
}>;
|
|
89
|
+
/**
|
|
90
|
+
* Complete LangGraph streaming event union type.
|
|
91
|
+
* All SSE messages from backend must be one of these types.
|
|
92
|
+
*/
|
|
93
|
+
export type StreamEvent = MessageStreamEvent | ToolStreamEvent | ThreadStreamEvent | SystemStreamEvent;
|
|
94
|
+
export declare function isStreamEvent(obj: any): obj is StreamEvent;
|
|
95
|
+
export declare function isToolEvent(obj: any): obj is ToolStreamEvent;
|
|
96
|
+
export declare function isToolStartEvent(obj: any): obj is ToolStartEvent;
|
|
97
|
+
export declare function isToolEndEvent(obj: any): obj is ToolEndEvent;
|
|
98
|
+
export declare function isMessageStreamEvent(obj: any): obj is MessageStreamEvent;
|
|
99
|
+
export declare function isThreadStreamEvent(obj: any): obj is ThreadStreamEvent;
|
|
100
|
+
export declare function isSystemStreamEvent(obj: any): obj is SystemStreamEvent;
|
|
101
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ChatApi } from "@/
|
|
2
|
-
import type { StateHistoryEvent } from "@/
|
|
1
|
+
import type { ChatApi } from "@/features/core";
|
|
2
|
+
import type { StateHistoryEvent } from "@/features/streaming";
|
|
3
3
|
import type { ChatMessage, HydratedCheckpointSnapshot } from "@/types";
|
|
4
|
-
import type { TimelineCheckpoint } from "@/types
|
|
5
|
-
import type { PendingInterrupt } from "@/types
|
|
6
|
-
import type { CheckpointIndex } from "@/
|
|
4
|
+
import type { TimelineCheckpoint } from "@/features/checkpoint/types";
|
|
5
|
+
import type { PendingInterrupt } from "@/features/core/types";
|
|
6
|
+
import type { CheckpointIndex } from "@/features/checkpoint/utils/checkpointIndex";
|
|
7
7
|
interface UseThreadHistoryStateOptions {
|
|
8
8
|
api: ChatApi;
|
|
9
9
|
seed: (messages: ChatMessage[], opts?: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MutableRefObject } from 'react';
|
|
2
|
-
import type { ChatApi } from
|
|
3
|
-
import type { ThreadInfoEvent } from '@/
|
|
2
|
+
import type { ChatApi } from "@/features/core";
|
|
3
|
+
import type { ThreadInfoEvent } from '@/features/streaming';
|
|
4
4
|
import type { SharedThreadSummary, ThreadSummary } from '@/types';
|
|
5
5
|
interface ThreadActions {
|
|
6
6
|
createThread: (title?: string) => Promise<string | null>;
|
|
@@ -13,6 +13,6 @@ type CarouselProps = {
|
|
|
13
13
|
declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import("
|
|
17
|
-
declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import("
|
|
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
18
|
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { ButtonProps } from "
|
|
2
|
+
import { ButtonProps } from "./button";
|
|
3
3
|
declare const Pagination: {
|
|
4
4
|
({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
@@ -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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import { TooltipContent } from "
|
|
3
|
+
import { TooltipContent } from "./tooltip";
|
|
4
4
|
type SidebarContext = {
|
|
5
5
|
state: "expanded" | "collapsed";
|
|
6
6
|
open: boolean;
|
|
@@ -22,7 +22,7 @@ declare const Sidebar: React.ForwardRefExoticComponent<Omit<React.ClassAttribute
|
|
|
22
22
|
variant?: "sidebar" | "floating" | "inset";
|
|
23
23
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
24
24
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<import("
|
|
25
|
+
declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<import("./button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
26
26
|
declare const SidebarRail: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
27
27
|
declare const SidebarInset: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
28
|
declare const SidebarInput: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type
|
|
2
|
+
import { type ToastActionElement, type ToastProps } from "../components/ui/toast";
|
|
3
3
|
type ToasterToast = ToastProps & {
|
|
4
4
|
id: string;
|
|
5
5
|
title?: React.ReactNode;
|
|
@@ -31,14 +31,14 @@ 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;
|
|
38
38
|
};
|
|
39
|
-
declare function useToast(): {
|
|
39
|
+
export declare function useToast(): {
|
|
40
40
|
toast: typeof toast;
|
|
41
41
|
dismiss: (toastId?: string) => void;
|
|
42
42
|
toasts: ToasterToast[];
|
|
43
43
|
};
|
|
44
|
-
export {
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { Button } from "./components/ui/button";
|
|
2
|
+
export { Badge } from "./components/ui/badge";
|
|
3
|
+
export { Card, CardContent, CardDescription, CardHeader, CardTitle } from "./components/ui/card";
|
|
4
|
+
export { Dialog, DialogContent, DialogHeader, DialogTitle } from "./components/ui/dialog";
|
|
5
|
+
export { Input } from "./components/ui/input";
|
|
6
|
+
export { Textarea } from "./components/ui/textarea";
|
|
7
|
+
export { Label } from "./components/ui/label";
|
|
8
|
+
export { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "./components/ui/select";
|
|
9
|
+
export { Separator } from "./components/ui/separator";
|
|
10
|
+
export { Switch } from "./components/ui/switch";
|
|
11
|
+
export { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger } from "./components/ui/sheet";
|
|
12
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/ui/tooltip";
|
|
13
|
+
export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "./components/ui/dropdown-menu";
|
|
14
|
+
export { ScrollArea } from "./components/ui/scroll-area";
|
|
15
|
+
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "./components/ui/command";
|
|
16
|
+
export { Toaster } from "./components/ui/toaster";
|
|
17
|
+
export { Toaster as Sonner } from "./components/ui/sonner";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cn } from "./cn";
|