🚑 Release new embed lib version and fix createId dep…
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
|||||||
SessionState,
|
SessionState,
|
||||||
} from '@typebot.io/schemas'
|
} from '@typebot.io/schemas'
|
||||||
import {
|
import {
|
||||||
createId,
|
|
||||||
isBubbleBlock,
|
isBubbleBlock,
|
||||||
isInputBlock,
|
isInputBlock,
|
||||||
isIntegrationBlock,
|
isIntegrationBlock,
|
||||||
@@ -31,6 +30,7 @@ import { VisitedEdge } from '@typebot.io/prisma'
|
|||||||
import { env } from '@typebot.io/env'
|
import { env } from '@typebot.io/env'
|
||||||
import { TRPCError } from '@trpc/server'
|
import { TRPCError } from '@trpc/server'
|
||||||
import { ExecuteIntegrationResponse, ExecuteLogicResponse } from './types'
|
import { ExecuteIntegrationResponse, ExecuteLogicResponse } from './types'
|
||||||
|
import { createId } from '@paralleldrive/cuid2'
|
||||||
|
|
||||||
type ContextProps = {
|
type ContextProps = {
|
||||||
version: 1 | 2
|
version: 1 | 2
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/js",
|
"name": "@typebot.io/js",
|
||||||
"version": "0.2.26",
|
"version": "0.2.27",
|
||||||
"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",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/nextjs",
|
"name": "@typebot.io/nextjs",
|
||||||
"version": "0.2.26",
|
"version": "0.2.27",
|
||||||
"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.26",
|
"version": "0.2.27",
|
||||||
"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",
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { option, createAction } from '@typebot.io/forge'
|
import { option, createAction } from '@typebot.io/forge'
|
||||||
import { defaultOpenAIOptions, openAIVoices } from '../constants'
|
import { defaultOpenAIOptions, openAIVoices } from '../constants'
|
||||||
import OpenAI, { ClientOptions } from 'openai'
|
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 { uploadFileToBucket } from '@typebot.io/lib/s3/uploadFileToBucket'
|
||||||
import { auth } from '../auth'
|
import { auth } from '../auth'
|
||||||
import { baseOptions } from '../baseOptions'
|
import { baseOptions } from '../baseOptions'
|
||||||
|
|||||||
1
packages/lib/createId.ts
Normal file
1
packages/lib/createId.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export { createId } from '@paralleldrive/cuid2'
|
||||||
@@ -257,5 +257,3 @@ export const getAtPath = <T>(obj: T, path: string): unknown => {
|
|||||||
|
|
||||||
export const isSvgSrc = (src: string | undefined) =>
|
export const isSvgSrc = (src: string | undefined) =>
|
||||||
src?.startsWith('data:image/svg') || src?.endsWith('.svg')
|
src?.startsWith('data:image/svg') || src?.endsWith('.svg')
|
||||||
|
|
||||||
export { createId } from '@paralleldrive/cuid2'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user