Skip to content

Commit a2d5d41

Browse files
committed
add header to bubble chat
1 parent 029ad04 commit a2d5d41

20 files changed

Lines changed: 168630 additions & 18 deletions

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ You can also customize chatbot with different configuration
170170
clearChatOnReload: false, // If set to true, the chat will be cleared when the page reloads
171171
sourceDocsTitle: 'Sources:',
172172
renderHTML: true,
173+
headerHtml: '<div style="padding: 10px; background: #f0f0f0;"><h3>My Custom Header</h3></div>', // Optional HTML rendered at the top of the chat window
173174
botMessage: {
174175
backgroundColor: '#f7f8ff',
175176
textColor: '#303235',

dist/components/Bot.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ export type BotProps = {
121121
dateTimeToggle?: DateTimeToggleTheme;
122122
renderHTML?: boolean;
123123
closeBot?: () => void;
124+
hasCustomHeader?: boolean;
125+
dialogContainer?: HTMLElement;
124126
};
125127
export type LeadsConfig = {
126128
status: boolean;

dist/components/Bot.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components/bubbles/BotBubble.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ type Props = {
2626
isTTSPlaying?: Record<string, boolean>;
2727
handleTTSClick?: (messageId: string, messageText: string) => void;
2828
handleTTSStop?: (messageId: string) => void;
29+
hasCustomHeader?: boolean;
30+
dialogContainer?: HTMLElement;
2931
};
3032
export declare const BotBubble: (props: Props) => import("solid-js").JSX.Element;
3133
export {};

dist/components/bubbles/BotBubble.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components/treeview/NodeDetailsDialog.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ type NodeDetailsDialogProps = {
1212
apiHost?: string;
1313
chatflowid?: string;
1414
chatId?: string;
15+
dialogContainer?: HTMLElement;
16+
hasCustomHeader?: boolean;
1517
};
1618
export declare const NodeDetailsDialog: (props: NodeDetailsDialogProps) => import("solid-js").JSX.Element;
1719
export {};

dist/components/treeview/NodeDetailsDialog.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components/treeview/WorkflowTreeView.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ type WorkflowTreeViewProps = {
1717
apiHost?: string;
1818
chatflowid?: string;
1919
chatId?: string;
20+
hasCustomHeader?: boolean;
21+
dialogContainer?: HTMLElement;
2022
};
2123
export declare const WorkflowTreeView: (props: WorkflowTreeViewProps) => import("solid-js").JSX.Element;
2224
export {};

dist/components/treeview/WorkflowTreeView.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/features/bubble/components/Bubble.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)