2
0

Add attachments option to text input (#1608)

Closes #854
This commit is contained in:
Baptiste Arnaud
2024-06-26 10:13:38 +02:00
committed by GitHub
parent 80da7af4f1
commit 6db0464fd7
88 changed files with 2959 additions and 735 deletions

View File

@ -7,10 +7,11 @@ import { parseDynamicTheme } from '../parseDynamicTheme'
import { saveStateToDatabase } from '../saveStateToDatabase'
import { computeCurrentProgress } from '../computeCurrentProgress'
import { BubbleBlockType } from '@typebot.io/schemas/features/blocks/bubbles/constants'
import { Message } from '@typebot.io/schemas'
type Props = {
origin: string | undefined
message?: string
message?: Message
sessionId: string
textBubbleContentFormat: 'richText' | 'markdown'
}

View File

@ -1,14 +1,14 @@
import { BubbleBlockType } from '@typebot.io/schemas/features/blocks/bubbles/constants'
import { Message } from '@typebot.io/schemas'
import { computeCurrentProgress } from '../computeCurrentProgress'
import { filterPotentiallySensitiveLogs } from '../logs/filterPotentiallySensitiveLogs'
import { restartSession } from '../queries/restartSession'
import { saveStateToDatabase } from '../saveStateToDatabase'
import { startSession } from '../startSession'
import { isNotEmpty } from '@typebot.io/lib'
type Props = {
origin: string | undefined
message?: string
message?: Message
isOnlyRegistering: boolean
publicId: string
isStreamEnabled: boolean
@ -48,8 +48,8 @@ export const startChat = async ({
prefilledVariables,
resultId: startResultId,
textBubbleContentFormat,
message,
},
message,
})
let corsOrigin

View File

@ -1,4 +1,4 @@
import { StartFrom, StartTypebot } from '@typebot.io/schemas'
import { Message, StartFrom, StartTypebot } from '@typebot.io/schemas'
import { restartSession } from '../queries/restartSession'
import { saveStateToDatabase } from '../saveStateToDatabase'
import { startSession } from '../startSession'
@ -6,7 +6,7 @@ import { computeCurrentProgress } from '../computeCurrentProgress'
import { BubbleBlockType } from '@typebot.io/schemas/features/blocks/bubbles/constants'
type Props = {
message?: string
message?: Message
isOnlyRegistering: boolean
isStreamEnabled: boolean
startFrom?: StartFrom
@ -53,8 +53,8 @@ export const startChatPreview = async ({
prefilledVariables,
sessionId,
textBubbleContentFormat,
message,
},
message,
})
const session = isOnlyRegistering