teodor-new-chat-ui 1.5.4 → 1.5.6
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/layout/ChatMainLayout.d.ts +19 -0
- package/dist/components/ui/resizable.d.ts +1 -1
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/index.esm.js +4489 -3559
- package/dist/index.umd.js +26 -26
- package/dist/lib/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChatMainLayout — Composable desktop layout using sidebar primitives
|
|
3
|
+
*
|
|
4
|
+
* - Wraps ChatProvider around a Sidebar layout so both sidebar and inset
|
|
5
|
+
* share chat context (critical for ThreadManager and ChatInterface).
|
|
6
|
+
* - Uses the UI sidebar primitives in this package for an inset-style layout.
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { ChatProviderProps } from '@/components/chat/ChatProvider';
|
|
10
|
+
export interface ChatMainLayoutProps extends Omit<ChatProviderProps, 'children'> {
|
|
11
|
+
header?: React.ReactNode;
|
|
12
|
+
sidebarTitle?: string;
|
|
13
|
+
showThreads?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
sidebarClassName?: string;
|
|
16
|
+
chatClassName?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function ChatMainLayout({ header, sidebarTitle, showThreads, className, sidebarClassName, chatClassName, ...providerProps }: ChatMainLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default ChatMainLayout;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
2
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<HTMLButtonElement | HTMLElement | HTMLTextAreaElement | HTMLDivElement | HTMLParagraphElement | HTMLUListElement | HTMLOListElement | HTMLLIElement | HTMLQuoteElement | HTMLTableElement | HTMLTableCellElement | HTMLPreElement | HTMLDListElement | HTMLSpanElement | HTMLImageElement | HTMLInputElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLObjectElement | HTMLMapElement | HTMLTitleElement | HTMLDataElement | HTMLLinkElement | HTMLFormElement | HTMLSlotElement | HTMLStyleElement | HTMLDialogElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLabelElement | HTMLLegendElement | HTMLMetaElement | HTMLMeterElement | HTMLOutputElement |
|
|
3
|
+
declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLTextAreaElement | HTMLDivElement | HTMLParagraphElement | HTMLUListElement | HTMLOListElement | HTMLLIElement | HTMLQuoteElement | HTMLTableElement | HTMLTableCellElement | HTMLPreElement | HTMLDListElement | HTMLSpanElement | HTMLImageElement | HTMLInputElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLObjectElement | HTMLMapElement | HTMLTitleElement | HTMLDataElement | HTMLProgressElement | HTMLLinkElement | HTMLFormElement | HTMLSlotElement | HTMLStyleElement | HTMLDialogElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLabelElement | HTMLLegendElement | HTMLMetaElement | HTMLMeterElement | HTMLOutputElement | HTMLScriptElement | HTMLSourceElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
collapsedSize?: number | undefined;
|
|
6
6
|
collapsible?: boolean | undefined;
|
|
@@ -7,7 +7,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
|
|
|
7
7
|
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
8
8
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
declare const sheetVariants: (props?: {
|
|
10
|
-
side?: "bottom" | "top" | "
|
|
10
|
+
side?: "bottom" | "top" | "left" | "right";
|
|
11
11
|
} & import("class-variance-authority/dist/types").ClassProp) => string;
|
|
12
12
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
13
13
|
}
|