2
0

🩹 (js) Move data-blockid to the right element

This commit is contained in:
Baptiste Arnaud
2023-03-23 08:59:08 +01:00
parent f5611844bd
commit 5090badfa9
4 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/js",
"version": "0.0.29",
"version": "0.0.30",
"description": "Javascript library to display typebots on your website",
"type": "module",
"main": "dist/index.js",

View File

@ -45,7 +45,7 @@ export const ChatChunk = (props: Props) => {
return (
<div class="flex w-full">
<div class="flex flex-col w-full min-w-0" data-blockid={props.input?.id}>
<div class="flex flex-col w-full min-w-0">
<div class="flex">
<Show
when={

View File

@ -66,7 +66,10 @@ export const InputChatBlock = (props: Props) => {
)}
</Match>
<Match when={isNotDefined(answer())}>
<div class="flex justify-end animate-fade-in">
<div
class="flex justify-end animate-fade-in"
data-blockid={props.block.id}
>
{props.hasHostAvatar && (
<div
class={

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/react",
"version": "0.0.29",
"version": "0.0.30",
"description": "React library to display typebots on your website",
"main": "dist/index.js",
"types": "dist/index.d.ts",