2
0

🐛 Add setInputValue to Typebot embed object

This commit is contained in:
Baptiste Arnaud
2023-07-19 08:28:27 +02:00
parent 22c1e2e6cf
commit 6c540657a6
4 changed files with 6 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ import {
setPrefilledVariables,
showPreviewMessage,
toggle,
setInputValue,
} from './features/commands'
export const initStandard = (props: BotProps & { id?: string }) => {
@@ -41,6 +42,7 @@ type Typebot = {
setPrefilledVariables: typeof setPrefilledVariables
showPreviewMessage: typeof showPreviewMessage
toggle: typeof toggle
setInputValue: typeof setInputValue
}
declare const window:
@@ -59,6 +61,7 @@ export const parseTypebot = () => ({
setPrefilledVariables,
showPreviewMessage,
toggle,
setInputValue,
})
export const injectTypebotInWindow = (typebot: Typebot) => {