diff --git a/app/item/page.js b/app/item/page.js index 9879c66..0954f3b 100644 --- a/app/item/page.js +++ b/app/item/page.js @@ -6,11 +6,14 @@ import fetchData from '../../lib/fetch-data'; import { transform } from '../../lib/get-item'; export default async function ItemPage({ searchParams }) { - const id = searchParams['id']; + const { id } = searchParams; if (!id) { notFound(); } const data = await fetchData(`item/${id}`); - return ; + const story = transform(data); + return ; } + +export const revalidate = 0; \ No newline at end of file diff --git a/app/layout.js b/app/layout.js index d008702..98ceb2c 100644 --- a/app/layout.js +++ b/app/layout.js @@ -1,16 +1,17 @@ -import '../components/meta.css'; import Header from '../components/header'; + import '../styles/globals.css'; +import styles from '../styles/RootLayout.module.css'; export default function RootLayout({ children }) { return ( -
+
-
{children}
+
{children}
); -} +} \ No newline at end of file diff --git a/app/loading.js b/app/loading.js index 5150db4..46643b9 100644 --- a/app/loading.js +++ b/app/loading.js @@ -1,11 +1,5 @@ +import Skeletons from '../components/skeletons'; + export default function Loading() { - return ( -
- {Array(30) - .fill(0) - .map((_, index) => ( -
- ))} -
- ); -} + return ; +} \ No newline at end of file diff --git a/app/page.js b/app/page.js index ed361dc..33fad0d 100644 --- a/app/page.js +++ b/app/page.js @@ -11,11 +11,12 @@ import { transform } from '../lib/get-item'; async function StoryWithData({ id }) { const data = await fetchData(`item/${id}`); - return ; + const story = transform(data); + return ; } export default async function RSCPage() { - const storyIds = await fetchData('topstories', 2000); + const storyIds = await fetchData('topstories'); return ( <> diff --git a/components/error-placeholder.js b/components/error-placeholder.js index 5dcdef6..8b4ac7b 100644 --- a/components/error-placeholder.js +++ b/components/error-placeholder.js @@ -1,7 +1,11 @@ +import { useEffect } from "react"; + export default function ErrorPlaceholder({ error }) { - if (process.env.NODE_ENV === 'development') { + useEffect(() => { + // Log the error to an error reporting service console.error(error); - } + }, [error]); + return ( {`Application error: a server-side exception has occurred`} ); diff --git a/components/item.js b/components/item.js index 572f349..069d358 100644 --- a/components/item.js +++ b/components/item.js @@ -2,7 +2,6 @@ import { Suspense } from 'react'; import Story from './story'; import Comment from './comment'; import CommentForm from './comment-form'; -import fetchData from '../lib/fetch-data'; import getComments from '../lib/get-comments'; import Skeletons from './skeletons'; @@ -13,8 +12,7 @@ async function Comments({ story }) { return
No Comments
; } - const data = await fetchData(`comments/${story.id}`); - const comments = await getComments(data.comments); + const comments = await getComments(story.comments); return (
diff --git a/components/meta.css b/components/meta.css deleted file mode 100644 index 223f48c..0000000 --- a/components/meta.css +++ /dev/null @@ -1,80 +0,0 @@ -body { - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', - sans-serif; - background: #eee; -} - -* { - margin: 0; - padding: 0; - box-sizing: border-box; -} - -.title { - font-size: 15px; - margin-bottom: 3px; -} - -.title > a { - color: #000; - text-decoration: none; -} - -.title > a:visited { - color: #828282; -} - -.meta { - font-size: 12px; -} -.source { - font-size: 12px; - display: inline-block; - margin-left: 5px; -} - -.source a, -.meta a { - color: #828282; - text-decoration: none; -} - -.source a:hover, -.meta a:hover { - text-decoration: underline; -} - -.item-skeleton { - margin: 5px 0; - overflow: hidden; -} - -.item-skeleton:before, -.item-skeleton:after { - content: ''; - display: block; - width: 350px; - max-width: 100%; - height: 16px; - background: #eee; - margin: 6px 0 2px; - background-image: linear-gradient(270deg, #ccc, #eee, #eee, #ccc); - background-size: 400% 100%; - animation: highlight-rotating 8s ease infinite; -} - -.item-skeleton:after { - width: 250px; - height: 10px; - margin: 5px 0; -} - -@keyframes highlight-rotating { - from { - background-position: 200% 0; - } - to { - background-position: -200% 0; - } -} diff --git a/components/server-info.js b/components/server-info.js index a4bd42c..73fae49 100644 --- a/components/server-info.js +++ b/components/server-info.js @@ -1,6 +1,8 @@ +import styles from './server-info.module.css'; + export default function ServerInfo() { return ( -
+
Rendered at {new Date().toTimeString()} with Vercel.
); diff --git a/components/server-info.module.css b/components/server-info.module.css new file mode 100644 index 0000000..e258cbc --- /dev/null +++ b/components/server-info.module.css @@ -0,0 +1,5 @@ +.server-info { + text-align: center; + font-size: 14px; + padding-bottom: 20px; +} diff --git a/components/skeletons.js b/components/skeletons.js index c043d85..c37ac86 100644 --- a/components/skeletons.js +++ b/components/skeletons.js @@ -4,11 +4,9 @@ export default function Skeletons({ count = 30 }) { // Generating {count = 30} skeletons to match the size of the list. return (
- {Array(count) - .fill(0) - .map((_, index) => ( - - ))} + {Array.from({ length: count }).map((_, index) => ( + + ))}
); } diff --git a/components/story.js b/components/story.js index b5cf127..ac2b69a 100644 --- a/components/story.js +++ b/components/story.js @@ -4,6 +4,8 @@ import { useState } from 'react'; import timeAgo from '../lib/time-ago'; +import styles from './story.module.css'; + export default function Story({ id, title, @@ -18,7 +20,7 @@ export default function Story({ return (
-
+ -
+
{score} {plural(score, 'point')} by{' '} {user}{' '} diff --git a/components/story.module.css b/components/story.module.css new file mode 100644 index 0000000..4306e29 --- /dev/null +++ b/components/story.module.css @@ -0,0 +1,33 @@ +.title { + font-size: 15px; + margin-bottom: 3px; +} + +.title > a { + color: #000; + text-decoration: none; +} + +.title > a:visited { + color: #828282; +} + +.meta { + font-size: 12px; +} +.source { + font-size: 12px; + display: inline-block; + margin-left: 5px; +} + +.source a, +.meta a { + color: #828282; + text-decoration: none; +} + +.source a:hover, +.meta a:hover { + text-decoration: underline; +} diff --git a/lib/fetch-data.js b/lib/fetch-data.js index bb03133..58d9eb2 100644 --- a/lib/fetch-data.js +++ b/lib/fetch-data.js @@ -1,8 +1,5 @@ -export default async function fetchData(type, delay = 0) { - const [res] = await Promise.all([ - fetch(`https://hacker-news.firebaseio.com/v0/${type}.json`), - new Promise((res) => setTimeout(res, Math.random() * delay)), - ]); +export default async function fetchData(type) { + const res = await fetch(`https://hacker-news.firebaseio.com/v0/${type}.json`); if (res.status !== 200) { throw new Error(`Status ${res.status}`); diff --git a/package.json b/package.json index b4149b6..6df1ee0 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ }, "dependencies": { "ms": "2.1.3", - "next": "^13.0.3-canary.0", - "react": "^18.2.0", - "react-dom": "^18.2.0" + "next": "^13.0.3", + "react": "^18.3.0-next", + "react-dom": "^18.3.0-next" } } diff --git a/styles/RootLayout.module.css b/styles/RootLayout.module.css new file mode 100644 index 0000000..5119050 --- /dev/null +++ b/styles/RootLayout.module.css @@ -0,0 +1,17 @@ +.main { + width: 85%; + padding: 10px 0 0 0; +} + +.page { + color: #828282; + background: #fff; + padding: 3px 10px; +} + +@media (max-width: 750px) { + .main { + padding: 0; + width: auto; + } +} diff --git a/styles/globals.css b/styles/globals.css index 55d423c..288e625 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -4,7 +4,6 @@ html { body { display: flex; - align-items: center; justify-content: center; height: 100%; margin: 0; @@ -12,57 +11,14 @@ body { box-sizing: border-box; color: #333; -webkit-font-smoothing: antialiased; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, - Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', + 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', + sans-serif; + background: #eee; } -h1 { - font-size: 2em; -} - -h2 { - font-size: 1.4em; - margin-top: 2em; -} - -.container { - font-size: 20px; - text-align: center; -} - -small { - font-size: 0.8em; -} - -p { - margin: 10px; -} - -section { - display: block; - margin: 5px 0; - text-underline-position: from-font; -} - -section a { - color: #1386ff; -} - -.main { - width: 85%; - margin: auto; - padding: 10px 0 0 0; -} - -.page { - color: #828282; - background: #fff; - padding: 3px 10px; -} - -@media (max-width: 750px) { - .main { - padding: 0; - width: auto; - } +* { + margin: 0; + padding: 0; + box-sizing: border-box; } diff --git a/yarn.lock b/yarn.lock index a9ca878..d985ea1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,75 +2,75 @@ # yarn lockfile v1 -"@next/env@13.0.3-canary.0": - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/@next/env/-/env-13.0.3-canary.0.tgz#b51115228db20d40ceb518c8f949de6782606616" - integrity sha512-U3OKnXsh6dkDmlhTqeE9k4S5SLZv6h3wlcvVGnO4yDZGh0uVxDF6vd8uo9yhdc/o5is9aBQgkZN/oTSBRg1buQ== - -"@next/swc-android-arm-eabi@13.0.3-canary.0": - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-13.0.3-canary.0.tgz#666f187aa604887f31629207d32f7c6fee6ed03f" - integrity sha512-h8Qh9D1wi6uLArLX7L59rjSi1ACwJRioOFoYBH9w971WANta5HAoyyVXtOljXnA4t3VYUdtlB3Z8SLoutxVMuQ== - -"@next/swc-android-arm64@13.0.3-canary.0": - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-13.0.3-canary.0.tgz#1d52de8063c64cb3115f9e70cee01c3f432b10bf" - integrity sha512-X6zegRHULxEm0DXW9zd2H1M/UUCGIyzkW8kv6eN2VwJd3naxxpNHKkiXRW5VobO+ouhy1UdBUTGUHvJiZSGCRA== - -"@next/swc-darwin-arm64@13.0.3-canary.0": - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.0.3-canary.0.tgz#422dad6db7b71226d27891f60a6c2f14a2460586" - integrity sha512-9fZ4CU3BHffVQexK0T9XKfSfgBUVCEosN0P1r8VkD2FUuKjjpzaUDRORI0mgEb0f/fZxqoICBkaLZMSqhiYnYQ== - -"@next/swc-darwin-x64@13.0.3-canary.0": - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.0.3-canary.0.tgz#8bba646c6ced9c48fa0ee31a57430c56dba01e69" - integrity sha512-7ImLgjK5c0VR/mnfyPLemEx598+LlbXbvIYym4yah3UgxoFfqyCIo/M5nm9Qh/4exH1nBQcwx2u3lt4OJ9QrrA== - -"@next/swc-freebsd-x64@13.0.3-canary.0": - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-13.0.3-canary.0.tgz#fb7a87cda332a6b07c9eb9a072b613dfec738947" - integrity sha512-3NoCL7JBX7Oa7fCMeLnDI6MA6Eou5FR+gSedX7abUdx9cyotT+/chE6RxOvMyR/BZqBsV9QDyeG39/Dh6sLKjg== - -"@next/swc-linux-arm-gnueabihf@13.0.3-canary.0": - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-13.0.3-canary.0.tgz#6e1fd43d9a16e5adeaff38a5d8dffb99a556529e" - integrity sha512-hAxj+LGwzWV1CwggTPvSjYVrO8KyGxI3e3Pa0Qd3TNz0iyEcthW+lv/h2B/Z/SnisazxpznX94Rc6I8i8tosZw== - -"@next/swc-linux-arm64-gnu@13.0.3-canary.0": - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.0.3-canary.0.tgz#47684fd7424c9f2642aa7e8b8e67a77c990c7833" - integrity sha512-Q+pIeygSa/sA7zhAhSuLhIwCAfs4ZWfuxKgrj/T0mVFSlUTBy5cE3PpHSQ6wt9kJAFKvQegVa2mgCQTiATKrOQ== - -"@next/swc-linux-arm64-musl@13.0.3-canary.0": - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.0.3-canary.0.tgz#57829ed765ff20f3c2d38bce1c273597089be3f7" - integrity sha512-N9WfQ70bMo+kCMGQ/keNxhIYJ9O1tPL7OKzeE+SCT9RJJjxfql45LIanSiGwY9dfbcS/tx0uQXTxY4bh0n9U3g== - -"@next/swc-linux-x64-gnu@13.0.3-canary.0": - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.0.3-canary.0.tgz#b64ba9c1d8e3105cd75c68df036c68a03a8d0ba5" - integrity sha512-uDQgs7SXgEvaV+twuZjIwXBrENN088BNTvm+aA8VBO92IV62rAAyVAKL0tJJwI5rDnGt8MTC9DGbAIkRKeP+pg== - -"@next/swc-linux-x64-musl@13.0.3-canary.0": - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.0.3-canary.0.tgz#acbd907b39edcda42bfc02e208fc3f903411df28" - integrity sha512-YK9Dfh8czMfVsj9qPVQ5FBbeVBA+WWgrBWZrSEoUdkOCxW8MKsgDtqEmeLo+ZAhBFu4pSGeDik+Mc10m4i7vDw== - -"@next/swc-win32-arm64-msvc@13.0.3-canary.0": - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.0.3-canary.0.tgz#013bdd44ca53b35a3a04f731eb95e44c91660162" - integrity sha512-WsqY4J/tJgNVLqvGUkq6IZRVLYTHXOdEDO9RiGnZ8mtUkFEs1J4aTMJi8fdjzCUKl+/bRCYdFt1OQvEg8mneJA== - -"@next/swc-win32-ia32-msvc@13.0.3-canary.0": - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.0.3-canary.0.tgz#6a1d7868d96662c2d814e5c3ff10b0656b2e501d" - integrity sha512-syolOITwfneTidF3Eso5nTAFrOyAWmcmgSZSXqworaCa6nNpV++s9AmE1T5dV1kCxBPrVK06PsJ2vTETlfhkSA== - -"@next/swc-win32-x64-msvc@13.0.3-canary.0": - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.0.3-canary.0.tgz#63085c0d1a724237066ab2d5abe4613597f3caa4" - integrity sha512-TIe3pUIltVwc4sRnMGFlm3Jf7x5wgZDCeRtHoj+2Kir1ytZnyUEkYlG6y4pqhqS7aJFuhUy2Q/XpOejnook7JA== +"@next/env@13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@next/env/-/env-13.0.3.tgz#f2ecec9a6634aed28dca9e7b79bd65d9c516a1b4" + integrity sha512-/4WzeG61Ot/PxsghXkSqQJ6UohFfwXoZ3dtsypmR9EBP+OIax9JRq0trq8Z/LCT9Aq4JbihVkaazRWguORjTAw== + +"@next/swc-android-arm-eabi@13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-13.0.3.tgz#87ce3b7d81ec198f5360f4393e5e03f112758696" + integrity sha512-uxfUoj65CdFc1gX2q7GtBX3DhKv9Kn343LMqGNvXyuTpYTGMmIiVY7b9yF8oLWRV0gVKqhZBZifUmoPE8SJU6Q== + +"@next/swc-android-arm64@13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-13.0.3.tgz#2029f759cb3e85082da15ced94704a68e390a0e9" + integrity sha512-t2k+WDfg7Cq2z/EnalKGsd/9E5F4Hdo1xu+UzZXYDpKUI9zgE6Bz8ajQb8m8txv3qOaWdKuDa5j5ziq9Acd1Xw== + +"@next/swc-darwin-arm64@13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.0.3.tgz#f5deafd3feccf7c24b81df9a6a06d4d13bec254f" + integrity sha512-wV6j6SZ1bc/YHOLCLk9JVqaZTCCey6HBV7inl2DriHsHqIcO6F3+QiYf0KXwRP9BE0GSZZrYd5mZQm2JPTHdJA== + +"@next/swc-darwin-x64@13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.0.3.tgz#4d4321c02b88fdd052e7a0cc8b3719ac16f8ad4b" + integrity sha512-jaI2CMuYWvUtRixV3AIjUhnxUDU1FKOR+8hADMhYt3Yz+pCKuj4RZ0n0nY5qUf3qT1AtvnJXEgyatSFJhSp/wQ== + +"@next/swc-freebsd-x64@13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-13.0.3.tgz#f2cbac9dc03172ef94275a6380cdd4d08024fcd4" + integrity sha512-nbyT0toBTJrcj5TCB9pVnQpGJ3utGyQj4CWegZs1ulaeUQ5Z7CS/qt8nRyYyOKYHtOdSCJ9Nw5F/RgKNkdpOdw== + +"@next/swc-linux-arm-gnueabihf@13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-13.0.3.tgz#1b12006a25518ddc6ee9c58852149f82639876cf" + integrity sha512-1naLxYvRUQCoFCU1nMkcQueRc0Iux9xBv1L5pzH2ejtIWFg8BrSgyuluJG4nyAhFCx4WG863IEIkAaefOowVdA== + +"@next/swc-linux-arm64-gnu@13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.0.3.tgz#f44a34fc073b91ad2ab7dd757c063e764e642ddc" + integrity sha512-3Z4A8JkuGWpMVbUhUPQInK/SLY+kijTT78Q/NZCrhLlyvwrVxaQALJNlXzxDLraUgv4oVH0Wz/FIw1W9PUUhxA== + +"@next/swc-linux-arm64-musl@13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.0.3.tgz#5fd31e1149f151393b98239b5a6a96316459d19a" + integrity sha512-MoYe9SM40UaunTjC+01c9OILLH3uSoeri58kDMu3KF/EFEvn1LZ6ODeDj+SLGlAc95wn46hrRJS2BPmDDE+jFQ== + +"@next/swc-linux-x64-gnu@13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.0.3.tgz#a9b414123f26912fc830e5a65dd02e1ca56e2ead" + integrity sha512-z22T5WGnRanjLMXdF0NaNjSpBlEzzY43t5Ysp3nW1oI6gOkub6WdQNZeHIY7A2JwkgSWZmtjLtf+Fzzz38LHeQ== + +"@next/swc-linux-x64-musl@13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.0.3.tgz#113f896de5e818ab40e6ec046538203cdd07dab0" + integrity sha512-ZOMT7zjBFmkusAtr47k8xs/oTLsNlTH6xvYb+iux7yly2hZGwhfBLzPGBsbeMZukZ96IphJTagT+C033s6LNVA== + +"@next/swc-win32-arm64-msvc@13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.0.3.tgz#2ae5abe61f982a10f7742e97ac57f166751734aa" + integrity sha512-Q4BM16Djl+Oah9UdGrvjFYgoftYB2jNd+rtRGPX5Mmxo09Ry/KiLbOZnoUyoIxKc1xPyfqMXuaVsAFQLYs0KEQ== + +"@next/swc-win32-ia32-msvc@13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.0.3.tgz#1a9c0d36c7dab1620257e85ada702c5acd9875d6" + integrity sha512-Sa8yGkNeRUsic8Qjf7MLIAfP0p0+einK/wIqJ8UO1y76j+8rRQu42AMs5H4Ax1fm9GEYq6I8njHtY59TVpTtGQ== + +"@next/swc-win32-x64-msvc@13.0.3": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.0.3.tgz#7db0adbea7b4aafdbe2a7745d2c7c048903876ad" + integrity sha512-IAptmSqA7k4tQzaw2NAkoEjj3+Dz9ceuvlEHwYh770MMDL4V0ku2m+UHrmn5HUCEDHhgwwjg2nyf6728q2jr1w== "@swc/helpers@0.4.11": version "0.4.11" @@ -80,9 +80,9 @@ tslib "^2.4.0" caniuse-lite@^1.0.30001406: - version "1.0.30001427" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001427.tgz#d3a749f74be7ae0671fbec3a4eea18576e8ad646" - integrity sha512-lfXQ73oB9c8DP5Suxaszm+Ta2sr/4tf8+381GkIm1MLj/YdLf+rEDyDSRCzeltuyTVGm+/s18gdZ0q+Wmp8VsQ== + version "1.0.30001431" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001431.tgz#e7c59bd1bc518fae03a4656be442ce6c4887a795" + integrity sha512-zBUoFU0ZcxpvSt9IU66dXVT/3ctO1cy4y9cscs1szkPlcWb6pasYM144GqrUygUbT+k7cmUCW61cvskjcv0enQ== client-only@0.0.1: version "0.0.1" @@ -111,31 +111,31 @@ nanoid@^3.3.4: resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== -next@^13.0.3-canary.0: - version "13.0.3-canary.0" - resolved "https://registry.yarnpkg.com/next/-/next-13.0.3-canary.0.tgz#5229d96892f8a2c2e981cbd0e1f8d10bf594bef5" - integrity sha512-h9rTohejomMj7d0/BHT0v9HaX/CQy2dLYUdUAxI6I8ObYCESEUMeymtQzAHjQ/Fp1MP5+GPOVOVO2uqHNlCd2g== +next@^13.0.3: + version "13.0.3" + resolved "https://registry.yarnpkg.com/next/-/next-13.0.3.tgz#577e2f7cdd9c9dba79353cd57fd854fe7e506a44" + integrity sha512-rFQeepcenRxKzeKlh1CsmEnxsJwhIERtbUjmYnKZyDInZsU06lvaGw5DT44rlNp1Rv2MT/e9vffZ8vK+ytwXHA== dependencies: - "@next/env" "13.0.3-canary.0" + "@next/env" "13.0.3" "@swc/helpers" "0.4.11" caniuse-lite "^1.0.30001406" postcss "8.4.14" styled-jsx "5.1.0" use-sync-external-store "1.2.0" optionalDependencies: - "@next/swc-android-arm-eabi" "13.0.3-canary.0" - "@next/swc-android-arm64" "13.0.3-canary.0" - "@next/swc-darwin-arm64" "13.0.3-canary.0" - "@next/swc-darwin-x64" "13.0.3-canary.0" - "@next/swc-freebsd-x64" "13.0.3-canary.0" - "@next/swc-linux-arm-gnueabihf" "13.0.3-canary.0" - "@next/swc-linux-arm64-gnu" "13.0.3-canary.0" - "@next/swc-linux-arm64-musl" "13.0.3-canary.0" - "@next/swc-linux-x64-gnu" "13.0.3-canary.0" - "@next/swc-linux-x64-musl" "13.0.3-canary.0" - "@next/swc-win32-arm64-msvc" "13.0.3-canary.0" - "@next/swc-win32-ia32-msvc" "13.0.3-canary.0" - "@next/swc-win32-x64-msvc" "13.0.3-canary.0" + "@next/swc-android-arm-eabi" "13.0.3" + "@next/swc-android-arm64" "13.0.3" + "@next/swc-darwin-arm64" "13.0.3" + "@next/swc-darwin-x64" "13.0.3" + "@next/swc-freebsd-x64" "13.0.3" + "@next/swc-linux-arm-gnueabihf" "13.0.3" + "@next/swc-linux-arm64-gnu" "13.0.3" + "@next/swc-linux-arm64-musl" "13.0.3" + "@next/swc-linux-x64-gnu" "13.0.3" + "@next/swc-linux-x64-musl" "13.0.3" + "@next/swc-win32-arm64-msvc" "13.0.3" + "@next/swc-win32-ia32-msvc" "13.0.3" + "@next/swc-win32-x64-msvc" "13.0.3" picocolors@^1.0.0: version "1.0.0" @@ -151,25 +151,25 @@ postcss@8.4.14: picocolors "^1.0.0" source-map-js "^1.0.2" -react-dom@^18.2.0: - version "18.2.0" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d" - integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g== +react-dom@^18.3.0-next: + version "18.3.0-next-fecc288b7-20221025" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.3.0-next-fecc288b7-20221025.tgz#f06afce21f68a6797eb4c740637aa844c7918bcd" + integrity sha512-EczZNIcOXzLFyPhSXpplVFekfUvbtHRC68TVAPfCopn8YxjMg2ROVgYs1VdSnEu2JlXKvpeIbjexAuhDprsp/A== dependencies: loose-envify "^1.1.0" - scheduler "^0.23.0" + scheduler "0.24.0-next-fecc288b7-20221025" -react@^18.2.0: - version "18.2.0" - resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5" - integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ== +react@^18.3.0-next: + version "18.3.0-next-fecc288b7-20221025" + resolved "https://registry.yarnpkg.com/react/-/react-18.3.0-next-fecc288b7-20221025.tgz#8da77f8c8221bb2761ed817b7638feb108ba791c" + integrity sha512-lKvCNWRO9XPy8q7hLd0ODK/4Oqr54r3Vr49Y7EyNBz/kfsmNT6Vx0F69KRz/eGcbt1XDvtbA7KZd+mh8w3wONQ== dependencies: loose-envify "^1.1.0" -scheduler@^0.23.0: - version "0.23.0" - resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe" - integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw== +scheduler@0.24.0-next-fecc288b7-20221025: + version "0.24.0-next-fecc288b7-20221025" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.24.0-next-fecc288b7-20221025.tgz#0f4b174cf0ee5866b78855f4bf41142cc3cecc0e" + integrity sha512-D2r7z/2EbRXXz4k8XRQab2l71zARIwmZzLLGPAM936/dW1iF835+FMwnOe4Iep96vNJAdQavqJBP4Fm+/MadsQ== dependencies: loose-envify "^1.1.0"