dhi-copilot-ai 1.0.4 → 2.1.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.
- package/dist/components/CopilotApp.d.ts +6 -0
- package/dist/components/chat/ChatInput.d.ts +7 -0
- package/dist/components/chat/ChatWindow.d.ts +10 -0
- package/dist/components/chat/MessageBubble.d.ts +6 -0
- package/dist/components/chat/SourceChip.d.ts +6 -0
- package/dist/components/chat/ThinkingIndicator.d.ts +1 -0
- package/dist/components/chat/WelcomeScreen.d.ts +5 -0
- package/dist/components/layout/LayoutClientWrapper.d.ts +3 -0
- package/dist/components/layout/Sidebar.d.ts +11 -0
- package/dist/components/layout/WidgetHeader.d.ts +3 -0
- package/dist/components/providers/WidgetProvider.d.ts +17 -0
- package/dist/components/settings/ConnectorCard.d.ts +8 -0
- package/dist/components/settings/ConnectorForm.d.ts +1 -0
- package/dist/components/settings/ConnectorList.d.ts +9 -0
- package/dist/components/settings/WebProgressIndicator.d.ts +1 -0
- package/dist/components/ui/NetworkErrorModal.d.ts +1 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/dhi-copilot.umd.js +36 -2
- package/dist/hooks/useChat.d.ts +12 -0
- package/dist/hooks/useConnectors.d.ts +12 -0
- package/dist/hooks/useErrorStore.d.ts +6 -0
- package/dist/hooks/useIdentity.d.ts +4 -0
- package/dist/index.d.ts +8 -0
- package/dist/lib/api.d.ts +32 -0
- package/dist/lib/types.d.ts +74 -0
- package/dist/lib/utils.d.ts +18 -0
- package/dist/main.d.ts +0 -0
- package/dist/src/components/CopilotApp.d.ts +6 -0
- package/dist/src/components/chat/ChatInput.d.ts +7 -0
- package/dist/src/components/chat/ChatWindow.d.ts +10 -0
- package/dist/src/components/chat/MessageBubble.d.ts +6 -0
- package/dist/src/components/chat/SourceChip.d.ts +6 -0
- package/dist/src/components/chat/ThinkingIndicator.d.ts +1 -0
- package/dist/src/components/chat/WelcomeScreen.d.ts +5 -0
- package/dist/src/components/layout/LayoutClientWrapper.d.ts +3 -0
- package/dist/src/components/layout/Sidebar.d.ts +11 -0
- package/dist/src/components/layout/WidgetHeader.d.ts +3 -0
- package/dist/src/components/providers/WidgetProvider.d.ts +17 -0
- package/dist/src/components/settings/ConnectorCard.d.ts +8 -0
- package/dist/src/components/settings/ConnectorForm.d.ts +1 -0
- package/dist/src/components/settings/ConnectorList.d.ts +9 -0
- package/dist/src/components/settings/WebProgressIndicator.d.ts +1 -0
- package/dist/src/components/ui/NetworkErrorModal.d.ts +1 -0
- package/dist/src/components/ui/badge.d.ts +9 -0
- package/dist/src/components/ui/button.d.ts +10 -0
- package/dist/src/components/ui/card.d.ts +9 -0
- package/dist/src/components/ui/input.d.ts +3 -0
- package/dist/src/components/ui/label.d.ts +4 -0
- package/dist/src/components/ui/scroll-area.d.ts +5 -0
- package/dist/src/components/ui/select.d.ts +15 -0
- package/dist/src/components/ui/separator.d.ts +4 -0
- package/dist/src/components/ui/textarea.d.ts +3 -0
- package/dist/src/components/ui/tooltip.d.ts +7 -0
- package/dist/src/hooks/useChat.d.ts +12 -0
- package/dist/src/hooks/useConnectors.d.ts +12 -0
- package/dist/src/hooks/useErrorStore.d.ts +6 -0
- package/dist/src/hooks/useIdentity.d.ts +4 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/lib/api.d.ts +32 -0
- package/dist/src/lib/types.d.ts +74 -0
- package/dist/src/lib/utils.d.ts +18 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/views/ChatView.d.ts +5 -0
- package/dist/src/views/HistoryView.d.ts +7 -0
- package/dist/src/views/SettingsView.d.ts +1 -0
- package/dist/tailwind.config.d.ts +8 -0
- package/dist/views/ChatView.d.ts +5 -0
- package/dist/views/HistoryView.d.ts +7 -0
- package/dist/views/SettingsView.d.ts +1 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +45 -44
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChatSession } from '../../lib/types';
|
|
2
|
+
interface ChatWindowProps {
|
|
3
|
+
session: ChatSession;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
error: string | null;
|
|
6
|
+
onSend: (message: string) => void;
|
|
7
|
+
onReset: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function ChatWindow({ session, isLoading, error, onSend, onReset, }: ChatWindowProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ThinkingIndicator(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface SidebarProps {
|
|
2
|
+
expanded: boolean;
|
|
3
|
+
setExpanded: (val: boolean) => void;
|
|
4
|
+
isEmbed: boolean;
|
|
5
|
+
activeThreadId: string | null;
|
|
6
|
+
onSelectThread?: (id: string) => void;
|
|
7
|
+
onSelectView?: (view: string) => void;
|
|
8
|
+
onNewChat?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function Sidebar({ expanded, setExpanded, activeThreadId, isEmbed, onSelectThread, onSelectView, onNewChat }: SidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface WidgetConfig {
|
|
3
|
+
primaryColor: string;
|
|
4
|
+
logoUrl: string;
|
|
5
|
+
botName: string;
|
|
6
|
+
position: "left" | "right";
|
|
7
|
+
apiUrl: string;
|
|
8
|
+
userToken?: string;
|
|
9
|
+
userId?: string;
|
|
10
|
+
userName?: string;
|
|
11
|
+
expandedDefault: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function WidgetProvider({ children, config }: {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
config?: Partial<WidgetConfig>;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const useWidgetConfig: () => WidgetConfig;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Connector } from '../../lib/types';
|
|
2
|
+
interface ConnectorCardProps {
|
|
3
|
+
connector: Connector;
|
|
4
|
+
isIndexing: boolean;
|
|
5
|
+
onIndex: (sourceId: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function ConnectorCard({ connector, isIndexing, onIndex, }: ConnectorCardProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ConnectorForm({ isSaving, isIndexing, onSave, onIndex }: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Connector } from '../../lib/types';
|
|
2
|
+
interface ConnectorListProps {
|
|
3
|
+
connectors: Connector[];
|
|
4
|
+
isFetching: boolean;
|
|
5
|
+
isIndexing: string | null;
|
|
6
|
+
onIndex: (sourceId: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ConnectorList({ connectors, isFetching, isIndexing, onIndex, }: ConnectorListProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function WebProgressIndicator(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function NetworkErrorModal(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "link" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "link" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Card({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
3
|
+
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { ScrollArea, ScrollBar };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: "sm" | "default";
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3
|
+
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Separator };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|