Skip to content

Commit 7f6fece

Browse files
committed
update import error and embed version
1 parent 4ad9208 commit 7f6fece

File tree

5 files changed

+33
-58
lines changed

5 files changed

+33
-58
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flowise-embed-react",
3-
"version": "1.0.2",
3+
"version": "1.0.4",
44
"description": "React library to display flowise chatbot on your website",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

rollup.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ import { babel } from "@rollup/plugin-babel";
44
import typescript from "@rollup/plugin-typescript";
55
import { typescriptPaths } from "rollup-plugin-typescript-paths";
66

7-
const extensions = [".ts", ".tsx"];
7+
const extensions = ['.js', '.jsx', '.ts', '.tsx', '.json']
88

99
const indexConfig = {
1010
input: "./src/index.ts",
1111
output: {
1212
file: "./dist/index.js",
1313
format: "es",
14+
inlineDynamicImports: true,
1415
},
1516
external: ["react", "react/jsx-runtime", "flowise-embed"],
1617
plugins: [

src/BubbleChat.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const BubbleChat = (props: Props) => {
2222

2323
useEffect(() => {
2424
;(async () => {
25-
await import('flowise-embed/dist/web')
25+
await import('flowise-embed/dist/web.js')
2626
setIsInitialized(true)
2727
})()
2828
return () => {

src/FullPageChat.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const FullPageChat = ({ style, className, ...assignableProps }: Props) =>
2424

2525
useEffect(() => {
2626
;(async () => {
27-
await import('flowise-embed/dist/web')
27+
await import('flowise-embed/dist/web.js')
2828
})()
2929
}, [])
3030

yarn.lock

+28-54
Original file line numberDiff line numberDiff line change
@@ -1335,6 +1335,11 @@
13351335
vite "^4.0.1"
13361336
vite-tsconfig-paths "^4.0.3"
13371337

1338+
"@microsoft/fetch-event-source@^2.0.1":
1339+
version "2.0.1"
1340+
resolved "https://registry.yarnpkg.com/@microsoft/fetch-event-source/-/fetch-event-source-2.0.1.tgz#9ceecc94b49fbaa15666e38ae8587f64acce007d"
1341+
integrity sha512-W6CLUJ2eBMw3Rec70qrsEW0jOm/3twwJv21mrmj2yORiaVmVYGS4sSS5yUwvQc1ZlDLYGPnClVWmUUMagKNsfA==
1342+
13381343
"@nodelib/[email protected]":
13391344
version "2.1.5"
13401345
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
@@ -1402,11 +1407,6 @@
14021407
estree-walker "^2.0.2"
14031408
picomatch "^2.3.1"
14041409

1405-
"@socket.io/component-emitter@~3.1.0":
1406-
version "3.1.0"
1407-
resolved "https://registry.yarnpkg.com/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz#96116f2a912e0c02817345b3c10751069920d553"
1408-
integrity sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==
1409-
14101410
"@ts-stack/markdown@^1.4.0":
14111411
version "1.5.0"
14121412
resolved "https://registry.yarnpkg.com/@ts-stack/markdown/-/markdown-1.5.0.tgz#5dc298a20dc3dc040143c5a5948201eb6bf5419d"
@@ -1848,7 +1848,7 @@ [email protected]:
18481848
dependencies:
18491849
ms "2.0.0"
18501850

1851-
debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4, debug@~4.3.1, debug@~4.3.2:
1851+
debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4:
18521852
version "4.3.4"
18531853
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
18541854
integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
@@ -1903,6 +1903,11 @@ [email protected]:
19031903
resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015"
19041904
integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==
19051905

1906+
device-detector-js@^3.0.3:
1907+
version "3.0.3"
1908+
resolved "https://registry.yarnpkg.com/device-detector-js/-/device-detector-js-3.0.3.tgz#03424a45962bd80294e8004a2557dc7e7b98247e"
1909+
integrity sha512-jM89LJAvP6uOd84at8OlD9dWP8KeYCCHUde0RT0HQo/stdoRH4b54Xl/fntx2nEXCmqiFhmo+/cJetS2VGUHPw==
1910+
19061911
dir-glob@^3.0.1:
19071912
version "3.0.1"
19081913
resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f"
@@ -1947,22 +1952,6 @@ encodeurl@~1.0.2:
19471952
resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
19481953
integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==
19491954

1950-
engine.io-client@~6.5.2:
1951-
version "6.5.2"
1952-
resolved "https://registry.yarnpkg.com/engine.io-client/-/engine.io-client-6.5.2.tgz#8709e22c291d4297ae80318d3c8baeae71f0e002"
1953-
integrity sha512-CQZqbrpEYnrpGqC07a9dJDz4gePZUgTPMU3NKJPSeQOyw27Tst4Pl3FemKoFGAlHzgZmKjoRmiJvbWfhCXUlIg==
1954-
dependencies:
1955-
"@socket.io/component-emitter" "~3.1.0"
1956-
debug "~4.3.1"
1957-
engine.io-parser "~5.2.1"
1958-
ws "~8.11.0"
1959-
xmlhttprequest-ssl "~2.0.0"
1960-
1961-
engine.io-parser@~5.2.1:
1962-
version "5.2.1"
1963-
resolved "https://registry.yarnpkg.com/engine.io-parser/-/engine.io-parser-5.2.1.tgz#9f213c77512ff1a6cc0c7a86108a7ffceb16fcfb"
1964-
integrity sha512-9JktcM3u18nU9N2Lz3bWeBgxVgOKpw7yhRaoxQA3FUDZzzw+9WlA6p4G4u0RixNkg14fH7EfEc/RhpurtiROTQ==
1965-
19661955
esbuild@^0.18.10, esbuild@~0.18.20:
19671956
version "0.18.20"
19681957
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.18.20.tgz#4709f5a34801b43b799ab7d6d82f7284a9b7a7a6"
@@ -2264,16 +2253,19 @@ flatted@^3.2.7:
22642253
integrity sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==
22652254

22662255
flowise-embed@*:
2267-
version "1.0.13"
2268-
resolved "https://registry.yarnpkg.com/flowise-embed/-/flowise-embed-1.0.13.tgz#4b56f41f4edb58a60518ca6546d2139b0d85f629"
2269-
integrity sha512-XElyjbV4C4cj0zw0RzrxqJZr3W4+2UEEW0+KIs1MtVpdCckw0ATYQyxCIGIShEOP1L8SdzpACBISHFg2u/pJ5Q==
2256+
version "2.0.3"
2257+
resolved "https://registry.yarnpkg.com/flowise-embed/-/flowise-embed-2.0.3.tgz#18cb1126475e49644ee337b1688bb803ea0e256a"
2258+
integrity sha512-dJg2hlj4XLElQ3Q091yyzTrfqiDSgKHNMDadJM9S+5zRFGxZePvXPsqEYTckQX24W5LoBdKxHnvAyord+xCnRA==
22702259
dependencies:
22712260
"@babel/core" "^7.22.1"
2261+
"@microsoft/fetch-event-source" "^2.0.1"
22722262
"@ts-stack/markdown" "^1.4.0"
2263+
device-detector-js "^3.0.3"
22732264
lodash "^4.17.21"
2274-
socket.io-client "^4.6.2"
2265+
prettier "^3.1.0"
22752266
solid-element "1.7.0"
22762267
solid-js "1.7.1"
2268+
zod "^3.22.4"
22772269

22782270
22792271
version "0.2.0"
@@ -2925,6 +2917,11 @@ prelude-ls@^1.2.1:
29252917
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
29262918
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
29272919

2920+
prettier@^3.1.0:
2921+
version "3.3.3"
2922+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105"
2923+
integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==
2924+
29282925
prism-react-renderer@^1.3.5:
29292926
version "1.3.5"
29302927
resolved "https://registry.yarnpkg.com/prism-react-renderer/-/prism-react-renderer-1.3.5.tgz#786bb69aa6f73c32ba1ee813fbe17a0115435085"
@@ -3238,24 +3235,6 @@ smob@^0.0.6:
32383235
resolved "https://registry.yarnpkg.com/smob/-/smob-0.0.6.tgz#09b268fea916158a2781c152044c6155adbb8aa1"
32393236
integrity sha512-V21+XeNni+tTyiST1MHsa84AQhT1aFZipzPpOFAVB8DkHzwJyjjAmt9bgwnuZiZWnIbMo2duE29wybxv/7HWUw==
32403237

3241-
socket.io-client@^4.6.2:
3242-
version "4.7.2"
3243-
resolved "https://registry.yarnpkg.com/socket.io-client/-/socket.io-client-4.7.2.tgz#f2f13f68058bd4e40f94f2a1541f275157ff2c08"
3244-
integrity sha512-vtA0uD4ibrYD793SOIAwlo8cj6haOeMHrGvwPxJsxH7CeIksqJ+3Zc06RvWTIFgiSqx4A3sOnTXpfAEE2Zyz6w==
3245-
dependencies:
3246-
"@socket.io/component-emitter" "~3.1.0"
3247-
debug "~4.3.2"
3248-
engine.io-client "~6.5.2"
3249-
socket.io-parser "~4.2.4"
3250-
3251-
socket.io-parser@~4.2.4:
3252-
version "4.2.4"
3253-
resolved "https://registry.yarnpkg.com/socket.io-parser/-/socket.io-parser-4.2.4.tgz#c806966cf7270601e47469ddeec30fbdfda44c83"
3254-
integrity sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==
3255-
dependencies:
3256-
"@socket.io/component-emitter" "~3.1.0"
3257-
debug "~4.3.1"
3258-
32593238
32603239
version "1.7.0"
32613240
resolved "https://registry.yarnpkg.com/solid-element/-/solid-element-1.7.0.tgz#0341f14af71dc39642ce6fb73328d754d7d3c29d"
@@ -3571,11 +3550,6 @@ wrappy@1:
35713550
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
35723551
integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
35733552

3574-
ws@~8.11.0:
3575-
version "8.11.0"
3576-
resolved "https://registry.yarnpkg.com/ws/-/ws-8.11.0.tgz#6a0d36b8edfd9f96d8b25683db2f8d7de6e8e143"
3577-
integrity sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==
3578-
35793553
xdg-default-browser@^2.1.0:
35803554
version "2.1.0"
35813555
resolved "https://registry.yarnpkg.com/xdg-default-browser/-/xdg-default-browser-2.1.0.tgz#41a057b8da1128610ece9b32c136a52e42e0d152"
@@ -3584,11 +3558,6 @@ xdg-default-browser@^2.1.0:
35843558
execa "^0.2.2"
35853559
titleize "^1.0.0"
35863560

3587-
xmlhttprequest-ssl@~2.0.0:
3588-
version "2.0.0"
3589-
resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz#91360c86b914e67f44dce769180027c0da618c67"
3590-
integrity sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A==
3591-
35923561
yallist@^2.1.2:
35933562
version "2.1.2"
35943563
resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52"
@@ -3603,3 +3572,8 @@ yocto-queue@^0.1.0:
36033572
version "0.1.0"
36043573
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
36053574
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
3575+
3576+
zod@^3.22.4:
3577+
version "3.23.8"
3578+
resolved "https://registry.yarnpkg.com/zod/-/zod-3.23.8.tgz#e37b957b5d52079769fb8097099b592f0ef4067d"
3579+
integrity sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==

0 commit comments

Comments
 (0)