Skip to content

Commit b32def9

Browse files
authored
Merge pull request #241 from KI-Experten/main
Disclaimer Popup for GDPR-Compliance
2 parents 19c0b80 + 9348508 commit b32def9

File tree

21 files changed

+136
-12
lines changed

21 files changed

+136
-12
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ You can also customize chatbot with different configuration
171171
company: 'Flowise',
172172
companyLink: 'https://flowiseai.com',
173173
},
174+
disclaimer: {
175+
title: 'Disclaimer',
176+
message: 'By using this chatbot, you agree to the <a target="_blank" href="https://flowiseai.com/terms">Terms & Condition</a>',
177+
}
174178
},
175179
},
176180
});

dist/components/Bot.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FeedbackRatingType } from '@/queries/sendMessageQuery';
2-
import { BotMessageTheme, FooterTheme, TextInputTheme, UserMessageTheme, FeedbackTheme } from '@/features/bubble/types';
2+
import { BotMessageTheme, FooterTheme, TextInputTheme, UserMessageTheme, FeedbackTheme, DisclaimerPopUpTheme } from '@/features/bubble/types';
33
import { FilePreview } from '@/components/inputs/textInput/components/FilePreview';
44
export type FileEvent<T = EventTarget> = {
55
target: T;
@@ -89,6 +89,7 @@ export type BotProps = {
8989
starterPrompts?: string[];
9090
starterPromptFontSize?: number;
9191
clearChatOnReload?: boolean;
92+
disclaimer?: DisclaimerPopUpTheme;
9293
};
9394
export type LeadsConfig = {
9495
status: boolean;

dist/components/Bot.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

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

+1-1
Original file line numberDiff line numberDiff line change

dist/features/bubble/types.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export type BubbleTheme = {
55
chatWindow?: ChatWindowTheme;
66
button?: ButtonTheme;
77
tooltip?: ToolTipTheme;
8+
disclaimer?: DisclaimerPopUpTheme;
89
};
910
export type TextInputTheme = {
1011
backgroundColor?: string;
@@ -86,4 +87,9 @@ export type autoWindowOpenTheme = {
8687
openDelay?: number;
8788
autoOpenOnMobile?: boolean;
8889
};
90+
export type DisclaimerPopUpTheme = {
91+
title?: string;
92+
message?: string;
93+
buttonText?: string;
94+
};
8995
//# sourceMappingURL=types.d.ts.map

dist/features/bubble/types.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/features/full/components/Full.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export type DisclaimerPopupProps = {
2+
isOpen?: boolean;
3+
onAccept?: () => void;
4+
title?: string;
5+
message?: string;
6+
buttonText?: string;
7+
};
8+
export declare const DisclaimerPopup: (props: DisclaimerPopupProps) => import("solid-js").JSX.Element;
9+
//# sourceMappingURL=DisclaimerPopup.d.ts.map

dist/features/popup/components/DisclaimerPopup.d.ts.map

+1
Original file line numberDiff line numberDiff line change
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export * from './Popup';
2+
export * from './DisclaimerPopup';
23
//# sourceMappingURL=index.d.ts.map

dist/features/popup/components/index.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/utils/index.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ export declare const setLocalStorageChatflow: (chatflowid: string, chatId: strin
1818
export declare const getLocalStorageChatflow: (chatflowid: string) => any;
1919
export declare const removeLocalStorageChatHistory: (chatflowid: string) => void;
2020
export declare const getBubbleButtonSize: (size: 'small' | 'medium' | 'large' | number | undefined) => number;
21+
export declare const setCookie: (cname: string, cvalue: string, exdays: number) => void;
22+
export declare const getCookie: (cname: string) => string;
2123
//# sourceMappingURL=index.d.ts.map

dist/utils/index.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/web.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)