🐛 (embed) Remove at functions for better compability
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/js",
|
"name": "@typebot.io/js",
|
||||||
"version": "0.1.8",
|
"version": "0.1.10",
|
||||||
"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",
|
||||||
|
@ -106,7 +106,7 @@ export const ConversationContainer = (props: Props) => {
|
|||||||
|
|
||||||
const streamMessage = (content: string) => {
|
const streamMessage = (content: string) => {
|
||||||
setIsSending(false)
|
setIsSending(false)
|
||||||
const lastChunk = chatChunks().at(-1)
|
const lastChunk = [...chatChunks()].pop()
|
||||||
if (!lastChunk) return
|
if (!lastChunk) return
|
||||||
const id = lastChunk.streamingMessageId ?? createUniqueId()
|
const id = lastChunk.streamingMessageId ?? createUniqueId()
|
||||||
if (!lastChunk.streamingMessageId)
|
if (!lastChunk.streamingMessageId)
|
||||||
@ -202,7 +202,7 @@ export const ConversationContainer = (props: Props) => {
|
|||||||
...displayedChunks,
|
...displayedChunks,
|
||||||
{
|
{
|
||||||
input: data.input,
|
input: data.input,
|
||||||
messages: chatChunks().at(-1)?.streamingMessageId
|
messages: [...chatChunks()].pop()?.streamingMessageId
|
||||||
? data.messages.slice(1)
|
? data.messages.slice(1)
|
||||||
: data.messages,
|
: data.messages,
|
||||||
clientSideActions: data.clientSideActions,
|
clientSideActions: data.clientSideActions,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/nextjs",
|
"name": "@typebot.io/nextjs",
|
||||||
"version": "0.1.8",
|
"version": "0.1.10",
|
||||||
"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.8",
|
"version": "0.1.10",
|
||||||
"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