Skip to content

Commit 0d06f52

Browse files
committed
feat: update to next 15
1 parent 81a9b75 commit 0d06f52

File tree

8 files changed

+667
-203
lines changed

8 files changed

+667
-203
lines changed

apps/docs/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/docs/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
"@pixelshades/ui": "workspace:*",
1818
"@radix-ui/react-collapsible": "^1.1.3",
1919
"geist": "^1.3.1",
20-
"next": "14.2.15",
21-
"react": "^18.3.1",
22-
"react-dom": "^18.3.1",
20+
"next": "15.2.4",
21+
"react": "^19.0.0",
22+
"react-dom": "^19.0.0",
2323
"react-stately": "3.36.1",
2424
"safesight": "^0.7.3"
2525
},
2626
"devDependencies": {
2727
"@types/node": "^22.13.13",
28-
"@types/react": "^18.3.11",
29-
"@types/react-dom": "^18.3.0",
28+
"@types/react": "^19.0.12",
29+
"@types/react-dom": "^19.0.4",
3030
"postcss": "^8.5.3",
3131
"rehype-autolink-headings": "^7.1.0",
3232
"rehype-pretty-code": "^0.14.1",

apps/docs/src/app/docs/components/[...slug]/page.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@ import { TableOfContents } from "~/components/toc"
2626
import { components } from "#site/content"
2727

2828
interface PageProps {
29-
params: {
29+
params: Promise<{
3030
slug: string[]
31-
}
31+
}>
3232
}
3333

3434
export async function generateMetadata({ params }: PageProps): Promise<Metadata> {
35-
const doc = components.find((component) => component.path === `components/${params.slug.join("/")}`)
35+
const { slug } = await params
36+
const doc = components.find((component) => component.path === `components/${slug.join("/")}`)
3637

3738
if (!doc) {
3839
return {}
@@ -52,8 +53,9 @@ export const generateStaticParams = async () => {
5253
return pages
5354
}
5455

55-
export default function ComponentPage({ params }: PageProps) {
56-
const component = components.find((component) => component.path === `components/${params.slug.join("/")}`)
56+
export default async function ComponentPage({ params }: PageProps) {
57+
const { slug } = await params
58+
const component = components.find((component) => component.path === `components/${slug.join("/")}`)
5759

5860
if (!component) {
5961
return notFound()

apps/docs/src/app/docs/getting_started/[...slug]/page.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ import { TableOfContents } from "~/components/toc"
99
import { general_pages } from "#site/content"
1010

1111
interface PageProps {
12-
params: {
12+
params: Promise<{
1313
slug: string[]
14-
}
14+
}>
1515
}
1616

1717
export async function generateMetadata({ params }: PageProps): Promise<Metadata> {
18-
const doc = general_pages.find((component) => component.path === `getting_started/${params.slug.join("/")}`)
18+
const { slug } = await params
19+
const doc = general_pages.find((component) => component.path === `getting_started/${slug.join("/")}`)
1920

2021
if (!doc) {
2122
return {}
@@ -35,8 +36,9 @@ export const generateStaticParams = async () => {
3536
return pages
3637
}
3738

38-
export default function ComponentPage({ params }: PageProps) {
39-
const page = general_pages.find((component) => component.path === `getting_started/${params.slug.join("/")}`)
39+
export default async function ComponentPage({ params }: PageProps) {
40+
const { slug } = await params
41+
const page = general_pages.find((component) => component.path === `getting_started/${slug.join("/")}`)
4042

4143
if (!page) {
4244
return notFound()

apps/docs/tailwind.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const config: Config = {
88
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
99
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
1010
"../../packages/ui/src/**/*.{js,ts,jsx,tsx,mdx,md}",
11-
"../../packages/styles/**/*.{js,ts,jsx,tsx,mdx,md}",
12-
"../../packages/auto-form/**/*.{js,ts,jsx,tsx,mdx,md}",
11+
"../../packages/styles/src/**/*.{js,ts,jsx,tsx,mdx,md}",
12+
"../../packages/auto-form/src/**/*.{js,ts,jsx,tsx,mdx,md}",
1313
],
1414
theme: {
1515
extend: {

apps/docs/tsconfig.json

Lines changed: 51 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,53 @@
11
{
2-
"compilerOptions": {
3-
"lib": ["dom", "dom.iterable", "esnext"],
4-
"allowJs": true,
5-
"skipLibCheck": true,
6-
"strict": true,
7-
"noEmit": true,
8-
"esModuleInterop": true,
9-
"module": "esnext",
10-
"moduleResolution": "bundler",
11-
"resolveJsonModule": true,
12-
"allowImportingTsExtensions": true,
13-
"isolatedModules": true,
14-
"jsx": "preserve",
15-
"incremental": true,
16-
"plugins": [
17-
{
18-
"name": "next"
19-
}
20-
],
21-
"paths": {
22-
"~/*": ["./src/*"],
23-
"#site/content": ["./.velite"],
24-
"@pixelshades/styles/*": ["../../packages/styles/src/*"],
25-
"@pixelshades/auto-form": ["../../packages/auto-form/src"],
26-
"@pixelshades/ui/*": ["../../packages/ui/src/*"]
27-
}
28-
},
29-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
30-
"exclude": ["node_modules"]
2+
"compilerOptions": {
3+
"lib": [
4+
"dom",
5+
"dom.iterable",
6+
"esnext"
7+
],
8+
"allowJs": true,
9+
"skipLibCheck": true,
10+
"strict": true,
11+
"noEmit": true,
12+
"esModuleInterop": true,
13+
"module": "esnext",
14+
"moduleResolution": "bundler",
15+
"resolveJsonModule": true,
16+
"allowImportingTsExtensions": true,
17+
"isolatedModules": true,
18+
"jsx": "preserve",
19+
"incremental": true,
20+
"plugins": [
21+
{
22+
"name": "next"
23+
}
24+
],
25+
"paths": {
26+
"~/*": [
27+
"./src/*"
28+
],
29+
"#site/content": [
30+
"./.velite"
31+
],
32+
"@pixelshades/styles/*": [
33+
"../../packages/styles/src/*"
34+
],
35+
"@pixelshades/auto-form": [
36+
"../../packages/auto-form/src"
37+
],
38+
"@pixelshades/ui/*": [
39+
"../../packages/ui/src/*"
40+
]
41+
},
42+
"target": "ES2017"
43+
},
44+
"include": [
45+
"next-env.d.ts",
46+
"**/*.ts",
47+
"**/*.tsx",
48+
".next/types/**/*.ts"
49+
],
50+
"exclude": [
51+
"node_modules"
52+
]
3153
}

0 commit comments

Comments
 (0)