From 8aa14cdcb9dd47d3e8e75e92f3ccf7f88a07f2f4 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 21 Feb 2024 08:07:31 +0100 Subject: [PATCH] Update components to v2 (#30) --- package-lock.json | 145 +++++++++++++++++----------------------------- package.json | 10 ++-- 2 files changed, 58 insertions(+), 97 deletions(-) diff --git a/package-lock.json b/package-lock.json index db82cff..320ce42 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,11 +8,11 @@ "name": "agents-playground", "version": "0.1.0", "dependencies": { - "@livekit/components-react": "^1.5.1", + "@livekit/components-react": "^2.0.0", "framer-motion": "^10.16.16", "js-yaml": "^4.1.0", - "livekit-client": "^1.15.4", - "livekit-server-sdk": "^2.0.0", + "livekit-client": "^2.0.2", + "livekit-server-sdk": "^2.0.3", "next": "^14.0.4", "qrcode.react": "^3.1.0", "react": "^18", @@ -25,7 +25,7 @@ "@types/react-dom": "^18", "autoprefixer": "^10.4.16", "eslint": "^8", - "eslint-config-next": "14.1.0", + "eslint-config-next": "14.0.1", "postcss": "^8.4.31", "tailwindcss": "^3.3.5", "typescript": "^5.3.3" @@ -141,20 +141,20 @@ } }, "node_modules/@floating-ui/core": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.5.3.tgz", - "integrity": "sha512-O0WKDOo0yhJuugCx6trZQj5jVJ9yR0ystG2JaNAemYUWce+pmM6WUEFIibnWyEJKdrDxhm75NoSRME35FNaM/Q==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.0.tgz", + "integrity": "sha512-PcF++MykgmTj3CIyOQbKA/hDzOAiqI3mhuoN44WRCopIs1sgoDoU4oty4Jtqaj/y3oDU6fnVSm4QG0a3t5i0+g==", "dependencies": { - "@floating-ui/utils": "^0.2.0" + "@floating-ui/utils": "^0.2.1" } }, "node_modules/@floating-ui/dom": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.4.tgz", - "integrity": "sha512-jByEsHIY+eEdCjnTVu+E3ephzTOzkQ8hgUfGwos+bg7NlH33Zc5uO+QHz1mrQUOgIKKDD1RtS201P9NvAfq3XQ==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.1.tgz", + "integrity": "sha512-iA8qE43/H5iGozC3W0YSnVSW42Vh522yyM1gj+BqRwVsTNOyr231PsXDaV04yT39PsO0QL2QpbI/M0ZaLUQgRQ==", "dependencies": { - "@floating-ui/core": "^1.5.3", - "@floating-ui/utils": "^0.2.0" + "@floating-ui/core": "^1.6.0", + "@floating-ui/utils": "^0.2.1" } }, "node_modules/@floating-ui/utils": { @@ -288,38 +288,38 @@ } }, "node_modules/@livekit/components-core": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/@livekit/components-core/-/components-core-0.8.3.tgz", - "integrity": "sha512-xwHjE7B4oQmhL3Nme7HKR5X71D5SaG0PbM750VpFOkdMkD6fhiouiblDc4/Ys0yK1iLFUAM8lXq/jBzU+xf2ZA==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@livekit/components-core/-/components-core-0.9.0.tgz", + "integrity": "sha512-CNDBkJLWiNciFJtrmYrjJfU9ToVzs9ubR24VPa9ekb/jYeJxxq4zKbudIaTeppUzcfGenkS6O6RgcyWjFVbpCw==", "dependencies": { - "@floating-ui/dom": "1.5.4", + "@floating-ui/dom": "1.6.1", "email-regex": "5.0.0", - "loglevel": "1.8.1", + "loglevel": "1.9.1", "rxjs": "7.8.1" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { - "livekit-client": "^1.15.1", + "livekit-client": "^2.0.2", "tslib": "^2.6.2" } }, "node_modules/@livekit/components-react": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/@livekit/components-react/-/components-react-1.5.3.tgz", - "integrity": "sha512-OL2BhyltXz4GTEmTPZPMehBMoWWNILTqHClPpFLJyM3KLnk2lLvaH9QWwlbqIJVr6vkm39pvq39ckv6GKa7jJw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@livekit/components-react/-/components-react-2.0.0.tgz", + "integrity": "sha512-trgOAmnIXok/VqWTHG3pbjCKy/wiZA1ZTFFbHOnRz4gpMf7s7lRWqyreF1BjcIQPKXwgF6lMWQTRjgCAqRuU+A==", "dependencies": { - "@livekit/components-core": "0.8.3", + "@livekit/components-core": "0.9.0", "@react-hook/latest": "1.0.3", "clsx": "2.1.0", - "usehooks-ts": "2.9.1" + "usehooks-ts": "2.14.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { - "livekit-client": "^1.15.1", + "livekit-client": "^2.0.2", "react": ">=18", "react-dom": ">=18", "tslib": "^2.6.2" @@ -331,58 +331,12 @@ "integrity": "sha512-irQnbMLbUNQpP1wcE5NstJtbuA/69kRfzBrpAD7Gsn8zm/CY6YQYc3HQBz8QPxwISG26tIm5afvvVbu508oBeQ==" }, "node_modules/@next/eslint-plugin-next": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-14.1.0.tgz", - "integrity": "sha512-x4FavbNEeXx/baD/zC/SdrvkjSby8nBn8KcCREqk6UuwvwoAPZmaV8TFCAuo/cpovBRTIY67mHhe86MQQm/68Q==", + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-14.0.1.tgz", + "integrity": "sha512-bLjJMwXdzvhnQOnxvHoTTUh/+PYk6FF/DCgHi4BXwXCINer+o1ZYfL9aVeezj/oI7wqGJOqwGIXrlBvPbAId3w==", "dev": true, "dependencies": { - "glob": "10.3.10" - } - }, - "node_modules/@next/eslint-plugin-next/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@next/eslint-plugin-next/node_modules/glob": { - "version": "10.3.10", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", - "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", - "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.5", - "minimatch": "^9.0.1", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", - "path-scurry": "^1.10.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@next/eslint-plugin-next/node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "glob": "7.1.7" } }, "node_modules/@next/swc-darwin-arm64": { @@ -1727,12 +1681,12 @@ } }, "node_modules/eslint-config-next": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-14.1.0.tgz", - "integrity": "sha512-SBX2ed7DoRFXC6CQSLc/SbLY9Ut6HxNB2wPTcoIWjUMd7aF7O/SIE7111L8FdZ9TXsNV4pulUDnfthpyPtbFUg==", + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-14.0.1.tgz", + "integrity": "sha512-QfIFK2WD39H4WOespjgf6PLv9Bpsd7KGGelCtmq4l67nGvnlsGpuvj0hIT+aIy6p5gKH+lAChYILsyDlxP52yg==", "dev": true, "dependencies": { - "@next/eslint-plugin-next": "14.1.0", + "@next/eslint-plugin-next": "14.0.1", "@rushstack/eslint-patch": "^1.3.3", "@typescript-eslint/parser": "^5.4.2 || ^6.0.0", "eslint-import-resolver-node": "^0.3.6", @@ -3131,9 +3085,9 @@ "dev": true }, "node_modules/livekit-client": { - "version": "1.15.12", - "resolved": "https://registry.npmjs.org/livekit-client/-/livekit-client-1.15.12.tgz", - "integrity": "sha512-1mjVFNOkF7f0HHAY1Z9zZw38eCxA2xCULah5z8whPkb61kG4LJU0aNCo9LWjAynO4ODLjfq2+fZvZoCHIya+6A==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/livekit-client/-/livekit-client-2.0.2.tgz", + "integrity": "sha512-NGMLTQth0y0fFy+MJyxC9WSAhcbuJZ5slOe3zbDhVtw/zUDwvCMDFeFHSL27yIshISiQviLRbh2rNLjou+beZQ==", "dependencies": { "@bufbuild/protobuf": "^1.3.0", "events": "^3.3.0", @@ -3173,6 +3127,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" + }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", @@ -3180,9 +3139,9 @@ "dev": true }, "node_modules/loglevel": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.8.1.tgz", - "integrity": "sha512-tCRIJM51SHjAayKwC+QAg8hT8vg6z7GSgLJKGvzuPb1Wc+hLzqtuVLxp6/HzSPOozuK+8ErAhy7U/sVzw8Dgfg==", + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.9.1.tgz", + "integrity": "sha512-hP3I3kCrDIMuRwAwHltphhDM1r8i55H33GgqjXbrisuJhF4kRhW1dNuxsRklp4bXl8DSdLaNLuiL4A/LWRfxvg==", "engines": { "node": ">= 0.6.0" }, @@ -4864,15 +4823,17 @@ } }, "node_modules/usehooks-ts": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/usehooks-ts/-/usehooks-ts-2.9.1.tgz", - "hasInstallScript": true, + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/usehooks-ts/-/usehooks-ts-2.14.0.tgz", + "integrity": "sha512-jnhrjTRJoJS7cFxz63tRYc5mzTKf/h+Ii8P0PDHymT9qDe4ZA2/gzDRmDR4WGausg5X8wMIdghwi3BBCN9JKow==", + "dependencies": { + "lodash.debounce": "^4.0.8" + }, "engines": { "node": ">=16.15.0" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": "^16.8.0 || ^17 || ^18" } }, "node_modules/util-deprecate": { diff --git a/package.json b/package.json index c0d097d..5f72c2d 100644 --- a/package.json +++ b/package.json @@ -9,11 +9,11 @@ "lint": "next lint" }, "dependencies": { - "@livekit/components-react": "^1.5.1", + "@livekit/components-react": "^2.0.0", "framer-motion": "^10.16.16", "js-yaml": "^4.1.0", - "livekit-client": "^1.15.4", - "livekit-server-sdk": "^2.0.0", + "livekit-client": "^2.0.2", + "livekit-server-sdk": "^2.0.3", "next": "^14.0.4", "qrcode.react": "^3.1.0", "react": "^18", @@ -26,9 +26,9 @@ "@types/react-dom": "^18", "autoprefixer": "^10.4.16", "eslint": "^8", - "eslint-config-next": "14.1.0", + "eslint-config-next": "14.0.1", "postcss": "^8.4.31", "tailwindcss": "^3.3.5", "typescript": "^5.3.3" } -} \ No newline at end of file +}