From b734c60287d31e530fbd3cb4b63240b476987c04 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Tue, 29 Oct 2024 14:21:51 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Import=20open=20and=20close=20co?= =?UTF-8?q?mmand=20from=20embed=20lib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + packages/embeds/js/package.json | 2 +- packages/embeds/js/src/window.ts | 2 ++ packages/embeds/nextjs/package.json | 2 +- packages/embeds/react/package.json | 2 +- packages/embeds/stories/src/bubble.stories.tsx | 1 - 6 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index deaf8ae567..1cddbb56a9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,6 +7,7 @@ "next/router.d.ts", "next/dist/client/router.d.ts" ], + "biome.enabled": true, "[javascript]": { "editor.defaultFormatter": "biomejs.biome" }, diff --git a/packages/embeds/js/package.json b/packages/embeds/js/package.json index a42e888742..28c76a3f02 100644 --- a/packages/embeds/js/package.json +++ b/packages/embeds/js/package.json @@ -1,6 +1,6 @@ { "name": "@typebot.io/js", - "version": "0.3.26", + "version": "0.3.27", "description": "Javascript library to display typebots on your website", "license": "FSL-1.1-ALv2", "type": "module", diff --git a/packages/embeds/js/src/window.ts b/packages/embeds/js/src/window.ts index b839921485..46c8284bfc 100644 --- a/packages/embeds/js/src/window.ts +++ b/packages/embeds/js/src/window.ts @@ -1,5 +1,7 @@ import type { BubbleProps } from "./features/bubble/components/Bubble"; +import { close } from "./features/commands/utils/close"; import { hidePreviewMessage } from "./features/commands/utils/hidePreviewMessage"; +import { open } from "./features/commands/utils/open"; import { setInputValue } from "./features/commands/utils/setInputValue"; import { setPrefilledVariables } from "./features/commands/utils/setPrefilledVariables"; import { showPreviewMessage } from "./features/commands/utils/showPreviewMessage"; diff --git a/packages/embeds/nextjs/package.json b/packages/embeds/nextjs/package.json index b97bf652aa..50b9e80669 100644 --- a/packages/embeds/nextjs/package.json +++ b/packages/embeds/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@typebot.io/nextjs", - "version": "0.3.26", + "version": "0.3.27", "license": "FSL-1.1-ALv2", "description": "Convenient library to display typebots on your Next.js website", "type": "module", diff --git a/packages/embeds/react/package.json b/packages/embeds/react/package.json index 43e7f83952..3dd1567937 100644 --- a/packages/embeds/react/package.json +++ b/packages/embeds/react/package.json @@ -1,6 +1,6 @@ { "name": "@typebot.io/react", - "version": "0.3.26", + "version": "0.3.27", "description": "Convenient library to display typebots on your React app", "license": "FSL-1.1-ALv2", "type": "module", diff --git a/packages/embeds/stories/src/bubble.stories.tsx b/packages/embeds/stories/src/bubble.stories.tsx index 3fc7530e06..22a09e1778 100644 --- a/packages/embeds/stories/src/bubble.stories.tsx +++ b/packages/embeds/stories/src/bubble.stories.tsx @@ -9,7 +9,6 @@ import { toggle, } from "@typebot.io/react"; import { useState } from "react"; -import { leadGenerationTypebot } from "./assets/leadGenerationTypebot"; export const Default = () => { const [name, setName] = useState("John");