2
0

♻️ Add a test for internal waitUntil

This commit is contained in:
Baptiste Arnaud
2024-04-16 12:56:47 +02:00
parent 8d62898d15
commit 87f5d8515a
89 changed files with 1029 additions and 1154 deletions

View File

@@ -1,4 +1,5 @@
import { DefaultBotNotificationEmail, render } from '@typebot.io/emails'
import { render } from '@typebot.io/emails/render'
import DefaultSendEmailNotification from '@typebot.io/emails/templates/transactional/DefaultSendEmailNotification'
import {
AnswerInSessionState,
ChatLog,
@@ -253,11 +254,11 @@ const getEmailBody = async ({
})
return {
html: render(
<DefaultBotNotificationEmail
<DefaultSendEmailNotification
resultsUrl={`${env.NEXTAUTH_URL}/typebots/${typebot.id}/results`}
answers={omit(answers, 'submittedAt')}
/>
).html,
),
}
}

View File

@@ -18,7 +18,7 @@
"@typebot.io/schemas": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@typebot.io/variables": "workspace:*",
"@udecode/plate-common": "30.4.5",
"@udecode/slate": "31.0.0",
"ai": "3.0.12",
"chrono-node": "2.7.5",
"date-fns": "2.30.0",

View File

@@ -11,7 +11,7 @@ import {
getVariablesToParseInfoInText,
parseVariables,
} from '@typebot.io/variables/parseVariables'
import { TDescendant } from '@udecode/plate-common'
import { TDescendant } from '@udecode/slate'
import { BubbleBlockType } from '@typebot.io/schemas/features/blocks/bubbles/constants'
import { defaultVideoBubbleContent } from '@typebot.io/schemas/features/blocks/bubbles/video/constants'
import { convertMarkdownToRichText } from '@typebot.io/lib/markdown/convertMarkdownToRichText'