From 77e5a5861cb33198a1dd0e11516b3af695070b28 Mon Sep 17 00:00:00 2001 From: Toru Kobayashi Date: Tue, 14 Mar 2023 23:38:25 +0900 Subject: [PATCH] chore(examples): add debug entry points (#117) * chore(examples): bump Next.js to v13 and enable appDir * chore(examples): add demo entry points * chore(examples): add SWREntry & settings * docs(example): polish styles --- .../swr-devtools-demo/.vscode/settings.json | 4 + .../swr-devtools-demo/app/debug/SWREntry.tsx | 29 ++++ .../app/debug/debug.module.css | 57 ++++++++ .../app/debug/infinite/infinite.module.css | 52 +++++++ .../app/debug/infinite/page.tsx | 134 ++++++++++++++++++ examples/swr-devtools-demo/app/debug/page.tsx | 119 ++++++++++++++++ examples/swr-devtools-demo/app/head.tsx | 9 ++ examples/swr-devtools-demo/app/layout.tsx | 12 ++ examples/swr-devtools-demo/next.config.js | 6 +- examples/swr-devtools-demo/package.json | 2 +- examples/swr-devtools-demo/pages/index.tsx | 2 +- examples/swr-devtools-demo/tsconfig.json | 10 +- yarn.lock | 114 +++++++++++++++ 13 files changed, 545 insertions(+), 5 deletions(-) create mode 100644 examples/swr-devtools-demo/.vscode/settings.json create mode 100644 examples/swr-devtools-demo/app/debug/SWREntry.tsx create mode 100644 examples/swr-devtools-demo/app/debug/debug.module.css create mode 100644 examples/swr-devtools-demo/app/debug/infinite/infinite.module.css create mode 100644 examples/swr-devtools-demo/app/debug/infinite/page.tsx create mode 100644 examples/swr-devtools-demo/app/debug/page.tsx create mode 100644 examples/swr-devtools-demo/app/head.tsx create mode 100644 examples/swr-devtools-demo/app/layout.tsx diff --git a/examples/swr-devtools-demo/.vscode/settings.json b/examples/swr-devtools-demo/.vscode/settings.json new file mode 100644 index 0000000..d3fdae9 --- /dev/null +++ b/examples/swr-devtools-demo/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "typescript.tsdk": "../../node_modules/typescript/lib", + "typescript.enablePromptUseWorkspaceTsdk": true +} \ No newline at end of file diff --git a/examples/swr-devtools-demo/app/debug/SWREntry.tsx b/examples/swr-devtools-demo/app/debug/SWREntry.tsx new file mode 100644 index 0000000..850e89c --- /dev/null +++ b/examples/swr-devtools-demo/app/debug/SWREntry.tsx @@ -0,0 +1,29 @@ +import useSWR from "swr"; + +const sleep = (ms: number) => + new Promise((resolve) => setTimeout(resolve, Math.random() * 1000)); + +const randomNumber = (len: number) => + Math.floor(Math.random() * Math.pow(10, len)); + +const fetcher = async () => { + await sleep(Math.random() * 2000); + return randomNumber(3); +}; + +export const SWREntry = ({ + swrKey, + options, +}: { + swrKey: string; + options: any; +}) => { + const { data, isLoading, isValidating } = useSWR( + "/api/debug?key=" + swrKey, + fetcher, + options + ); + if (isLoading) return

Loading...

; + if (isValidating) return

Validating...

; + return

{data}

; +}; diff --git a/examples/swr-devtools-demo/app/debug/debug.module.css b/examples/swr-devtools-demo/app/debug/debug.module.css new file mode 100644 index 0000000..4eb4602 --- /dev/null +++ b/examples/swr-devtools-demo/app/debug/debug.module.css @@ -0,0 +1,57 @@ +.container { + min-height: 100vh; + padding: 0; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} + +.main { + width: 90%; +} + +.grid { + display: grid; + grid-template-columns: repeat(10, 1fr); + gap: 10; +} + +@media (max-width: 780px){ + .grid { + grid-template-columns: repeat(5, 1fr); + } +} + +.nav { + font-size: 1.2rem; + text-align: center; +} + +.label { + display: block; +} + +.label > span { + display: inline-block; + padding: 0 5px; + width: 150px; +} +.label > input { + max-width: 50px; +} + +.title { + line-height: 1.15; + font-size: 3rem; + text-align: center; +} + +.section { + margin-bottom: 20px; +} + +.subtitle { + font-size: 2rem; + margin: 10px 0; +} \ No newline at end of file diff --git a/examples/swr-devtools-demo/app/debug/infinite/infinite.module.css b/examples/swr-devtools-demo/app/debug/infinite/infinite.module.css new file mode 100644 index 0000000..e1fb1e9 --- /dev/null +++ b/examples/swr-devtools-demo/app/debug/infinite/infinite.module.css @@ -0,0 +1,52 @@ +.container { + min-height: 100vh; + padding: 0; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} + +.main { + padding: 0; + flex: 1; +} + +.content { + flex-direction: column; +} + +.list { + margin: 0 auto; + max-width: 80%; + list-style: none; +} + +.listItem { + font-size: 1.2rem; + padding-bottom: 10px; +} + +.buttonArea { + display: flex; + justify-content: center; + padding: 1rem; +} +.button { + font-size: 1rem; + padding: 0.3rem 0.5rem; + border-radius: 5px; + border: solid 2px #ccc; +} + +.nav { + font-size: 1.2rem; + text-align: center; +} + +.title { + line-height: 1.15; + font-size: 3rem; + text-align: center; +} + diff --git a/examples/swr-devtools-demo/app/debug/infinite/page.tsx b/examples/swr-devtools-demo/app/debug/infinite/page.tsx new file mode 100644 index 0000000..88aedb8 --- /dev/null +++ b/examples/swr-devtools-demo/app/debug/infinite/page.tsx @@ -0,0 +1,134 @@ +"use client"; +import Head from "next/head"; +import Link from "next/link"; +import useSWRInfinite from "swr/infinite"; + +import styles from "./infinite.module.css"; + +const dummyData = { + 1: [ + { + name: "Array.prototype.at()", + url: "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at", + }, + { + name: "Array.prototype.concat()", + url: "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat", + }, + { + name: "Array.prototype.copyWithin()", + url: "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/copyWithin", + }, + { + name: "Array.prototype.entries()", + url: "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries", + }, + { + name: "Array.prototype.every()", + url: "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every", + }, + ], + 2: [ + { + name: "HTMLElement.accessKey", + url: "https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/accessKey", + }, + { + name: "HTMLElement.contentEditable", + url: "https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/contentEditable", + }, + { + name: "HTMLElement.inert", + url: "https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert", + }, + { + name: "HTMLElement.nonce", + url: "https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/nonce", + }, + { + name: "HTMLElement.tabIndex", + url: "https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/tabIndex", + }, + ], + 3: [ + { + name: "animation", + url: "https://developer.mozilla.org/en-US/docs/Web/CSS/animation", + }, + { + name: "background", + url: "https://developer.mozilla.org/en-US/docs/Web/CSS/background", + }, + { + name: "border", + url: "https://developer.mozilla.org/en-US/docs/Web/CSS/border", + }, + { + name: "display", + url: "https://developer.mozilla.org/en-US/docs/Web/CSS/display", + }, + { + name: "env()", + url: "https://developer.mozilla.org/en-US/docs/Web/CSS/env()", + }, + ], +}; + +const sleep = (ms: number) => + new Promise((resolve) => setTimeout(resolve, Math.random() * 2000)); + +const fetcher = async (url) => { + await sleep(Math.random() * 2000); + const searchParams = new URL(location.origin + url).searchParams; + return dummyData[searchParams.get("page")] || []; +}; + +export default function Home() { + const { data, setSize, isValidating } = useSWRInfinite( + (index) => `/api/list?page=${index + 1}`, + fetcher + ); + + const pages = data ? data.reduce((acc, page) => acc.concat(page), []) : []; + + return ( +
+ + Debug + + + +
+

Debug

+
+ +
+ +
+
+ +
+
+

SWR DevTools

+
+
+ ); +} diff --git a/examples/swr-devtools-demo/app/debug/page.tsx b/examples/swr-devtools-demo/app/debug/page.tsx new file mode 100644 index 0000000..3f1e267 --- /dev/null +++ b/examples/swr-devtools-demo/app/debug/page.tsx @@ -0,0 +1,119 @@ +"use client"; +import Head from "next/head"; +import Link from "next/link"; +import { useCallback, useState } from "react"; +import { SWRConfiguration, useSWRConfig } from "swr"; + +import styles from "./debug.module.css"; +import { SWREntry } from "./SWREntry"; + +type Settings = { + gridCount: number; +}; + +type Options = SWRConfiguration & { + refreshInterval: number; +}; + +export default function Home() { + const config = useSWRConfig(); + const [settings, setSettings] = useState({ + gridCount: 10, + }); + + const [options, setOptions] = useState({ + ...config, + refreshInterval: 0, + }); + console.log(config); + const onChangeSettings = useCallback((setting: Partial) => { + setSettings((current) => ({ ...current, ...setting })); + }, []); + const onChangeOptions = useCallback((option: Partial) => { + setOptions((current) => ({ ...current, ...option })); + }, []); + + return ( +
+ + Debug + + + +
+

Debug

+
+ Settings + +
+
+ SWR Options + + + + +
+
+

Data

+
+ {Array.from({ length: settings.gridCount }).map((_, i) => { + const key = "test" + i; + return ; + })} +
+
+ +
+
+

SWR DevTools

+
+
+ ); +} diff --git a/examples/swr-devtools-demo/app/head.tsx b/examples/swr-devtools-demo/app/head.tsx new file mode 100644 index 0000000..29bc304 --- /dev/null +++ b/examples/swr-devtools-demo/app/head.tsx @@ -0,0 +1,9 @@ +export default function Head() { + return ( + <> + + <meta content="width=device-width, initial-scale=1" name="viewport" /> + <link rel="icon" href="/favicon.ico" /> + </> + ); +} diff --git a/examples/swr-devtools-demo/app/layout.tsx b/examples/swr-devtools-demo/app/layout.tsx new file mode 100644 index 0000000..fa85a48 --- /dev/null +++ b/examples/swr-devtools-demo/app/layout.tsx @@ -0,0 +1,12 @@ +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + <html lang="en"> + <head /> + <body>{children}</body> + </html> + ); +} diff --git a/examples/swr-devtools-demo/next.config.js b/examples/swr-devtools-demo/next.config.js index b0ffe3c..1575af4 100644 --- a/examples/swr-devtools-demo/next.config.js +++ b/examples/swr-devtools-demo/next.config.js @@ -1,6 +1,10 @@ /** * @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + experimental: { + appDir: true, + }, +}; module.exports = nextConfig; diff --git a/examples/swr-devtools-demo/package.json b/examples/swr-devtools-demo/package.json index b7e81b7..fe34c18 100644 --- a/examples/swr-devtools-demo/package.json +++ b/examples/swr-devtools-demo/package.json @@ -9,7 +9,7 @@ "lint": "tsc --noEmit" }, "dependencies": { - "next": "^12.3.1", + "next": "^13.1.6", "react": "18.2.0", "react-dom": "18.2.0", "styled-components": "^5.3.5", diff --git a/examples/swr-devtools-demo/pages/index.tsx b/examples/swr-devtools-demo/pages/index.tsx index 64880e3..0e98e60 100644 --- a/examples/swr-devtools-demo/pages/index.tsx +++ b/examples/swr-devtools-demo/pages/index.tsx @@ -1,6 +1,6 @@ import Head from "next/head"; import Link from "next/link"; -import Image from "next/future/image"; +import Image from "next/image"; import styles from "../styles/Home.module.css"; import useSWR from "swr"; import { useEffect } from "react"; diff --git a/examples/swr-devtools-demo/tsconfig.json b/examples/swr-devtools-demo/tsconfig.json index 4012288..19ff489 100644 --- a/examples/swr-devtools-demo/tsconfig.json +++ b/examples/swr-devtools-demo/tsconfig.json @@ -17,12 +17,18 @@ "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve", - "incremental": false + "incremental": false, + "plugins": [ + { + "name": "next" + } + ] }, "include": [ "next-env.d.ts", "**/*.ts", - "**/*.tsx" + "**/*.tsx", + ".next/types/**/*.ts" ], "exclude": [ "node_modules" diff --git a/yarn.lock b/yarn.lock index 67f37b6..b72e6c2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1014,71 +1014,141 @@ resolved "https://registry.yarnpkg.com/@next/env/-/env-12.3.1.tgz#18266bd92de3b4aa4037b1927aa59e6f11879260" integrity sha512-9P9THmRFVKGKt9DYqeC2aKIxm8rlvkK38V1P1sRE7qyoPBIs8l9oo79QoSdPtOWfzkbDAVUqvbQGgTMsb8BtJg== +"@next/env@13.1.6": + version "13.1.6" + resolved "https://registry.yarnpkg.com/@next/env/-/env-13.1.6.tgz#c4925609f16142ded1a5cb833359ab17359b7a93" + integrity sha512-s+W9Fdqh5MFk6ECrbnVmmAOwxKQuhGMT7xXHrkYIBMBcTiOqNWhv5KbJIboKR5STXxNXl32hllnvKaffzFaWQg== + "@next/swc-android-arm-eabi@12.3.1": version "12.3.1" resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.3.1.tgz#b15ce8ad376102a3b8c0f3c017dde050a22bb1a3" integrity sha512-i+BvKA8tB//srVPPQxIQN5lvfROcfv4OB23/L1nXznP+N/TyKL8lql3l7oo2LNhnH66zWhfoemg3Q4VJZSruzQ== +"@next/swc-android-arm-eabi@13.1.6": + version "13.1.6" + resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-13.1.6.tgz#d766dfc10e27814d947b20f052067c239913dbcc" + integrity sha512-F3/6Z8LH/pGlPzR1AcjPFxx35mPqjE5xZcf+IL+KgbW9tMkp7CYi1y7qKrEWU7W4AumxX/8OINnDQWLiwLasLQ== + "@next/swc-android-arm64@12.3.1": version "12.3.1" resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-12.3.1.tgz#85d205f568a790a137cb3c3f720d961a2436ac9c" integrity sha512-CmgU2ZNyBP0rkugOOqLnjl3+eRpXBzB/I2sjwcGZ7/Z6RcUJXK5Evz+N0ucOxqE4cZ3gkTeXtSzRrMK2mGYV8Q== +"@next/swc-android-arm64@13.1.6": + version "13.1.6" + resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-13.1.6.tgz#f37a98d5f18927d8c9970d750d516ac779465176" + integrity sha512-cMwQjnB8vrYkWyK/H0Rf2c2pKIH4RGjpKUDvbjVAit6SbwPDpmaijLio0LWFV3/tOnY6kvzbL62lndVA0mkYpw== + "@next/swc-darwin-arm64@12.3.1": version "12.3.1" resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.3.1.tgz#b105457d6760a7916b27e46c97cb1a40547114ae" integrity sha512-hT/EBGNcu0ITiuWDYU9ur57Oa4LybD5DOQp4f22T6zLfpoBMfBibPtR8XktXmOyFHrL/6FC2p9ojdLZhWhvBHg== +"@next/swc-darwin-arm64@13.1.6": + version "13.1.6" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.1.6.tgz#ec1b90fd9bf809d8b81004c5182e254dced4ad96" + integrity sha512-KKRQH4DDE4kONXCvFMNBZGDb499Hs+xcFAwvj+rfSUssIDrZOlyfJNy55rH5t2Qxed1e4K80KEJgsxKQN1/fyw== + "@next/swc-darwin-x64@12.3.1": version "12.3.1" resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-12.3.1.tgz#6947b39082271378896b095b6696a7791c6e32b1" integrity sha512-9S6EVueCVCyGf2vuiLiGEHZCJcPAxglyckTZcEwLdJwozLqN0gtS0Eq0bQlGS3dH49Py/rQYpZ3KVWZ9BUf/WA== +"@next/swc-darwin-x64@13.1.6": + version "13.1.6" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.1.6.tgz#e869ac75d16995eee733a7d1550322d9051c1eb4" + integrity sha512-/uOky5PaZDoaU99ohjtNcDTJ6ks/gZ5ykTQDvNZDjIoCxFe3+t06bxsTPY6tAO6uEAw5f6vVFX5H5KLwhrkZCA== + "@next/swc-freebsd-x64@12.3.1": version "12.3.1" resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.3.1.tgz#2b6c36a4d84aae8b0ea0e0da9bafc696ae27085a" integrity sha512-qcuUQkaBZWqzM0F1N4AkAh88lLzzpfE6ImOcI1P6YeyJSsBmpBIV8o70zV+Wxpc26yV9vpzb+e5gCyxNjKJg5Q== +"@next/swc-freebsd-x64@13.1.6": + version "13.1.6" + resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-13.1.6.tgz#84a7b2e423a2904afc2edca21c2f1ba6b53fa4c1" + integrity sha512-qaEALZeV7to6weSXk3Br80wtFQ7cFTpos/q+m9XVRFggu+8Ib895XhMWdJBzew6aaOcMvYR6KQ6JmHA2/eMzWw== + "@next/swc-linux-arm-gnueabihf@12.3.1": version "12.3.1" resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.3.1.tgz#6e421c44285cfedac1f4631d5de330dd60b86298" integrity sha512-diL9MSYrEI5nY2wc/h/DBewEDUzr/DqBjIgHJ3RUNtETAOB3spMNHvJk2XKUDjnQuluLmFMloet9tpEqU2TT9w== +"@next/swc-linux-arm-gnueabihf@13.1.6": + version "13.1.6" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-13.1.6.tgz#980eed1f655ff8a72187d8a6ef9e73ac39d20d23" + integrity sha512-OybkbC58A1wJ+JrJSOjGDvZzrVEQA4sprJejGqMwiZyLqhr9Eo8FXF0y6HL+m1CPCpPhXEHz/2xKoYsl16kNqw== + "@next/swc-linux-arm64-gnu@12.3.1": version "12.3.1" resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.3.1.tgz#8863f08a81f422f910af126159d2cbb9552ef717" integrity sha512-o/xB2nztoaC7jnXU3Q36vGgOolJpsGG8ETNjxM1VAPxRwM7FyGCPHOMk1XavG88QZSQf+1r+POBW0tLxQOJ9DQ== +"@next/swc-linux-arm64-gnu@13.1.6": + version "13.1.6" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.1.6.tgz#87a71db21cded3f7c63d1d19079845c59813c53d" + integrity sha512-yCH+yDr7/4FDuWv6+GiYrPI9kcTAO3y48UmaIbrKy8ZJpi7RehJe3vIBRUmLrLaNDH3rY1rwoHi471NvR5J5NQ== + "@next/swc-linux-arm64-musl@12.3.1": version "12.3.1" resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.3.1.tgz#0038f07cf0b259d70ae0c80890d826dfc775d9f3" integrity sha512-2WEasRxJzgAmP43glFNhADpe8zB7kJofhEAVNbDJZANp+H4+wq+/cW1CdDi8DqjkShPEA6/ejJw+xnEyDID2jg== +"@next/swc-linux-arm64-musl@13.1.6": + version "13.1.6" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.1.6.tgz#c5aac8619331b9fd030603bbe2b36052011e11de" + integrity sha512-ECagB8LGX25P9Mrmlc7Q/TQBb9rGScxHbv/kLqqIWs2fIXy6Y/EiBBiM72NTwuXUFCNrWR4sjUPSooVBJJ3ESQ== + "@next/swc-linux-x64-gnu@12.3.1": version "12.3.1" resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.3.1.tgz#c66468f5e8181ffb096c537f0dbfb589baa6a9c1" integrity sha512-JWEaMyvNrXuM3dyy9Pp5cFPuSSvG82+yABqsWugjWlvfmnlnx9HOQZY23bFq3cNghy5V/t0iPb6cffzRWylgsA== +"@next/swc-linux-x64-gnu@13.1.6": + version "13.1.6" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.1.6.tgz#9513d36d540bbfea575576746736054c31aacdea" + integrity sha512-GT5w2mruk90V/I5g6ScuueE7fqj/d8Bui2qxdw6lFxmuTgMeol5rnzAv4uAoVQgClOUO/MULilzlODg9Ib3Y4Q== + "@next/swc-linux-x64-musl@12.3.1": version "12.3.1" resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.3.1.tgz#c6269f3e96ac0395bc722ad97ce410ea5101d305" integrity sha512-xoEWQQ71waWc4BZcOjmatuvPUXKTv6MbIFzpm4LFeCHsg2iwai0ILmNXf81rJR+L1Wb9ifEke2sQpZSPNz1Iyg== +"@next/swc-linux-x64-musl@13.1.6": + version "13.1.6" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.1.6.tgz#d61fc6884899f5957251f4ce3f522e34a2c479b7" + integrity sha512-keFD6KvwOPzmat4TCnlnuxJCQepPN+8j3Nw876FtULxo8005Y9Ghcl7ACcR8GoiKoddAq8gxNBrpjoxjQRHeAQ== + "@next/swc-win32-arm64-msvc@12.3.1": version "12.3.1" resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.3.1.tgz#83c639ee969cee36ce247c3abd1d9df97b5ecade" integrity sha512-hswVFYQYIeGHE2JYaBVtvqmBQ1CppplQbZJS/JgrVI3x2CurNhEkmds/yqvDONfwfbttTtH4+q9Dzf/WVl3Opw== +"@next/swc-win32-arm64-msvc@13.1.6": + version "13.1.6" + resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.1.6.tgz#fac2077a8ae9768e31444c9ae90807e64117cda7" + integrity sha512-OwertslIiGQluFvHyRDzBCIB07qJjqabAmINlXUYt7/sY7Q7QPE8xVi5beBxX/rxTGPIbtyIe3faBE6Z2KywhQ== + "@next/swc-win32-ia32-msvc@12.3.1": version "12.3.1" resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.3.1.tgz#52995748b92aa8ad053440301bc2c0d9fbcf27c2" integrity sha512-Kny5JBehkTbKPmqulr5i+iKntO5YMP+bVM8Hf8UAmjSMVo3wehyLVc9IZkNmcbxi+vwETnQvJaT5ynYBkJ9dWA== +"@next/swc-win32-ia32-msvc@13.1.6": + version "13.1.6" + resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.1.6.tgz#498bc11c91b4c482a625bf4b978f98ae91111e46" + integrity sha512-g8zowiuP8FxUR9zslPmlju7qYbs2XBtTLVSxVikPtUDQedhcls39uKYLvOOd1JZg0ehyhopobRoH1q+MHlIN/w== + "@next/swc-win32-x64-msvc@12.3.1": version "12.3.1" resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.3.1.tgz#27d71a95247a9eaee03d47adee7e3bd594514136" integrity sha512-W1ijvzzg+kPEX6LAc+50EYYSEo0FVu7dmTE+t+DM4iOLqgGHoW9uYSz9wCVdkXOEEMP9xhXfGpcSxsfDucyPkA== +"@next/swc-win32-x64-msvc@13.1.6": + version "13.1.6" + resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.1.6.tgz#17ed919c723426b7d0ce1cd73d40ce3dcd342089" + integrity sha512-Ls2OL9hi3YlJKGNdKv8k3X/lLgc3VmLG3a/DeTkAd+lAituJp8ZHmRmm9f9SL84fT3CotlzcgbdaCDfFwFA6bA== + "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" @@ -1400,6 +1470,13 @@ dependencies: tslib "^2.4.0" +"@swc/helpers@0.4.14": + version "0.4.14" + resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.4.14.tgz#1352ac6d95e3617ccb7c1498ff019654f1e12a74" + integrity sha512-4C7nX/dvpzB7za4Ql9K81xK3HPxCpHMgwTZVyf+9JQ6VUbn9jjZVN7/Nkdz/Ugzs2CSjqnL/UPXroiVBVHUWUw== + dependencies: + tslib "^2.4.0" + "@szmarczak/http-timer@^5.0.1": version "5.0.1" resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-5.0.1.tgz#c7c1bf1141cdd4751b0399c8fc7b8b664cd5be3a" @@ -2648,6 +2725,11 @@ cli-width@^3.0.0: resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== +client-only@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1" + integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA== + cliui@^7.0.2: version "7.0.4" resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" @@ -5961,6 +6043,31 @@ next@^12.3.1: "@next/swc-win32-ia32-msvc" "12.3.1" "@next/swc-win32-x64-msvc" "12.3.1" +next@^13.1.6: + version "13.1.6" + resolved "https://registry.yarnpkg.com/next/-/next-13.1.6.tgz#054babe20b601f21f682f197063c9b0b32f1a27c" + integrity sha512-hHlbhKPj9pW+Cymvfzc15lvhaOZ54l+8sXDXJWm3OBNBzgrVj6hwGPmqqsXg40xO1Leq+kXpllzRPuncpC0Phw== + dependencies: + "@next/env" "13.1.6" + "@swc/helpers" "0.4.14" + caniuse-lite "^1.0.30001406" + postcss "8.4.14" + styled-jsx "5.1.1" + optionalDependencies: + "@next/swc-android-arm-eabi" "13.1.6" + "@next/swc-android-arm64" "13.1.6" + "@next/swc-darwin-arm64" "13.1.6" + "@next/swc-darwin-x64" "13.1.6" + "@next/swc-freebsd-x64" "13.1.6" + "@next/swc-linux-arm-gnueabihf" "13.1.6" + "@next/swc-linux-arm64-gnu" "13.1.6" + "@next/swc-linux-arm64-musl" "13.1.6" + "@next/swc-linux-x64-gnu" "13.1.6" + "@next/swc-linux-x64-musl" "13.1.6" + "@next/swc-win32-arm64-msvc" "13.1.6" + "@next/swc-win32-ia32-msvc" "13.1.6" + "@next/swc-win32-x64-msvc" "13.1.6" + nice-try@^1.0.4: version "1.0.5" resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" @@ -7928,6 +8035,13 @@ styled-jsx@5.0.7: resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-5.0.7.tgz#be44afc53771b983769ac654d355ca8d019dff48" integrity sha512-b3sUzamS086YLRuvnaDigdAewz1/EFYlHpYBP5mZovKEdQQOIIYq8lApylub3HHZ6xFjV051kkGU7cudJmrXEA== +styled-jsx@5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-5.1.1.tgz#839a1c3aaacc4e735fed0781b8619ea5d0009d1f" + integrity sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw== + dependencies: + client-only "0.0.1" + sugar-high@^0.4.6: version "0.4.6" resolved "https://registry.yarnpkg.com/sugar-high/-/sugar-high-0.4.6.tgz#31fd3e3a1f29f07401e1023a37060425954b0e93"