2
0

♻️ Export bot-engine code into its own package

This commit is contained in:
Baptiste Arnaud
2023-09-20 15:26:52 +02:00
parent 797685aa9d
commit 7d57e8dd06
242 changed files with 645 additions and 639 deletions

View File

@@ -16,7 +16,8 @@
"@udecode/plate-common": "^21.1.5",
"eventsource-parser": "^1.0.0",
"solid-element": "1.7.1",
"solid-js": "1.7.8"
"solid-js": "1.7.8",
"@typebot.io/bot-engine": "workspace:*"
},
"devDependencies": {
"@babel/preset-typescript": "7.22.5",

View File

@@ -5,7 +5,7 @@ import { PlateBlock } from './plate/PlateBlock'
import { computePlainText } from '../helpers/convertRichTextToPlainText'
import { clsx } from 'clsx'
import { isMobile } from '@/utils/isMobileSignal'
import { computeTypingDuration } from '@typebot.io/lib/computeTypingDuration'
import { computeTypingDuration } from '@typebot.io/bot-engine/computeTypingDuration'
type Props = {
content: TextBubbleContent

View File

@@ -14,6 +14,7 @@
"declaration": true,
"declarationMap": true,
"outDir": "dist",
"noEmit": false,
"emitDeclarationOnly": true
}
}