✨ Introducing The Forge (#1072)
The Forge allows anyone to easily create their own Typebot Block. Closes #380
This commit is contained in:
@ -6,6 +6,7 @@ import {
|
||||
SessionState,
|
||||
} from '@typebot.io/schemas'
|
||||
import {
|
||||
createId,
|
||||
isBubbleBlock,
|
||||
isInputBlock,
|
||||
isIntegrationBlock,
|
||||
@ -20,7 +21,7 @@ import { injectVariableValuesInButtonsInputBlock } from './blocks/inputs/buttons
|
||||
import { injectVariableValuesInPictureChoiceBlock } from './blocks/inputs/pictureChoice/injectVariableValuesInPictureChoiceBlock'
|
||||
import { getPrefilledInputValue } from './getPrefilledValue'
|
||||
import { parseDateInput } from './blocks/inputs/date/parseDateInput'
|
||||
import { deepParseVariables } from './variables/deepParseVariables'
|
||||
import { deepParseVariables } from '@typebot.io/variables/deepParseVariables'
|
||||
import {
|
||||
BubbleBlockWithDefinedContent,
|
||||
parseBubbleBlock,
|
||||
@ -139,10 +140,21 @@ export const executeGroup = async (
|
||||
lastBubbleBlockId,
|
||||
})),
|
||||
]
|
||||
if (
|
||||
'customEmbedBubble' in executionResponse &&
|
||||
executionResponse.customEmbedBubble
|
||||
) {
|
||||
messages.push({
|
||||
id: createId(),
|
||||
...executionResponse.customEmbedBubble,
|
||||
})
|
||||
}
|
||||
if (
|
||||
executionResponse.clientSideActions?.find(
|
||||
(action) => action.expectsDedicatedReply
|
||||
)
|
||||
) ||
|
||||
('customEmbedBubble' in executionResponse &&
|
||||
executionResponse.customEmbedBubble)
|
||||
) {
|
||||
return {
|
||||
messages,
|
||||
|
Reference in New Issue
Block a user