Skip to content

Commit

Permalink
Added antdTheme as an export, added handleStartChat as an optional ca…
Browse files Browse the repository at this point in the history
…llback to Start New Chat
  • Loading branch information
priyanshu-09 committed Sep 2, 2024
1 parent 6fea77d commit 451bec8
Show file tree
Hide file tree
Showing 12 changed files with 4,054 additions and 4,043 deletions.
3 changes: 1 addition & 2 deletions package-dist/AppThemeProvider.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ReactNode } from 'react';

export type AppThemeModeType = "light" | "dark";
type Theme = {
export type Theme = {
"--primary-color": string;
"--cta-text": string;
"--background": string;
Expand All @@ -22,4 +22,3 @@ export type AppThemeProviderProps = {
appTheme?: Record<AppThemeModeType, Theme>;
};
export default function AppThemeProvider({ children, appTheme, }: AppThemeProviderProps): import("react/jsx-runtime").JSX.Element;
export {};
9 changes: 5 additions & 4 deletions package-dist/chatScreen/ChatScreenPA.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { ReactNode } from 'react';

export interface BaseMessage {
content: any;
type: 'ai' | 'human';
type: "ai" | "human";
}
export interface CustomMessageComponentProp<T> {
type: 'ai' | 'human';
type: "ai" | "human";
component: ({ index, messages, handleSendFollowupMessage, }: {
messages: T[];
index: number;
Expand All @@ -18,11 +18,12 @@ export interface ChatScreenPAProps<T> {
isMessageLoading: boolean;
setMessages: React.Dispatch<React.SetStateAction<T[]>>;
showMessageActionCard?: boolean;
hideActionCardItems?: ('copy' | 'regenerate')[];
hideActionCardItems?: ("copy" | "regenerate")[];
customMessageComponent?: CustomMessageComponentProp<T>;
customMessageActionCardItem?: ReactNode[];
hideNewChatButton?: boolean;
emptyChatComponent?: ReactNode;
disableScrollNewMessageToTop?: boolean;
handleStartNewChat?: () => void;
}
export declare function ChatScreenPA<T extends BaseMessage>({ messages, handleSendFollowupMessage, isMessageLoading, setMessages, showMessageActionCard, hideActionCardItems, customMessageComponent, customMessageActionCardItem, hideNewChatButton, emptyChatComponent, disableScrollNewMessageToTop }: ChatScreenPAProps<T>): import("react/jsx-runtime").JSX.Element;
export declare function ChatScreenPA<T extends BaseMessage>({ messages, handleSendFollowupMessage, isMessageLoading, setMessages, showMessageActionCard, hideActionCardItems, customMessageComponent, customMessageActionCardItem, hideNewChatButton, emptyChatComponent, disableScrollNewMessageToTop, handleStartNewChat, }: ChatScreenPAProps<T>): import("react/jsx-runtime").JSX.Element;
4 changes: 4 additions & 0 deletions package-dist/getAntdTheme.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { ThemeConfig } from 'antd';
import { Theme } from './AppThemeProvider';

export declare const getAntdTheme: (themeColors: Theme) => ThemeConfig;
1 change: 1 addition & 0 deletions package-dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export { HousewareBranding } from './common/HousewareBranding';
export { ThemeToggle } from './common/ThemeToggle';
export { default as AppThemeProvider } from './AppThemeProvider';
export type { AppThemeProviderProps } from './AppThemeProvider';
export { getAntdTheme } from './getAntdTheme';
export { useThemeManager } from './useThemeManager';
export { SpotlightGrid } from './welcomeScreen/SpotlightGrid';
export { default as Piechart } from './charts/Piechart/Piechart';
Expand Down
Loading

0 comments on commit 451bec8

Please sign in to comment.