Skip to content

Commit ccd2302

Browse files
authored
Fix: Upgrade next (#3028)
1 parent 61d2ece commit ccd2302

File tree

14 files changed

+1158
-545
lines changed

14 files changed

+1158
-545
lines changed

apps/web/client/next.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ import './src/env';
99

1010
const nextConfig: NextConfig = {
1111
devIndicators: false,
12-
eslint: {
13-
ignoreDuringBuilds: true,
14-
},
1512
...(process.env.STANDALONE_BUILD === 'true' && { output: 'standalone' }),
1613
};
1714

apps/web/client/package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"lucide-react": "^0.486.0",
8282
"mobx-react-lite": "^4.1.0",
8383
"motion": "^12.23.19",
84-
"next": "15.5.4",
84+
"next": "16.0.0",
8585
"next-intl": "^4.0.2",
8686
"next-themes": "^0.4.6",
8787
"octokit": "^5.0.3",
@@ -91,10 +91,10 @@
9191
"prosemirror-commands": "^1.7.1",
9292
"prosemirror-history": "^1.4.1",
9393
"prosemirror-keymap": "^1.2.2",
94-
"react": "^19.0.0",
94+
"react": "19.2.0",
9595
"react-arborist": "^3.4.3",
9696
"react-codemirror-merge": "4.23.10",
97-
"react-dom": "^19.0.0",
97+
"react-dom": "19.2.0",
9898
"react-hotkeys-hook": "^5.0.1",
9999
"react-markdown": "^10.1.0",
100100
"remark-gfm": "^4.0.1",
@@ -118,8 +118,8 @@
118118
"@tailwindcss/postcss": "^4.0.15",
119119
"@types/culori": "^4.0.0",
120120
"@types/node": "^20.14.10",
121-
"@types/react": "^19.0.0",
122-
"@types/react-dom": "^19.0.0",
121+
"@types/react": "19.2.2",
122+
"@types/react-dom": "19.2.2",
123123
"@types/webfontloader": "^1.6.38",
124124
"eslint": "^9.0.0",
125125
"postcss": "^8.5.3",
@@ -129,5 +129,9 @@
129129
},
130130
"ct3aMetadata": {
131131
"initVersion": "7.39.2"
132+
},
133+
"overrides": {
134+
"@types/react": "19.2.2",
135+
"@types/react-dom": "19.2.2"
132136
}
133137
}

apps/web/client/src/app/project/[id]/_components/canvas/frame/view.tsx

Lines changed: 260 additions & 236 deletions
Large diffs are not rendered by default.

