diff --git a/bun.lock b/bun.lock index 666e898b21..a49f4d88aa 100644 --- a/bun.lock +++ b/bun.lock @@ -145,7 +145,7 @@ "micromark-extension-gfm": "^3.0.0", "motion": "^12.23.12", "next": "15.4.0", - "next-themes": "^0.2.1", + "next-themes": "^0.4.6", "nuqs": "^2.2.3", "object-hash": "^3.0.0", "object-identity": "^0.1.2", @@ -2454,7 +2454,7 @@ "next": ["next@15.4.0", "", { "dependencies": { "@next/env": "15.4.0-canary.57", "@swc/helpers": "0.5.15", "caniuse-lite": "^1.0.30001579", "postcss": "8.4.31", "styled-jsx": "5.1.6" }, "optionalDependencies": { "@next/swc-darwin-arm64": "15.4.0", "@next/swc-darwin-x64": "15.4.0", "@next/swc-linux-arm64-gnu": "15.4.0", "@next/swc-linux-arm64-musl": "15.4.0", "@next/swc-linux-x64-gnu": "15.4.0", "@next/swc-linux-x64-musl": "15.4.0", "@next/swc-win32-arm64-msvc": "15.4.0", "@next/swc-win32-x64-msvc": "15.4.0", "sharp": "^0.34.1" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", "@playwright/test": "^1.41.2", "babel-plugin-react-compiler": "*", "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "sass": "^1.3.0" }, "optionalPeers": ["@opentelemetry/api", "@playwright/test", "babel-plugin-react-compiler", "sass"], "bin": { "next": "dist/bin/next" } }, "sha512-9JfEyg23carbb/AxUylRQh4zVN4dt1af9aJ+L3CFl/LKQIQkWUWN44YhB9M5JhxMjleF6rkfNOD7IqDcsb6zyQ=="], - "next-themes": ["next-themes@0.2.1", "", { "peerDependencies": { "next": "*", "react": "*", "react-dom": "*" } }, "sha512-B+AKNfYNIzh0vqQQKqQItTS8evEouKD7H5Hj3kmuPERwddR2TxvDSFZuTj6T7Jfn1oyeUyJMydPl1Bkxkh0W7A=="], + "next-themes": ["next-themes@0.4.6", "", { "peerDependencies": { "react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc", "react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc" } }, "sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA=="], "next-tick": ["next-tick@1.1.0", "", {}, "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="], diff --git a/packages/gitbook/package.json b/packages/gitbook/package.json index cbc6ff09f5..7918f044f3 100644 --- a/packages/gitbook/package.json +++ b/packages/gitbook/package.json @@ -51,7 +51,7 @@ "micromark-extension-gfm": "^3.0.0", "motion": "^12.23.12", "next": "15.4.0", - "next-themes": "^0.2.1", + "next-themes": "^0.4.6", "nuqs": "^2.2.3", "object-hash": "^3.0.0", "object-identity": "^0.1.2", diff --git a/packages/gitbook/src/components/SiteLayout/SiteLayoutClientContexts.tsx b/packages/gitbook/src/components/SiteLayout/SiteLayoutClientContexts.tsx index cf3463d750..41849e53ad 100644 --- a/packages/gitbook/src/components/SiteLayout/SiteLayoutClientContexts.tsx +++ b/packages/gitbook/src/components/SiteLayout/SiteLayoutClientContexts.tsx @@ -22,12 +22,17 @@ export function SiteLayoutClientContexts(props: { useClearRouterCache(contextId); return ( - - + + {children} - - + + ); }