2
0

🚑 Release new embed lib version and fix createId dep…

This commit is contained in:
Baptiste Arnaud
2023-12-13 11:49:03 +01:00
parent 3bd07c60da
commit fbddddcfa0
7 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,6 @@ import {
SessionState,
} from '@typebot.io/schemas'
import {
createId,
isBubbleBlock,
isInputBlock,
isIntegrationBlock,
@ -31,6 +30,7 @@ import { VisitedEdge } from '@typebot.io/prisma'
import { env } from '@typebot.io/env'
import { TRPCError } from '@trpc/server'
import { ExecuteIntegrationResponse, ExecuteLogicResponse } from './types'
import { createId } from '@paralleldrive/cuid2'
type ContextProps = {
version: 1 | 2

View File

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

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/nextjs",
"version": "0.2.26",
"version": "0.2.27",
"description": "Convenient library to display typebots on your Next.js website",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

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

View File

@ -1,7 +1,8 @@
import { option, createAction } from '@typebot.io/forge'
import { defaultOpenAIOptions, openAIVoices } from '../constants'
import OpenAI, { ClientOptions } from 'openai'
import { isNotEmpty, createId } from '@typebot.io/lib'
import { isNotEmpty } from '@typebot.io/lib'
import { createId } from '@typebot.io/lib/createId'
import { uploadFileToBucket } from '@typebot.io/lib/s3/uploadFileToBucket'
import { auth } from '../auth'
import { baseOptions } from '../baseOptions'

1
packages/lib/createId.ts Normal file
View File

@ -0,0 +1 @@
export { createId } from '@paralleldrive/cuid2'

View File

@ -257,5 +257,3 @@ export const getAtPath = <T>(obj: T, path: string): unknown => {
export const isSvgSrc = (src: string | undefined) =>
src?.startsWith('data:image/svg') || src?.endsWith('.svg')
export { createId } from '@paralleldrive/cuid2'