Skip to content

Commit 7b63134

Browse files
authored
feat: add config for custom page/tab title (#359)
* feat: add config for custom page/tab title * rebase
1 parent 312c179 commit 7b63134

File tree

11 files changed

+20
-168675
lines changed

11 files changed

+20
-168675
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ You can also customize chatbot with different configuration
102102
Chatbot.init({
103103
chatflowid: '91e9c803-5169-4db9-8207-3c0915d71c5f',
104104
apiHost: 'http://localhost:3000',
105+
pageTitle: 'Flowise Chatbot Widget', // Optional: browser tab title. Empty string falls back to "Flowise Chatbot Widget"
105106
chatflowConfig: {
106107
// topK: 2
107108
},

dist/components/Bot.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export type observersConfigType = Record<'observeUserInput' | 'observeLoading' |
8686
export type BotProps = {
8787
chatflowid: string;
8888
apiHost?: string;
89+
pageTitle?: string;
8990
onRequest?: (request: RequestInit) => Promise<void>;
9091
chatflowConfig?: Record<string, unknown>;
9192
backgroundColor?: string;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ declare const chatbot: {
22
initFull: (props: {
33
chatflowid: string;
44
apiHost?: string | undefined;
5+
pageTitle?: string | undefined;
56
onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
67
chatflowConfig?: Record<string, unknown> | undefined;
78
observersConfig?: import("./components/Bot").observersConfigType | undefined;
@@ -12,6 +13,7 @@ declare const chatbot: {
1213
init: (props: {
1314
chatflowid: string;
1415
apiHost?: string | undefined;
16+
pageTitle?: string | undefined;
1517
onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
1618
chatflowConfig?: Record<string, unknown> | undefined;
1719
observersConfig?: import("./components/Bot").observersConfigType | undefined;

dist/web.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)