diff --git a/packages/website/src/components/ChatConfiguration.tsx b/packages/website/src/components/ChatConfiguration.tsx index 790feefe..4cee9343 100644 --- a/packages/website/src/components/ChatConfiguration.tsx +++ b/packages/website/src/components/ChatConfiguration.tsx @@ -200,15 +200,19 @@ const RadioList = ({ return (
{options.map((option) => ( -
diff --git a/packages/website/src/constants.ts b/packages/website/src/constants.ts index 5fac94a7..8c549742 100644 --- a/packages/website/src/constants.ts +++ b/packages/website/src/constants.ts @@ -1,4 +1,4 @@ -export const version = "0.0.9"; +export const version = "0.0.14"; export const umdScriptTags = { chatCore: `https://unpkg.com/@nlxai/chat-core@${version}/lib/umd/index.js`, diff --git a/packages/website/src/snippets.ts b/packages/website/src/snippets.ts index 19b5a611..b1d76df0 100644 --- a/packages/website/src/snippets.ts +++ b/packages/website/src/snippets.ts @@ -165,6 +165,7 @@ storeIn: "localStorage", ? indentBy( " ", ` + // CUSTOM BEHAVIOR SNIPPET ${sendWelcomeOnTimeoutSnippet} // CUSTOM BEHAVIOR SNIPPET END`, @@ -181,6 +182,7 @@ export const sendWelcomeOnTimeoutSnippet = `setTimeout(() => { const conversationHandler = widget.getConversationHandler(); if (conversationHandler) { conversationHandler.sendIntent("MyCustomIntent"); + widget.expand(); } }, 16000);`;