From c950406997c28dc9aefecbad2aeb58d9b66ccffe Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Tue, 23 May 2023 18:01:49 +0200 Subject: [PATCH] :lipstick: (js) Improve popup ui consistency --- apps/docs/docs/embed/webflow.md | 24 +++++++++++++++---- packages/embeds/js/package.json | 2 +- .../src/features/popup/components/Popup.tsx | 15 +++++++++--- packages/embeds/react/package.json | 2 +- 4 files changed, 34 insertions(+), 9 deletions(-) diff --git a/apps/docs/docs/embed/webflow.md b/apps/docs/docs/embed/webflow.md index 6b61aeb6d..dd913b346 100644 --- a/apps/docs/docs/embed/webflow.md +++ b/apps/docs/docs/embed/webflow.md @@ -7,7 +7,18 @@ Head over to the Share tab of your bot and click on the Webflow button to get th ### Trigger a typebot command on a click of a button 1. Head over to the `Settings` tab of your button and add a dedicated `ID` -2. In your typebot `Embed` element, insert this code in the existing ` ``` -Make sure to replace `` with the ID you added on your button element. +Make sure to replace `BUTTON_ID_1` and `BUTTON_ID_2` with the ID you added on your button elements. -In this example we are opening the popup when the button is clicked but you could also use any of the [available commands](./commands). +In this example we are opening the popup when the specified buttons are clicked but you could also use any of the [available commands](./commands). diff --git a/packages/embeds/js/package.json b/packages/embeds/js/package.json index d4a2df3a1..74f9be421 100644 --- a/packages/embeds/js/package.json +++ b/packages/embeds/js/package.json @@ -1,6 +1,6 @@ { "name": "@typebot.io/js", - "version": "0.0.53", + "version": "0.0.54", "description": "Javascript library to display typebots on your website", "type": "module", "main": "dist/index.js", diff --git a/packages/embeds/js/src/features/popup/components/Popup.tsx b/packages/embeds/js/src/features/popup/components/Popup.tsx index fd42cc3f4..2467e2c55 100644 --- a/packages/embeds/js/src/features/popup/components/Popup.tsx +++ b/packages/embeds/js/src/features/popup/components/Popup.tsx @@ -107,17 +107,26 @@ export const Popup = (props: PopupProps) => {