2
0

🐛 Chatwoot widget open should not unmount bot if standard or popup

This commit is contained in:
Baptiste Arnaud
2023-12-21 18:44:59 +01:00
parent f4a0935c79
commit 512bb09282
5 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/js",
"version": "0.2.29",
"version": "0.2.30",
"description": "Javascript library to display typebots on your website",
"type": "module",
"main": "dist/index.js",

View File

@ -85,7 +85,6 @@ export const Popup = (props: PopupProps) => {
...existingPrefilledVariables,
...data.variables,
}))
if (data.command === 'unmount') closeBot()
}
const openBot = () => {

View File

@ -35,7 +35,6 @@ export const Standard = (
const processIncomingEvent = (event: MessageEvent<CommandData>) => {
const { data } = event
if (!data.isFromTypebot) return
if (data.command === 'unmount') setIsBotDisplayed(false)
}
onCleanup(() => {

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/nextjs",
"version": "0.2.29",
"version": "0.2.30",
"description": "Convenient library to display typebots on your Next.js website",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/react",
"version": "0.2.29",
"version": "0.2.30",
"description": "Convenient library to display typebots on your React app",
"main": "dist/index.js",
"types": "dist/index.d.ts",