2
0

(chat) Improve chat API compatibility with preview mode

This commit is contained in:
Baptiste Arnaud
2023-01-16 12:13:21 +01:00
parent dbe5c3cdb1
commit 7311988901
55 changed files with 4133 additions and 465 deletions

View File

@ -32,7 +32,7 @@ export const Default = () => {
</div>
<Bubble
typebotId="ladleTypebot"
typebot="ladleTypebot"
apiHost="http://localhost:3001"
prefilledVariables={{
Name: 'John',
@ -42,12 +42,15 @@ export const Default = () => {
message: 'Hello, I am a preview message',
autoShowDelay: 3000,
}}
button={{
backgroundColor: '#FF7537',
icon: {
color: 'white',
theme={{
button: {
backgroundColor: '#FF7537',
icon: {
color: 'white',
},
},
}}
isPreview
/>
</div>
)