2
0

🐛 Fix nextjs package broken dynamic import

This commit is contained in:
Baptiste Arnaud
2024-07-15 16:06:12 +02:00
parent 8e15472e82
commit 2a5fb14726
5 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@typebot.io/js", "name": "@typebot.io/js",
"version": "0.3.5", "version": "0.3.6",
"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",

View File

@ -1,6 +1,6 @@
{ {
"name": "@typebot.io/nextjs", "name": "@typebot.io/nextjs",
"version": "0.3.5", "version": "0.3.6",
"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",

View File

@ -17,7 +17,7 @@ const indexConfig = {
dir: './dist', dir: './dist',
format: 'es', format: 'es',
}, },
external: ['next/dynamic', 'react', 'react/jsx-runtime'], external: ['next/dynamic.js', 'react', 'react/jsx-runtime'],
watch: { watch: {
clearScreen: false, clearScreen: false,
}, },

View File

@ -3,7 +3,7 @@ import type {
PopupProps, PopupProps,
BubbleProps, BubbleProps,
} from '@typebot.io/js/dist/index' } from '@typebot.io/js/dist/index'
import dynamic from 'next/dynamic' import dynamic from 'next/dynamic.js'
export const Standard: React.ComponentType< export const Standard: React.ComponentType<
BotProps & { BotProps & {

View File

@ -1,6 +1,6 @@
{ {
"name": "@typebot.io/react", "name": "@typebot.io/react",
"version": "0.3.5", "version": "0.3.6",
"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",