diff --git a/apps/builder/src/components/NewVersionPopup.tsx b/apps/builder/src/components/NewVersionPopup.tsx
index d6862a758..bf09858a8 100644
--- a/apps/builder/src/components/NewVersionPopup.tsx
+++ b/apps/builder/src/components/NewVersionPopup.tsx
@@ -12,7 +12,7 @@ import { useEffect, useState } from 'react'
import { sendRequest } from 'utils'
import { PackageIcon } from './icons'
-const intervalDuration = 1000 * 60 // 30 seconds
+const intervalDuration = 1000 * 60
export const NewVersionPopup = () => {
const { typebot, save } = useTypebot()
diff --git a/packages/js/src/components/ConversationContainer/ChatChunk.tsx b/packages/js/src/components/ConversationContainer/ChatChunk.tsx
index 64690a74d..dabcfd6c0 100644
--- a/packages/js/src/components/ConversationContainer/ChatChunk.tsx
+++ b/packages/js/src/components/ConversationContainer/ChatChunk.tsx
@@ -68,6 +68,7 @@ export const ChatChunk = (props: Props) => {
{(message) => (
)}
diff --git a/packages/js/src/components/bubbles/HostBubble.tsx b/packages/js/src/components/bubbles/HostBubble.tsx
index f0d743b03..d669ec23d 100644
--- a/packages/js/src/components/bubbles/HostBubble.tsx
+++ b/packages/js/src/components/bubbles/HostBubble.tsx
@@ -9,6 +9,7 @@ import type {
EmbedBubbleContent,
ImageBubbleContent,
TextBubbleContent,
+ TypingEmulation,
VideoBubbleContent,
} from 'models'
import { BubbleBlockType } from 'models/features/blocks/bubbles/enums'
@@ -16,6 +17,7 @@ import { Match, Switch } from 'solid-js'
type Props = {
message: ChatMessage
+ typingEmulation: TypingEmulation
onTransitionEnd: () => void
}
@@ -29,6 +31,7 @@ export const HostBubble = (props: Props) => {
}
+ typingEmulation={props.typingEmulation}
onTransitionEnd={onTransitionEnd}
/>
diff --git a/packages/js/src/features/blocks/bubbles/textBubble/components/TextBubble.tsx b/packages/js/src/features/blocks/bubbles/textBubble/components/TextBubble.tsx
index 5225312d3..a26deefe4 100644
--- a/packages/js/src/features/blocks/bubbles/textBubble/components/TextBubble.tsx
+++ b/packages/js/src/features/blocks/bubbles/textBubble/components/TextBubble.tsx
@@ -5,8 +5,8 @@ import { computeTypingDuration } from '../utils/computeTypingDuration'
type Props = {
content: Pick
+ typingEmulation: TypingEmulation
onTransitionEnd: () => void
- typingEmulation?: TypingEmulation
}
export const showAnimationDuration = 400
@@ -29,10 +29,13 @@ export const TextBubble = (props: Props) => {
onMount(() => {
if (!isTyping) return
- const typingDuration = computeTypingDuration(
- props.content.plainText,
- props.typingEmulation ?? defaultTypingEmulation
- )
+ const typingDuration =
+ props.typingEmulation?.enabled === false
+ ? 0
+ : computeTypingDuration(
+ props.content.plainText,
+ props.typingEmulation ?? defaultTypingEmulation
+ )
setTimeout(() => {
onTypingEnd()
}, typingDuration)