apps/web/client/src/app/project/[id]/_components/left-panel/code-panel/code-tab/sidebar/file-tree.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import { type FileEntry } from '@onlook/file-system/hooks';
24
import { pathsEqual } from '@onlook/utility';
35
import React, { useEffect, useMemo, useRef, useState } from 'react';
@@ -32,7 +34,7 @@ export const FileTree = ({
3234
const inputRef = useRef<HTMLInputElement>(null);
3335
const [searchQuery, setSearchQuery] = useState('');
3436
const [highlightedIndex, setHighlightedIndex] = useState<number | null>(null);
35-
const { ref: treeContainerRef, width: filesWidth, height: filesHeight } = useResizeObserver();
37+
const { ref: resizeObserverRef, width: filesWidth, height: filesHeight } = useResizeObserver();
3638

3739
// Create flat entry index for efficient operations
3840
const flatEntryIndex = useMemo(() => {
@@ -190,7 +192,7 @@ export const FileTree = ({
190192
onRefresh={onRefresh}
191193
onKeyDown={handleKeyDown}
192194
/>
193-
<div ref={treeContainerRef} className="w-full text-xs px-2 flex-1 min-h-0">
195+
<div ref={resizeObserverRef} className="w-full text-xs px-2 flex-1 min-h-0">
194196
{isLoading ? (
195197
<div className="flex flex-col justify-start items-center h-full text-sm text-foreground/50 pt-4">
196198
<div className="animate-spin h-6 w-6 border-2 border-foreground-hover rounded-full border-t-transparent mb-2"></div>

apps/web/client/src/app/projects/import/local/_components/select-folder.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,10 @@ export const NewSelectFolder = () => {
389389
type="file"
390390
style={{ display: 'none' }}
391391
onChange={handleFileInputChange}
392-
directory=""
393-
webkitdirectory=""
392+
{...({
393+
directory: '',
394+
webkitdirectory: '',
395+
} as React.InputHTMLAttributes<HTMLInputElement>)}
394396
/>
395397
</motion.div>
396398
);

apps/web/client/src/middleware.ts renamed to apps/web/client/src/proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { updateSession } from '@/utils/supabase/middleware';
22
import { type NextRequest } from 'next/server';
33

4-
export async function middleware(request: NextRequest) {
4+
export async function proxy(request: NextRequest) {
55
// update user's auth session
66
return await updateSession(request);
77
}

bun.lock

Lines changed: 827 additions & 248 deletions
Large diffs are not rendered by default.

docs/content/docs/getting-started/core-features.mdx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ Onlook provides a range of features to help designers and developers work togeth
1313
## Key Features
1414

1515
<Cards>
16-
<Card title="Visual Editor" href="#" />
17-
<Card title="Code Integration" href="#" />
18-
<Card title="AI Assistance" href="#" />
19-
<Card title="Figma to Onlook" href="#" />
20-
<Card title="Theme System" href="#" />
21-
<Card title="Deployment" href="#" />
16+
<Card title="Visual Editor" href="#visual-editor" />
17+
<Card title="Code Integration" href="#code-integration" />
18+
<Card title="AI Assistance" href="#ai-assistance" />
19+
<Card title="Figma to Onlook" href="#figma-to-onlook" />
2220
</Cards>
2321

2422
## Visual Editor

docs/next-sitemap.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @type {import('next-sitemap').IConfig} */
2-
module.exports = {
2+
export default {
33
siteUrl: 'https://docs.onlook.dev',
44
generateRobotsTxt: false, // handled by route handler
55
generateIndexSitemap: true,

docs/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@
1515
},
1616
"dependencies": {
1717
"@onlook/ui": "*",
18-
"fumadocs-core": "^15.6.9",
19-
"fumadocs-mdx": "^11.7.4",
20-
"fumadocs-ui": "^15.6.9",
21-
"next": ">=15.4.7",
22-
"next-sitemap": "^4.2.3",
23-
"react": "^19.1.0",
24-
"react-dom": "^19.1.0"
18+
"fumadocs-core": "16.0.2",
19+
"fumadocs-mdx": "13.0.0",
20+
"fumadocs-ui": "16.0.2",
21+
"next": "16.0.0",
22+
"next-sitemap": "4.2.3",
23+
"react": "19.2.0",
24+
"react-dom": "19.2.0"
2525
},
2626
"devDependencies": {
2727
"@onlook/eslint": "*",
2828
"@types/node": "22.15.12",
29-
"@types/react": "^19.1.3",
30-
"@types/react-dom": "^19.1.3",
31-
"eslint": "^9.0.0",
32-
"typescript": "^5.5.4",
33-
"@types/mdx": "^2.0.13",
34-
"@tailwindcss/postcss": "^4.1.5",
35-
"tailwindcss": "^4.1.5",
36-
"postcss": "^8.5.3"
29+
"@types/react": "19.2.2",
30+
"@types/react-dom": "19.2.2",
31+
"eslint": "9.0.0",
32+
"typescript": "5.5.4",
33+
"@types/mdx": "2.0.13",
34+
"@tailwindcss/postcss": "4.1.5",
35+
"tailwindcss": "4.1.5",
36+
"postcss": "8.5.3"
3737
}
3838
}

0 commit comments

Comments
 (0)