@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/js",
|
"name": "@typebot.io/js",
|
||||||
"version": "0.2.6",
|
"version": "0.2.7",
|
||||||
"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",
|
||||||
|
|||||||
@@ -69,11 +69,13 @@ export const ChatChunk = (props: Props) => {
|
|||||||
<div
|
<div
|
||||||
class="flex flex-col flex-1 gap-2"
|
class="flex flex-col flex-1 gap-2"
|
||||||
style={{
|
style={{
|
||||||
'margin-right': props.theme.chat.guestAvatar?.isEnabled
|
'max-width': props.theme.chat.guestAvatar?.isEnabled
|
||||||
? isMobile()
|
? isMobile()
|
||||||
? '32px'
|
? 'calc(100% - 32px - 32px)'
|
||||||
: '48px'
|
: 'calc(100% - 48px - 48px)'
|
||||||
: undefined,
|
: isMobile()
|
||||||
|
? 'calc(100% - 32px)'
|
||||||
|
: 'calc(100% - 48px)',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<For each={props.messages.slice(0, displayedMessageIndex() + 1)}>
|
<For each={props.messages.slice(0, displayedMessageIndex() + 1)}>
|
||||||
@@ -117,14 +119,13 @@ export const ChatChunk = (props: Props) => {
|
|||||||
<div
|
<div
|
||||||
class="flex flex-col flex-1 gap-2"
|
class="flex flex-col flex-1 gap-2"
|
||||||
style={{
|
style={{
|
||||||
'max-width': isMobile()
|
'max-width': props.theme.chat.guestAvatar?.isEnabled
|
||||||
|
? isMobile()
|
||||||
|
? 'calc(100% - 32px - 32px)'
|
||||||
|
: 'calc(100% - 48px - 48px)'
|
||||||
|
: isMobile()
|
||||||
? 'calc(100% - 32px)'
|
? 'calc(100% - 32px)'
|
||||||
: 'calc(100% - 48px)',
|
: 'calc(100% - 48px)',
|
||||||
'margin-right': props.theme.chat.guestAvatar?.isEnabled
|
|
||||||
? isMobile()
|
|
||||||
? '32px'
|
|
||||||
: '48px'
|
|
||||||
: undefined,
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<StreamingBubble streamingMessageId={streamingMessageId} />
|
<StreamingBubble streamingMessageId={streamingMessageId} />
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export const AudioBubble = (props: Props) => {
|
|||||||
return (
|
return (
|
||||||
<div class="flex flex-col animate-fade-in" ref={ref}>
|
<div class="flex flex-col animate-fade-in" ref={ref}>
|
||||||
<div class="flex w-full items-center">
|
<div class="flex w-full items-center">
|
||||||
<div class={'flex relative z-10 items-start typebot-host-bubble'}>
|
<div class="flex relative z-10 items-start typebot-host-bubble max-w-full">
|
||||||
<div
|
<div
|
||||||
class="flex items-center absolute px-4 py-2 bubble-typing z-10 "
|
class="flex items-center absolute px-4 py-2 bubble-typing z-10 "
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -33,9 +33,7 @@ export const EmbedBubble = (props: Props) => {
|
|||||||
return (
|
return (
|
||||||
<div class="flex flex-col w-full animate-fade-in" ref={ref}>
|
<div class="flex flex-col w-full animate-fade-in" ref={ref}>
|
||||||
<div class="flex w-full items-center">
|
<div class="flex w-full items-center">
|
||||||
<div
|
<div class="flex relative z-10 items-start typebot-host-bubble w-full max-w-full">
|
||||||
class={'flex relative z-10 items-start typebot-host-bubble w-full'}
|
|
||||||
>
|
|
||||||
<div
|
<div
|
||||||
class="flex items-center absolute px-4 py-2 bubble-typing z-10 "
|
class="flex items-center absolute px-4 py-2 bubble-typing z-10 "
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export const ImageBubble = (props: Props) => {
|
|||||||
return (
|
return (
|
||||||
<div class="flex flex-col animate-fade-in" ref={ref}>
|
<div class="flex flex-col animate-fade-in" ref={ref}>
|
||||||
<div class="flex w-full items-center">
|
<div class="flex w-full items-center">
|
||||||
<div class={'flex relative z-10 items-start typebot-host-bubble'}>
|
<div class="flex relative z-10 items-start typebot-host-bubble max-w-full">
|
||||||
<div
|
<div
|
||||||
class="flex items-center absolute px-4 py-2 bubble-typing z-10 "
|
class="flex items-center absolute px-4 py-2 bubble-typing z-10 "
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ export const TextBubble = (props: Props) => {
|
|||||||
return (
|
return (
|
||||||
<div class="flex flex-col animate-fade-in" ref={ref}>
|
<div class="flex flex-col animate-fade-in" ref={ref}>
|
||||||
<div class="flex w-full items-center">
|
<div class="flex w-full items-center">
|
||||||
<div class="flex relative items-start typebot-host-bubble">
|
<div class="flex relative items-start typebot-host-bubble max-w-full">
|
||||||
<div
|
<div
|
||||||
class="flex items-center absolute px-4 py-2 bubble-typing "
|
class="flex items-center absolute px-4 py-2 bubble-typing "
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export const VideoBubble = (props: Props) => {
|
|||||||
return (
|
return (
|
||||||
<div class="flex flex-col w-full animate-fade-in" ref={ref}>
|
<div class="flex flex-col w-full animate-fade-in" ref={ref}>
|
||||||
<div class="flex w-full items-center">
|
<div class="flex w-full items-center">
|
||||||
<div class="flex relative z-10 items-start typebot-host-bubble overflow-hidden w-full">
|
<div class="flex relative z-10 items-start typebot-host-bubble overflow-hidden w-full max-w-full">
|
||||||
<div
|
<div
|
||||||
class="flex items-center absolute px-4 py-2 bubble-typing z-10 "
|
class="flex items-center absolute px-4 py-2 bubble-typing z-10 "
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/nextjs",
|
"name": "@typebot.io/nextjs",
|
||||||
"version": "0.2.6",
|
"version": "0.2.7",
|
||||||
"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.2.6",
|
"version": "0.2.7",
|
||||||
"description": "Convenient library to display typebots on your React app",
|
"description": "Convenient library to display typebots on your React app",
|
||||||
"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