From f2aab8dbec8abf97046856238bdba95eaa344022 Mon Sep 17 00:00:00 2001 From: Timofei Iatsenko Date: Wed, 7 Feb 2024 16:17:42 +0100 Subject: [PATCH] chore: update example (#82) --- examples/nextjs-13/package.json | 16 +- examples/nextjs-13/src/i18n.ts | 23 +- examples/nextjs-13/src/pages/_app.tsx | 2 +- examples/nextjs-13/src/pages/index.tsx | 2 +- examples/nextjs-13/yarn.lock | 364 +++++++++++++------------ 5 files changed, 223 insertions(+), 184 deletions(-) diff --git a/examples/nextjs-13/package.json b/examples/nextjs-13/package.json index 4b5456f..45a04ea 100644 --- a/examples/nextjs-13/package.json +++ b/examples/nextjs-13/package.json @@ -10,22 +10,22 @@ "lingui:extract": "lingui extract" }, "dependencies": { - "@lingui/core": "^4.0.0-next.3", - "@lingui/react": "^4.0.0-next.3", - "@next/font": "13.1.2", + "@lingui/core": "^4.7.0", + "@lingui/react": "^4.7.0", + "@next/font": "14.1.0", "@types/node": "18.11.18", "@types/react": "18.0.26", "@types/react-dom": "18.0.10", "make-plural": "^7.2.0", - "next": "13.1.2", + "next": "14.1.0", "react": "18.2.0", "react-dom": "18.2.0", "typescript": "4.9.4" }, "devDependencies": { - "@lingui/cli": "^4.0.0-next.3", - "@lingui/loader": "^4.0.0-next.3", - "@lingui/macro": "^4.0.0-next.3", - "@lingui/swc-plugin": "^4.0.0-next.2" + "@lingui/cli": "^4.7.0", + "@lingui/loader": "^4.7.0", + "@lingui/macro": "^4.7.0", + "@lingui/swc-plugin": "4.0.6" } } diff --git a/examples/nextjs-13/src/i18n.ts b/examples/nextjs-13/src/i18n.ts index cf82575..d02210e 100644 --- a/examples/nextjs-13/src/i18n.ts +++ b/examples/nextjs-13/src/i18n.ts @@ -1,5 +1,6 @@ import { i18n, Messages } from '@lingui/core'; import { useRouter } from 'next/router'; +import { useEffect } from 'react'; export const locales = [ { twoLettersCode: 'en', label: 'English' }, @@ -14,7 +15,25 @@ export async function loadCatalog(locale: string) { export function useLinguiInit(messages: Messages) { const router = useRouter() const locale = router.locale || router.defaultLocale! - i18n.loadAndActivate(locale, messages, false); + const isClient = typeof window !== 'undefined' - return i18n; + if (!isClient && locale !== i18n.locale) { + // there is single instance of i18n on the server + // note: on the server, we could have an instance of i18n per supported locale + // to avoid calling loadAndActivate for (worst case) each request, but right now that's what we do + i18n.loadAndActivate({ locale, messages }) + } + if (isClient && !i18n.locale) { + // first client render + i18n.loadAndActivate({ locale, messages }) + } + + useEffect(() => { + const localeDidChange = locale !== i18n.locale + if (localeDidChange) { + i18n.loadAndActivate({ locale, messages }) + } + }, [locale]) + + return i18n } diff --git a/examples/nextjs-13/src/pages/_app.tsx b/examples/nextjs-13/src/pages/_app.tsx index 89b357e..8b04b09 100644 --- a/examples/nextjs-13/src/pages/_app.tsx +++ b/examples/nextjs-13/src/pages/_app.tsx @@ -4,7 +4,7 @@ import { I18nProvider } from '@lingui/react'; import { useLinguiInit } from '../i18n'; export default function MyApp({ Component, pageProps, router }: AppProps) { - const i18n = useLinguiInit(pageProps.i18n); + const i18n = useLinguiInit(pageProps.translation) return ( diff --git a/examples/nextjs-13/src/pages/index.tsx b/examples/nextjs-13/src/pages/index.tsx index 85d8ef4..3e095b7 100644 --- a/examples/nextjs-13/src/pages/index.tsx +++ b/examples/nextjs-13/src/pages/index.tsx @@ -11,7 +11,7 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext): Promis props: { // we need to pass catalog to the client side to be able to **synchronously** consume it // on hydration phase. Otherwise, hydration mismatch would happend. - i18n: await loadCatalog(ctx.locale as string), + translation: await loadCatalog(ctx.locale as string), } }; } diff --git a/examples/nextjs-13/yarn.lock b/examples/nextjs-13/yarn.lock index 49da562..b114fd6 100644 --- a/examples/nextjs-13/yarn.lock +++ b/examples/nextjs-13/yarn.lock @@ -397,27 +397,26 @@ "@jridgewell/resolve-uri" "3.1.0" "@jridgewell/sourcemap-codec" "1.4.14" -"@lingui/babel-plugin-extract-messages@^4.0.0-next.3": - version "4.0.0-next.3" - resolved "https://registry.yarnpkg.com/@lingui/babel-plugin-extract-messages/-/babel-plugin-extract-messages-4.0.0-next.3.tgz#1667ad9e23ab93bd5f175a96441f7545686a2822" - integrity sha512-/NTFzEkpSW7GGsD5PPpLEOQqifbhXcU2OASbb0bnG1NhGe0KdFVMIsIO/d2RHPGXidLDdS6Q5eO/iDmcK1mrNQ== - dependencies: - "@babel/runtime" "^7.20.13" +"@lingui/babel-plugin-extract-messages@4.7.0": + version "4.7.0" + resolved "https://registry.yarnpkg.com/@lingui/babel-plugin-extract-messages/-/babel-plugin-extract-messages-4.7.0.tgz#cd1de537750eabf3aaa4855966f903fff6186405" + integrity sha512-CROHpjSqLy71aGDskl5wFk47cCuEAsY1etAt6tDkq0iuHwpSebJpzSN58gQJybRTCqYA+3PTkqCADoeSvcTwRA== -"@lingui/cli@^4.0.0-next.3": - version "4.0.0-next.3" - resolved "https://registry.yarnpkg.com/@lingui/cli/-/cli-4.0.0-next.3.tgz#518984d62299d5db4aa02b11f70afa3c28b66d81" - integrity sha512-FG8BcKOUf+UdGp9ho7kebgjbQyRe6SEydZ2CzLQVNgxgNowTqBwygnC5/13rElx1X1vJUR42Lx4OOui2r+vcbg== +"@lingui/cli@4.7.0", "@lingui/cli@^4.7.0": + version "4.7.0" + resolved "https://registry.yarnpkg.com/@lingui/cli/-/cli-4.7.0.tgz#3ea0b203271f38f78b7eb6f0f7f72def586f4977" + integrity sha512-XGKGZOE5RF+Q74vCRP5gmiAidhwEbzSPsaZWYIAEuG8Oleo1saXAJJm5iKpoiOOTxl6ME9xp0nfIMmL2NCA1Dw== dependencies: "@babel/core" "^7.21.0" "@babel/generator" "^7.21.1" "@babel/parser" "^7.21.2" "@babel/runtime" "^7.21.0" "@babel/types" "^7.21.2" - "@lingui/babel-plugin-extract-messages" "^4.0.0-next.3" - "@lingui/conf" "^4.0.0-next.3" - "@lingui/core" "^4.0.0-next.3" - "@lingui/format-po" "^4.0.0-next.3" + "@lingui/babel-plugin-extract-messages" "4.7.0" + "@lingui/conf" "4.7.0" + "@lingui/core" "4.7.0" + "@lingui/format-po" "4.7.0" + "@lingui/message-utils" "4.7.0" babel-plugin-macros "^3.0.1" chalk "^4.1.0" chokidar "3.5.1" @@ -431,16 +430,17 @@ micromatch "4.0.2" normalize-path "^3.0.0" ora "^5.1.0" + pathe "^1.1.0" pkg-up "^3.1.0" pofile "^1.1.4" - pseudolocale "^1.1.0" + pseudolocale "^2.0.0" ramda "^0.27.1" source-map "^0.8.0-beta.0" -"@lingui/conf@^4.0.0-next.3": - version "4.0.0-next.3" - resolved "https://registry.yarnpkg.com/@lingui/conf/-/conf-4.0.0-next.3.tgz#6ce046fa469f3429a2276694a99914f7eb305098" - integrity sha512-0Zq5vWvowAVXFiod5i6ous5gP6Q397t+/Vk+E0jXZ1EhQTSuSFC+SAR/K8h/tG1Wi3M6RdxT4zUIBWDhHongrw== +"@lingui/conf@4.7.0": + version "4.7.0" + resolved "https://registry.yarnpkg.com/@lingui/conf/-/conf-4.7.0.tgz#c088346fa61da698e5f68617501913291cee47fd" + integrity sha512-j5prZL9PEFfQU7jtXrNIAGWB89KQkjEdYENwwdZyWQ9ZJkp8tcNqcYMTtqcU7vMh2lOJdu4WVuvjvnOHMO9RHQ== dependencies: "@babel/runtime" "^7.20.13" chalk "^4.1.0" @@ -449,55 +449,65 @@ jiti "^1.17.1" lodash.get "^4.4.2" -"@lingui/core@^4.0.0-next.3": - version "4.0.0-next.3" - resolved "https://registry.yarnpkg.com/@lingui/core/-/core-4.0.0-next.3.tgz#caab11b3f514109278febff7820d74d3259fea1c" - integrity sha512-4TYpH/JuBSNAgw1KGCx+wQgWDOXFfE3Cf0Eo4dxCvvlvydPTtbXNFZ0PGwe9B3FS7m77x2x1etm43t/35HRNiw== +"@lingui/core@4.7.0", "@lingui/core@^4.7.0": + version "4.7.0" + resolved "https://registry.yarnpkg.com/@lingui/core/-/core-4.7.0.tgz#27957dd9ed599cedb5bebb2248b4254502e89e2e" + integrity sha512-lr6CMDRztFgS5qna9pLA/MPZRgujN9SCIoQ1LvGZem94U4Qc7ptSwAG1LIET9b3qxRXJm5XOTrq0HefN2Qm1IA== dependencies: "@babel/runtime" "^7.20.13" - "@messageformat/parser" "^5.0.0" + "@lingui/message-utils" "4.7.0" + unraw "^3.0.0" -"@lingui/format-po@^4.0.0-next.3": - version "4.0.0-next.3" - resolved "https://registry.yarnpkg.com/@lingui/format-po/-/format-po-4.0.0-next.3.tgz#7ccde6fb4d2c1dbdb4354f5b243ac0b7e8858907" - integrity sha512-PGpuVF6Wc8c4g9WRnBki5l57UUm0ZkYaM860Fv1wtNfYL0m2GVwTjCWY3KnZHqPz3TbquOuu1/z0KHxSW7HlKQ== +"@lingui/format-po@4.7.0": + version "4.7.0" + resolved "https://registry.yarnpkg.com/@lingui/format-po/-/format-po-4.7.0.tgz#6d050dba6a5f8da4d3e8ba28836ff4748f26aa64" + integrity sha512-ptUp9nRt6mB9o82O61WzF8c2My/nfMv4cFt+L1oe5XA/+WLDEoOD2eEhu2PLd+/V6rtnnhqQjp3DzoQZ2I/HfA== dependencies: - "@lingui/cli" "^4.0.0-next.3" - "@lingui/conf" "^4.0.0-next.3" + "@lingui/conf" "4.7.0" + "@lingui/message-utils" "4.7.0" date-fns "^2.29.3" pofile "^1.1.4" -"@lingui/loader@^4.0.0-next.3": - version "4.0.0-next.3" - resolved "https://registry.yarnpkg.com/@lingui/loader/-/loader-4.0.0-next.3.tgz#a31403a08cf88466ad1c60d92cb42abc732f63b6" - integrity sha512-ii07xUMYoljJ1wYt9oRwl04Jvm0li+2JTK8W7+ltkwHL3FAvCqY9h7lKCnspBMNN91SfD6kfbUddVbcjPvBI+A== +"@lingui/loader@^4.7.0": + version "4.7.0" + resolved "https://registry.yarnpkg.com/@lingui/loader/-/loader-4.7.0.tgz#1c45a5a99b28b830823b0b44a6588485942cde0e" + integrity sha512-j3yVbwMMHTBMBs1dikvES/W2V6nKKwnOTnj5dkgMDYRwKLSUPdLU2m1BcG8eIQh6EyPbHgOFosUzVF1tB75TeA== dependencies: "@babel/runtime" "^7.20.13" - "@lingui/cli" "^4.0.0-next.3" - "@lingui/conf" "^4.0.0-next.3" + "@lingui/cli" "4.7.0" + "@lingui/conf" "4.7.0" -"@lingui/macro@^4.0.0-next.3": - version "4.0.0-next.3" - resolved "https://registry.yarnpkg.com/@lingui/macro/-/macro-4.0.0-next.3.tgz#41e8b73dd3ddc06e90b03689fe686b63c60170ae" - integrity sha512-3AUxi/xHudJUyoHnLACQACZwFyM0mTH2YPQq52mXx4hp9BE5FrhOmmcUHoiS/BaRYdykCthHDqz3PCtyTBYULA== +"@lingui/macro@^4.7.0": + version "4.7.0" + resolved "https://registry.yarnpkg.com/@lingui/macro/-/macro-4.7.0.tgz#bbb0c79eece56f95204bc810b7e3585f7e632a4d" + integrity sha512-r2I99yudMJ0pbTySoVmN0l/U4fF7dgsVZZeEpF82jwLwS+ND9dkJswYXUOuF6RPr5oVi2NpkJ0M4ZejDfCAAoA== dependencies: "@babel/runtime" "^7.20.13" "@babel/types" "^7.20.7" - "@lingui/cli" "^4.0.0-next.3" - "@lingui/conf" "^4.0.0-next.3" + "@lingui/conf" "4.7.0" + "@lingui/core" "4.7.0" + "@lingui/message-utils" "4.7.0" + +"@lingui/message-utils@4.7.0": + version "4.7.0" + resolved "https://registry.yarnpkg.com/@lingui/message-utils/-/message-utils-4.7.0.tgz#48f72b924000fe70e4feb89a13b49cfc41a3a397" + integrity sha512-JrGdxORRzefOh9qAkQYJchh+ehnWlLK9/kOG9x6VkV9aekWLk8vCVbXBh4Q707sTcIgCki8KwT1yuBMwZ2YBEg== + dependencies: + "@messageformat/parser" "^5.0.0" + js-sha256 "^0.10.1" -"@lingui/react@^4.0.0-next.3": - version "4.0.0-next.3" - resolved "https://registry.yarnpkg.com/@lingui/react/-/react-4.0.0-next.3.tgz#10343bef2efc3a171906b0b8013faaa5254534cf" - integrity sha512-IZSmEDDWqxbMqHut3HJg66dBKSCiIVCiuADSQRfg6RI1TJUc+OCMD0god5aR7/FFMTSJ0md6KGU0Lj2/wC5n6Q== +"@lingui/react@^4.7.0": + version "4.7.0" + resolved "https://registry.yarnpkg.com/@lingui/react/-/react-4.7.0.tgz#521cc1e21fa9c3830caf962e03f8d2f44397f6be" + integrity sha512-a9SR+U6hobOL+/GPR11gObg9cOzQ4mcGhtUbXQx/WjlWDsau29oXna4vA5pRYiq58dpPXYrsg+ZENsXxNERCwA== dependencies: "@babel/runtime" "^7.20.13" - "@lingui/core" "^4.0.0-next.3" + "@lingui/core" "4.7.0" -"@lingui/swc-plugin@^4.0.0-next.2": - version "4.0.0-next.2" - resolved "https://registry.yarnpkg.com/@lingui/swc-plugin/-/swc-plugin-4.0.0-next.2.tgz#e929dc1f66dfdc41e2a0b5033e81aac618bf72ab" - integrity sha512-IeWUrkGJcxtFZWe3G1x+hkpjwVlrcWDWVX906O7E5f84v2hfORxP4WR9BbXV5522XR0e7PiCfxzHXpIwRmJIcA== +"@lingui/swc-plugin@4.0.6": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@lingui/swc-plugin/-/swc-plugin-4.0.6.tgz#be5cffe5071661ac6b5490227deef895888411e5" + integrity sha512-jW32d+t/faHGrgzZXzGbDmadElqHQ9FvGf2aoq7YelXBPG9cf/lAkZlpxNjAzRhbscupB0YPtBjC49XoIIzKMg== "@messageformat/parser@^5.0.0": version "5.0.0" @@ -506,90 +516,70 @@ dependencies: moo "^0.5.1" -"@next/env@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/env/-/env-13.1.2.tgz#4f13e3e9d44bb17fdc1d4543827459097035f10f" - integrity sha512-PpT4UZIX66VMTqXt4HKEJ+/PwbS+tWmmhZlazaws1a+dbUA5pPdjntQ46Jvj616i3ZKN9doS9LHx3y50RLjAWg== - -"@next/font@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/font/-/font-13.1.2.tgz#ee809ca03113d0e73495ac5d0e2a978885d0d97e" - integrity sha512-NXGXGFGiOKEnvBIHq9cdFTKbHO2/4B3Zd9K27M7j1DioIQVar7oVRqZMYs0h3XMVEZLwjjkdAtqRPCzzd3RtXg== - -"@next/swc-android-arm-eabi@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-13.1.2.tgz#eacc7757b480a8150c1aea748bf7892a4fc62f64" - integrity sha512-7mRz1owoGsbfIcdOJA3kk7KEwPZ+OvVT1z9DkR/yru4QdVLF69h/1SHy0vlUNQMxDRllabhxCfkoZCB34GOGAg== - -"@next/swc-android-arm64@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-13.1.2.tgz#f3d41339b4f15852a589fe11820408572a512a27" - integrity sha512-mgjZ2eJSayovQm1LcE54BLSI4jjnnnLtq5GY5g+DdPuUiCT644gKtjZ/w2BQvuIecCqqBO+Ph9yzo/wUTq7NLg== - -"@next/swc-darwin-arm64@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.1.2.tgz#1a20a2262aa7a250517c9a7f2efd6ac6273f8c63" - integrity sha512-RikoQqy109r2222UJlyGs4dZw2BibkfPqpeFdW5JEGv+L2PStlHID8DwyVYbmHfQ0VIBGvbf/NAUtFakAWlhwg== - -"@next/swc-darwin-x64@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.1.2.tgz#242bb321676bd88f4cffa7eae3283215cd1185ce" - integrity sha512-JbDZjaTvL8gyPC5TAH6OnD4jmXPkyUxRYPvu08ZmhT/XAFBb/Cso0BdXyDax/BPCG70mimP9d3hXNKNq+A0VtQ== - -"@next/swc-freebsd-x64@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-13.1.2.tgz#9589f7f2bebfa43a744c9e41654e743b38a318b1" - integrity sha512-ax4j8VrdFQ/xc3W7Om0u1vnDxVApQHKsChBbAMynCrnycZmpbqK4MZu4ZkycT+mx2eccCiqZROpbzDbEdPosEw== - -"@next/swc-linux-arm-gnueabihf@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-13.1.2.tgz#8935b0c8f232e36c3d88cd1e1023afa8d51f7260" - integrity sha512-NcRHTesnCxnUvSJa637PQJffBBkmqi5XS/xVWGY7dI6nyJ+pC96Oj7kd+mcjnFUQI5lHKbg39qBWKtOzbezc4w== - -"@next/swc-linux-arm64-gnu@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.1.2.tgz#3482f72e580cdfc4bbec2e55dd55d5a9bdf7038b" - integrity sha512-AxJdjocLtPrsBY4P2COSBIc3crT5bpjgGenNuINoensOlXhBkYM0aRDYZdydwXOhG+kN2ngUvfgitop9pa204w== - -"@next/swc-linux-arm64-musl@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.1.2.tgz#3b7ca70fd813c77f618ee34a150b977cc15af9a3" - integrity sha512-JmNimDkcCRq7P5zpkdqeaSZ69qKDntEPtyIaMNWqy5M0WUJxGim0Fs6Qzxayiyvuuh9Guxks4woQ/j/ZvX/c8Q== - -"@next/swc-linux-x64-gnu@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.1.2.tgz#51a7a889e88eb87a5ce9658842f9e8422e037ead" - integrity sha512-TsLsjZwUlgmvI42neTuIoD6K9RlXCUzqPtvIClgXxVO0um0DiZwK+M+0zX/uVXhMVphfPY2c5YeR1zFSIONY4A== - -"@next/swc-linux-x64-musl@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.1.2.tgz#4c0dd08a6f8a7e4881c3551de29259b3cfe86e27" - integrity sha512-eSkyXgCXydEFPTkcncQOGepafedPte6JT/OofB9uvruucrrMVBagCASOuPxodWEMrlfEKSXVnExMKIlfmQMD7A== - -"@next/swc-win32-arm64-msvc@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.1.2.tgz#589fcce82f9f7224d2399d8d7bcba9097bb50dad" - integrity sha512-DmXFaRTgt2KrV9dmRLifDJE+cYiutHVFIw5/C9BtnwXH39uf3YbPxeD98vNrtqqqZVVLXY/1ySaSIwzYnqeY9g== - -"@next/swc-win32-ia32-msvc@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.1.2.tgz#9be05202730530631b51d7753d447dfe86095c9f" - integrity sha512-3+nBkuFs/wT+lmRVQNH5SyDT7I4vUlNPntosEaEP63FuYQdPLaxz0GvcR66MdFSFh2fsvazpe4wciOwVS4FItQ== - -"@next/swc-win32-x64-msvc@13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.1.2.tgz#c7e75033e8b8f497768c7b462ac642830141bb00" - integrity sha512-avsyveEvcvH42PvKjR4Pb8JlLttuGURr2H3ZhS2b85pHOiZ7yjH3rMUoGnNzuLMApyxYaCvd4MedPrLhnNhkog== +"@next/env@14.1.0": + version "14.1.0" + resolved "https://registry.yarnpkg.com/@next/env/-/env-14.1.0.tgz#43d92ebb53bc0ae43dcc64fb4d418f8f17d7a341" + integrity sha512-Py8zIo+02ht82brwwhTg36iogzFqGLPXlRGKQw5s+qP/kMNc4MAyDeEwBKDijk6zTIbegEgu8Qy7C1LboslQAw== + +"@next/font@14.1.0": + version "14.1.0" + resolved "https://registry.yarnpkg.com/@next/font/-/font-14.1.0.tgz#6f6c4510e36dad505cf64403f92f235d2838d265" + integrity sha512-9hJ7bEYDI7UGQ1a++5zRD3F2VUu9NIaK5Hro/uL9bvFFs6b0Cy1OdLtLQHCIQE7sSMt8Rbu4VtcbnlubsseelA== + +"@next/swc-darwin-arm64@14.1.0": + version "14.1.0" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.1.0.tgz#70a57c87ab1ae5aa963a3ba0f4e59e18f4ecea39" + integrity sha512-nUDn7TOGcIeyQni6lZHfzNoo9S0euXnu0jhsbMOmMJUBfgsnESdjN97kM7cBqQxZa8L/bM9om/S5/1dzCrW6wQ== + +"@next/swc-darwin-x64@14.1.0": + version "14.1.0" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-14.1.0.tgz#0863a22feae1540e83c249384b539069fef054e9" + integrity sha512-1jgudN5haWxiAl3O1ljUS2GfupPmcftu2RYJqZiMJmmbBT5M1XDffjUtRUzP4W3cBHsrvkfOFdQ71hAreNQP6g== + +"@next/swc-linux-arm64-gnu@14.1.0": + version "14.1.0" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.1.0.tgz#893da533d3fce4aec7116fe772d4f9b95232423c" + integrity sha512-RHo7Tcj+jllXUbK7xk2NyIDod3YcCPDZxj1WLIYxd709BQ7WuRYl3OWUNG+WUfqeQBds6kvZYlc42NJJTNi4tQ== + +"@next/swc-linux-arm64-musl@14.1.0": + version "14.1.0" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.1.0.tgz#d81ddcf95916310b8b0e4ad32b637406564244c0" + integrity sha512-v6kP8sHYxjO8RwHmWMJSq7VZP2nYCkRVQ0qolh2l6xroe9QjbgV8siTbduED4u0hlk0+tjS6/Tuy4n5XCp+l6g== + +"@next/swc-linux-x64-gnu@14.1.0": + version "14.1.0" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.1.0.tgz#18967f100ec19938354332dcb0268393cbacf581" + integrity sha512-zJ2pnoFYB1F4vmEVlb/eSe+VH679zT1VdXlZKX+pE66grOgjmKJHKacf82g/sWE4MQ4Rk2FMBCRnX+l6/TVYzQ== + +"@next/swc-linux-x64-musl@14.1.0": + version "14.1.0" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.1.0.tgz#77077cd4ba8dda8f349dc7ceb6230e68ee3293cf" + integrity sha512-rbaIYFt2X9YZBSbH/CwGAjbBG2/MrACCVu2X0+kSykHzHnYH5FjHxwXLkcoJ10cX0aWCEynpu+rP76x0914atg== + +"@next/swc-win32-arm64-msvc@14.1.0": + version "14.1.0" + resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.1.0.tgz#5f0b8cf955644104621e6d7cc923cad3a4c5365a" + integrity sha512-o1N5TsYc8f/HpGt39OUQpQ9AKIGApd3QLueu7hXk//2xq5Z9OxmV6sQfNp8C7qYmiOlHYODOGqNNa0e9jvchGQ== + +"@next/swc-win32-ia32-msvc@14.1.0": + version "14.1.0" + resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.1.0.tgz#21f4de1293ac5e5a168a412b139db5d3420a89d0" + integrity sha512-XXIuB1DBRCFwNO6EEzCTMHT5pauwaSj4SWs7CYnME57eaReAKBXCnkUE80p/pAZcewm7hs+vGvNqDPacEXHVkw== + +"@next/swc-win32-x64-msvc@14.1.0": + version "14.1.0" + resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.1.0.tgz#e561fb330466d41807123d932b365cf3d33ceba2" + integrity sha512-9WEbVRRAqJ3YFVqEZIxUqkiO8l1nool1LmNxygr5HWF8AcSYsEpneUDhmjUVJEzO2A04+oPtZdombzzPPkTtgg== "@sinclair/typebox@^0.25.16": version "0.25.24" resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.25.24.tgz#8c7688559979f7079aacaf31aa881c3aa410b718" integrity sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ== -"@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== +"@swc/helpers@0.5.2": + version "0.5.2" + resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.2.tgz#85ea0c76450b61ad7d10a37050289eded783c27d" + integrity sha512-E4KcWTpoLHqwPHLxidpOqQbcrZVgi0rsmmZXUle1jXmJfuIf/UWpczUJ7MZZ5tlxytgJXyp0w4PGkkeLiuIdZw== dependencies: tslib "^2.4.0" @@ -770,6 +760,13 @@ buffer@^5.5.0: base64-js "^1.3.1" ieee754 "^1.1.13" +busboy@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893" + integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA== + dependencies: + streamsearch "^1.1.0" + callsites@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" @@ -780,11 +777,16 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001400, caniuse-lite@^1.0.30001406: +caniuse-lite@^1.0.30001400: version "1.0.30001444" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001444.tgz#c0a530776eb44d933b493de1d05346f2527b30fc" integrity sha512-ecER9xgJQVMqcrxThKptsW0pPxSae8R2RB87LNa+ivW9ppNWRHEplXcDzkCOP4LYWGj8hunXLqaiC41iBATNyg== +caniuse-lite@^1.0.30001579: + version "1.0.30001585" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001585.tgz#0b4e848d84919c783b2a41c13f7de8ce96744401" + integrity sha512-yr2BWR1yLXQ8fMpdS/4ZZXpseBgE7o4g41x3a6AJOqZuOi+iE/WdJYAuZ6Y95i4Ohd2Y+9MzIWRR+uGABH4s3Q== + chalk@^2.0.0: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" @@ -885,11 +887,6 @@ colors@1.0.3: resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b" integrity sha512-pFGrxThWcWQ2MsAz6RtgeWe4NK2kUE1WfsrvvlctdII745EW9I0yflqhe7++M5LEc7bV2c/9/5zc8sFcpL0Drw== -commander@*: - version "9.5.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-9.5.0.tgz#bc08d1eb5cedf7ccb797a96199d41c7bc3e60d30" - integrity sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ== - commander@^10.0.0: version "10.0.0" resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.0.tgz#71797971162cd3cf65f0b9d24eb28f8d303acdf1" @@ -1084,6 +1081,11 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== +graceful-fs@^4.2.11: + version "4.2.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" + integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== + has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -1226,6 +1228,11 @@ jiti@^1.17.1: resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.17.1.tgz#264daa43ee89a03e8be28c3d712ccc4eb9f1e8ed" integrity sha512-NZIITw8uZQFuzQimqjUxIrIcEdxYDFIe/0xYfIlVXTkiBjjyBEvgasj5bb0/cHtPRD/NziPbT312sFrkI5ALpw== +js-sha256@^0.10.1: + version "0.10.1" + resolved "https://registry.yarnpkg.com/js-sha256/-/js-sha256-0.10.1.tgz#b40104ba1368e823fdd5f41b66b104b15a0da60d" + integrity sha512-5obBtsz9301ULlsgggLg542s/jqtddfOpV5KJc4hajc9JV8GeY2gZHSVpYBn4nWqAUTJ9v+xwtbJ1mIBgIH5Vw== + "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -1348,35 +1355,33 @@ mute-stream@0.0.8: resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== -nanoid@^3.3.4: - version "3.3.4" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" - integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== - -next@13.1.2: - version "13.1.2" - resolved "https://registry.yarnpkg.com/next/-/next-13.1.2.tgz#4105b0cf238bb2f58d5e12dbded8cabb9785f2d9" - integrity sha512-Rdnnb2YH///w78FEOR/IQ6TXga+qpth4OqFSem48ng1PYYKr6XBsIk1XVaRcIGM3o6iiHnun0nJvkJHDf+ICyQ== - dependencies: - "@next/env" "13.1.2" - "@swc/helpers" "0.4.14" - caniuse-lite "^1.0.30001406" - postcss "8.4.14" +nanoid@^3.3.6: + version "3.3.7" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8" + integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g== + +next@14.1.0: + version "14.1.0" + resolved "https://registry.yarnpkg.com/next/-/next-14.1.0.tgz#b31c0261ff9caa6b4a17c5af019ed77387174b69" + integrity sha512-wlzrsbfeSU48YQBjZhDzOwhWhGsy+uQycR8bHAOt1LY1bn3zZEcDyHQOEoN3aWzQ8LHCAJ1nqrWCc9XF2+O45Q== + dependencies: + "@next/env" "14.1.0" + "@swc/helpers" "0.5.2" + busboy "1.6.0" + caniuse-lite "^1.0.30001579" + graceful-fs "^4.2.11" + postcss "8.4.31" styled-jsx "5.1.1" optionalDependencies: - "@next/swc-android-arm-eabi" "13.1.2" - "@next/swc-android-arm64" "13.1.2" - "@next/swc-darwin-arm64" "13.1.2" - "@next/swc-darwin-x64" "13.1.2" - "@next/swc-freebsd-x64" "13.1.2" - "@next/swc-linux-arm-gnueabihf" "13.1.2" - "@next/swc-linux-arm64-gnu" "13.1.2" - "@next/swc-linux-arm64-musl" "13.1.2" - "@next/swc-linux-x64-gnu" "13.1.2" - "@next/swc-linux-x64-musl" "13.1.2" - "@next/swc-win32-arm64-msvc" "13.1.2" - "@next/swc-win32-ia32-msvc" "13.1.2" - "@next/swc-win32-x64-msvc" "13.1.2" + "@next/swc-darwin-arm64" "14.1.0" + "@next/swc-darwin-x64" "14.1.0" + "@next/swc-linux-arm64-gnu" "14.1.0" + "@next/swc-linux-arm64-musl" "14.1.0" + "@next/swc-linux-x64-gnu" "14.1.0" + "@next/swc-linux-x64-musl" "14.1.0" + "@next/swc-win32-arm64-msvc" "14.1.0" + "@next/swc-win32-ia32-msvc" "14.1.0" + "@next/swc-win32-x64-msvc" "14.1.0" node-releases@^2.0.6: version "2.0.8" @@ -1478,6 +1483,11 @@ path-type@^4.0.0: resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== +pathe@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/pathe/-/pathe-1.1.2.tgz#6c4cb47a945692e48a1ddd6e4094d170516437ec" + integrity sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ== + picocolors@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" @@ -1500,12 +1510,12 @@ pofile@^1.1.4: resolved "https://registry.yarnpkg.com/pofile/-/pofile-1.1.4.tgz#eab7e29f5017589b2a61b2259dff608c0cad76a2" integrity sha512-r6Q21sKsY1AjTVVjOuU02VYKVNQGJNQHjTIvs4dEbeuuYfxgYk/DGD2mqqq4RDaVkwdSq0VEtmQUOPe/wH8X3g== -postcss@8.4.14: - version "8.4.14" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.14.tgz#ee9274d5622b4858c1007a74d76e42e56fd21caf" - integrity sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig== +postcss@8.4.31: + version "8.4.31" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.31.tgz#92b451050a9f914da6755af352bdc0192508656d" + integrity sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ== dependencies: - nanoid "^3.3.4" + nanoid "^3.3.6" picocolors "^1.0.0" source-map-js "^1.0.2" @@ -1518,12 +1528,12 @@ pretty-format@^29.4.3: ansi-styles "^5.0.0" react-is "^18.0.0" -pseudolocale@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/pseudolocale/-/pseudolocale-1.2.0.tgz#787021d9a11abfdd8f084eabe0e59845ba571453" - integrity sha512-k0OQFvIlvpRdzR0dPVrrbWX7eE9EaZ6gpZtTlFSDi1Gf9tMy9wiANCNu7JZ0drcKgUri/39a2mBbH0goiQmrmQ== +pseudolocale@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pseudolocale/-/pseudolocale-2.0.0.tgz#4dbe725a6b5a6fb71aba8ba64ae2be71f5267316" + integrity sha512-g1K9tCQYY4e3UGtnW8qs3kGWAOONxt7i5wuOFvf3N1EIIRhiLVIhZ9AM/ZyGTxsp231JbFywJU/EbJ5ZoqnZdg== dependencies: - commander "*" + commander "^10.0.0" punycode@^2.1.0: version "2.3.0" @@ -1649,6 +1659,11 @@ source-map@^0.8.0-beta.0: dependencies: whatwg-url "^7.0.0" +streamsearch@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" + integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== + string-width@^4.1.0: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" @@ -1749,6 +1764,11 @@ typescript@4.9.4: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78" integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg== +unraw@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/unraw/-/unraw-3.0.0.tgz#73443ed70d2ab09ccbac2b00525602d5991fbbe3" + integrity sha512-08/DA66UF65OlpUDIQtbJyrqTR0jTAlJ+jsnkQ4jxR7+K5g5YG1APZKQSMCE1vqqmD+2pv6+IdEjmopFatacvg== + update-browserslist-db@^1.0.9: version "1.0.10" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz#0f54b876545726f17d00cd9a2561e6dade943ff3"