Skip to content

Commit

Permalink
💚 fix: fix vercel build (lobehub#2666)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed May 26, 2024
1 parent 1c185b4 commit cb70e4a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,32 +84,32 @@
"@ant-design/icons": "^5.3.7",
"@anthropic-ai/sdk": "^0.20.9",
"@auth/core": "0.28.0",
"@aws-sdk/client-bedrock-runtime": "^3.577.0",
"@aws-sdk/client-s3": "^3.577.0",
"@aws-sdk/s3-request-presigner": "^3.577.0",
"@aws-sdk/client-bedrock-runtime": "^3.583.0",
"@aws-sdk/client-s3": "^3.583.0",
"@aws-sdk/s3-request-presigner": "^3.583.0",
"@azure/openai": "1.0.0-beta.12",
"@cfworker/json-schema": "^1.12.8",
"@clerk/localizations": "2.0.0",
"@clerk/nextjs": "^5.0.12",
"@clerk/themes": "^2.1.6",
"@google/generative-ai": "^0.11.3",
"@clerk/nextjs": "^5.1.2",
"@clerk/themes": "^2.1.7",
"@google/generative-ai": "^0.11.4",
"@icons-pack/react-simple-icons": "^9.5.0",
"@khmyznikov/pwa-install": "^0.3.9",
"@lobehub/chat-plugin-sdk": "^1.32.3",
"@lobehub/chat-plugins-gateway": "^1.9.0",
"@lobehub/icons": "^1.22.0",
"@lobehub/icons": "^1.22.1",
"@lobehub/tts": "^1.24.1",
"@lobehub/ui": "^1.139.0",
"@lobehub/ui": "^1.141.2",
"@microsoft/fetch-event-source": "^2.0.1",
"@next/third-parties": "^14.2.3",
"@sentry/nextjs": "^7.116.0",
"@t3-oss/env-nextjs": "^0.10.1",
"@trpc/client": "next",
"@trpc/next": "next",
"@trpc/server": "next",
"@vercel/analytics": "^1.2.2",
"@vercel/speed-insights": "^1.0.10",
"ahooks": "^3.7.11",
"@vercel/analytics": "^1.3.1",
"@vercel/speed-insights": "^1.0.11",
"ahooks": "^3.8.0",
"ai": "3.0.19",
"antd": "^5.17.3",
"antd-style": "^3.6.2",
Expand All @@ -128,8 +128,8 @@
"immer": "^10.1.1",
"ip": "^2.0.1",
"jose": "^5.3.0",
"langfuse": "^3.11.0",
"langfuse-core": "^3.11.0",
"langfuse": "^3.11.1",
"langfuse-core": "^3.11.1",
"lodash-es": "^4.17.21",
"lucide-react": "latest",
"modern-screenshot": "^4.4.39",
Expand All @@ -143,18 +143,18 @@
"openai": "^4.47.1",
"pino": "^9.1.0",
"polished": "^4.3.1",
"posthog-js": "^1.131.4",
"posthog-js": "^1.135.2",
"pwa-install-handler": "^2.6.0",
"query-string": "^9.0.0",
"random-words": "^2.0.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hotkeys-hook": "^4.5.0",
"react-i18next": "^14.1.1",
"react-i18next": "^14.1.2",
"react-layout-kit": "^1.9.0",
"react-lazy-load": "^4.0.1",
"react-virtuoso": "^4.7.10",
"react-wrap-balancer": "^1.1.0",
"react-virtuoso": "^4.7.11",
"react-wrap-balancer": "^1.1.1",
"remark": "^14.0.3",
"remark-gfm": "^3.0.1",
"remark-html": "^15.0.2",
Expand Down Expand Up @@ -200,7 +200,7 @@
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.12.12",
"@types/numeral": "^2.0.5",
"@types/react": "^18.3.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/rtl-detect": "^1.0.3",
"@types/semver": "^7.5.8",
Expand All @@ -216,12 +216,12 @@
"eslint": "^8.57.0",
"eslint-plugin-mdx": "^2.3.4",
"fake-indexeddb": "^5.0.2",
"glob": "^10.3.16",
"glob": "^10.4.1",
"gray-matter": "^4.0.3",
"happy-dom": "^14.11.0",
"husky": "^9.0.11",
"just-diff": "^6.0.2",
"lint-staged": "^15.2.4",
"lint-staged": "^15.2.5",
"lodash": "^4.17.21",
"markdown-table": "^3.0.3",
"node-fetch": "^3.3.2",
Expand All @@ -232,7 +232,7 @@
"remark-parse": "^10.0.2",
"semantic-release": "^21.1.2",
"stylelint": "^15.11.0",
"tsx": "^4.10.5",
"tsx": "^4.11.0",
"typescript": "^5.4.5",
"unified": "^11.0.4",
"unist-util-visit": "^5.0.0",
Expand Down
2 changes: 2 additions & 0 deletions src/app/(main)/chat/_layout/Desktop/SessionPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ const SessionPanel = memo<PropsWithChildren>(({ children }) => {
const handleSizeChange: DraggablePanelProps['onSizeChange'] = (_, size) => {
if (!size) return;
const nextWidth = typeof size.width === 'string' ? Number.parseInt(size.width) : size.width;
if (!nextWidth) return;

if (isEqual(nextWidth, sessionsWidth)) return;
setWidth(nextWidth);
updatePreference({ sessionsWidth: nextWidth });
Expand Down

0 comments on commit cb70e4a

Please sign in to comment.