2
0

(settings) Add delay between bubbles option and typing disabling on first message

This commit is contained in:
Baptiste Arnaud
2024-01-24 12:03:41 +01:00
parent e80f297e74
commit f052b4c805
16 changed files with 159 additions and 37 deletions

View File

@@ -10,7 +10,13 @@ export const defaultSettings = {
isBrandingEnabled: false,
isTypingEmulationEnabled: true,
},
typingEmulation: { enabled: true, speed: 300, maxDelay: 1.5 },
typingEmulation: {
enabled: true,
speed: 400,
maxDelay: 3,
delayBetweenBubbles: 0,
isDisabledOnFirstMessage: true,
},
metadata: {
description:
'Build beautiful conversational forms and embed them directly in your applications without a line of code. Triple your response rate and collect answers that has more value compared to a traditional form.',

View File

@@ -20,6 +20,8 @@ const typingEmulation = z.object({
enabled: z.boolean().optional(),
speed: z.number().optional(),
maxDelay: z.number().optional(),
delayBetweenBubbles: z.number().min(0).max(5).optional(),
isDisabledOnFirstMessage: z.boolean().optional(),
})
const metadataSchema = z.object({