🐛 Add setInputValue to Typebot embed object
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/js",
|
"name": "@typebot.io/js",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"description": "Javascript library to display typebots on your website",
|
"description": "Javascript library to display typebots on your website",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@ -9,6 +9,7 @@ import {
|
|||||||
setPrefilledVariables,
|
setPrefilledVariables,
|
||||||
showPreviewMessage,
|
showPreviewMessage,
|
||||||
toggle,
|
toggle,
|
||||||
|
setInputValue,
|
||||||
} from './features/commands'
|
} from './features/commands'
|
||||||
|
|
||||||
export const initStandard = (props: BotProps & { id?: string }) => {
|
export const initStandard = (props: BotProps & { id?: string }) => {
|
||||||
@ -41,6 +42,7 @@ type Typebot = {
|
|||||||
setPrefilledVariables: typeof setPrefilledVariables
|
setPrefilledVariables: typeof setPrefilledVariables
|
||||||
showPreviewMessage: typeof showPreviewMessage
|
showPreviewMessage: typeof showPreviewMessage
|
||||||
toggle: typeof toggle
|
toggle: typeof toggle
|
||||||
|
setInputValue: typeof setInputValue
|
||||||
}
|
}
|
||||||
|
|
||||||
declare const window:
|
declare const window:
|
||||||
@ -59,6 +61,7 @@ export const parseTypebot = () => ({
|
|||||||
setPrefilledVariables,
|
setPrefilledVariables,
|
||||||
showPreviewMessage,
|
showPreviewMessage,
|
||||||
toggle,
|
toggle,
|
||||||
|
setInputValue,
|
||||||
})
|
})
|
||||||
|
|
||||||
export const injectTypebotInWindow = (typebot: Typebot) => {
|
export const injectTypebotInWindow = (typebot: Typebot) => {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/nextjs",
|
"name": "@typebot.io/nextjs",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"description": "Convenient library to display typebots on your Next.js website",
|
"description": "Convenient library to display typebots on your Next.js website",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/react",
|
"name": "@typebot.io/react",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"description": "Convenient library to display typebots on your Next.js website",
|
"description": "Convenient library to display typebots on your Next.js website",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
Reference in New Issue
Block a user