Skip to content

Commit 5ad1f3c

Browse files
authored
Merge pull request #267 from FlowiseAI/feature/DomPurify
Feature/Add ability to render HTML tags
2 parents 6979083 + 4cdbffc commit 5ad1f3c

File tree

21 files changed

+29
-14
lines changed

21 files changed

+29
-14
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ You can also customize chatbot with different configuration
137137
starterPromptFontSize: 15,
138138
clearChatOnReload: false, // If set to true, the chat will be cleared when the page reloads
139139
sourceDocsTitle: 'Sources:'
140+
renderHTML: true,
140141
botMessage: {
141142
backgroundColor: '#f7f8ff',
142143
textColor: '#303235',

dist/components/Bot.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export type BotProps = {
9999
clearChatOnReload?: boolean;
100100
disclaimer?: DisclaimerPopUpTheme;
101101
dateTimeToggle?: DateTimeToggleTheme;
102+
renderHTML?: boolean;
102103
};
103104
export type LeadsConfig = {
104105
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/AgentReasoningBubble.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ type Props = {
99
backgroundColor?: string;
1010
textColor?: string;
1111
fontSize?: number;
12+
renderHTML?: boolean;
1213
};
1314
export declare const AgentReasoningBubble: (props: Props) => import("solid-js").JSX.Element;
1415
export {};

dist/components/bubbles/AgentReasoningBubble.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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type Props = {
1818
dateTimeToggle?: DateTimeToggleTheme;
1919
showAgentMessages?: boolean;
2020
sourceDocsTitle?: string;
21+
renderHTML?: boolean;
2122
handleActionClick: (label: string, action: IAction | undefined | null) => void;
2223
handleSourceDocumentsClick: (src: any) => void;
2324
};

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/bubbles/GuestBubble.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ type Props = {
99
backgroundColor?: string;
1010
textColor?: string;
1111
fontSize?: number;
12+
renderHTML?: boolean;
1213
};
1314
export declare const GuestBubble: (props: Props) => import("solid-js").JSX.Element;
1415
export {};

dist/components/bubbles/GuestBubble.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)