From ab5a7ca691f1ce96ac4c33f7874345fe679233e8 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Thu, 3 Oct 2024 14:17:33 +0300 Subject: [PATCH] docs: fix infinite scroll, update next.js, other fixes (#9441) * update nextjs * badge + scroll fixes --- www/README.md | 10 +- www/apps/api-reference/app/globals.css | 8 + www/apps/api-reference/package.json | 6 +- www/apps/book/app/globals.css | 8 + www/apps/book/package.json | 4 +- www/apps/resources/app/globals.css | 8 + www/apps/resources/package.json | 4 +- www/apps/ui/package.json | 2 +- www/apps/ui/src/styles/globals.css | 8 + www/apps/user-guide/app/globals.css | 45 +- www/apps/user-guide/package.json | 4 +- www/packages/docs-ui/package.json | 4 +- .../src/components/Icons/ShadedBg/index.tsx | 70 +-- www/packages/eslint-config-docs/docusaurus.js | 14 - www/packages/eslint-config-docs/package.json | 3 +- www/packages/tailwind/base.tailwind.config.js | 2 +- www/packages/tsconfig/docusaurus.json | 14 - www/packages/tsconfig/package.json | 3 - www/turbo.json | 1 - www/yarn.lock | 546 +++--------------- 20 files changed, 179 insertions(+), 585 deletions(-) delete mode 100644 www/packages/eslint-config-docs/docusaurus.js delete mode 100644 www/packages/tsconfig/docusaurus.json diff --git a/www/README.md b/www/README.md index 4365bba9ed416..5c00aaa05c50c 100644 --- a/www/README.md +++ b/www/README.md @@ -1,11 +1,3 @@ # Documentation Resources -This directory holds the code and content of both the [documentation](https://docs.medusajs.com/) and [API reference](https://docs.medusajs.com/api/admin). - -## docs Directory - -The `docs` directory holds the code and content of the documentation website. The website is built with [Docusaurus v2](https://docusaurus.io/). - -### api-reference Directory - -The `api-reference` directory holds the code and OpenApi Specs of the API Reference. The API Reference is built with [Next.js](https://nextjs.org/). +This directory holds the code and content of all documentation projects \ No newline at end of file diff --git a/www/apps/api-reference/app/globals.css b/www/apps/api-reference/app/globals.css index 1c1d53b503cf7..a2b1539920be1 100644 --- a/www/apps/api-reference/app/globals.css +++ b/www/apps/api-reference/app/globals.css @@ -43,6 +43,14 @@ @apply bg-medusa-bg-highlight; } + * { + scrollbar-color: var(--docs-border-base) var(--docs-bg-base); + } + + aside * { + scrollbar-color: var(--docs-border-base) var(--docs-bg-subtle); + } + body[data-modal="opened"] { @apply !overflow-hidden; } diff --git a/www/apps/api-reference/package.json b/www/apps/api-reference/package.json index 9157c91e8ea99..18e0a9cd481b3 100644 --- a/www/apps/api-reference/package.json +++ b/www/apps/api-reference/package.json @@ -17,7 +17,7 @@ "@mdx-js/react": "^3.0.0", "@medusajs/icons": "preview", "@medusajs/ui": "^3.0.0", - "@next/mdx": "14.2.3", + "@next/mdx": "14.2.14", "@readme/openapi-parser": "^2.5.0", "@types/mapbox__rehype-prism": "^0.8.0", "@types/mdx": "^2.0.5", @@ -33,7 +33,7 @@ "jsdom": "^22.1.0", "json-schema": "^0.4.0", "json-stringify-pretty-compact": "^4.0.0", - "next": "^14.2.3", + "next": "^14.2.14", "next-mdx-remote": "^4.4.1", "openapi-sampler": "^1.3.1", "openapi-types": "^12.1.3", @@ -53,7 +53,7 @@ "yaml": "^2.3.1" }, "devDependencies": { - "@next/bundle-analyzer": "^14.2.3", + "@next/bundle-analyzer": "^14.2.14", "@types/jsdom": "^21.1.1", "@types/pluralize": "^0.0.33", "types": "*" diff --git a/www/apps/book/app/globals.css b/www/apps/book/app/globals.css index e47e019b6459c..abdd9847fb297 100644 --- a/www/apps/book/app/globals.css +++ b/www/apps/book/app/globals.css @@ -16,6 +16,14 @@ @apply bg-medusa-bg-highlight; } + * { + scrollbar-color: var(--docs-border-base) var(--docs-bg-base); + } + + aside * { + scrollbar-color: var(--docs-border-base) var(--docs-bg-subtle); + } + body[data-modal="opened"] { @apply !overflow-hidden; } diff --git a/www/apps/book/package.json b/www/apps/book/package.json index 9621da352e02b..8d866b5447ac1 100644 --- a/www/apps/book/package.json +++ b/www/apps/book/package.json @@ -16,10 +16,10 @@ "dependencies": { "@mdx-js/loader": "^3.0.0", "@mdx-js/react": "^3.0.0", - "@next/mdx": "^14.2.3", + "@next/mdx": "^14.2.14", "clsx": "^2.1.0", "docs-ui": "*", - "next": "14.2.3", + "next": "14.2.14", "react": "^18.2.0", "react-dom": "^18.2.0", "rehype-mdx-code-props": "^2.0.0", diff --git a/www/apps/resources/app/globals.css b/www/apps/resources/app/globals.css index e47e019b6459c..abdd9847fb297 100644 --- a/www/apps/resources/app/globals.css +++ b/www/apps/resources/app/globals.css @@ -16,6 +16,14 @@ @apply bg-medusa-bg-highlight; } + * { + scrollbar-color: var(--docs-border-base) var(--docs-bg-base); + } + + aside * { + scrollbar-color: var(--docs-border-base) var(--docs-bg-subtle); + } + body[data-modal="opened"] { @apply !overflow-hidden; } diff --git a/www/apps/resources/package.json b/www/apps/resources/package.json index 7cde5d5279246..6506d7eeda776 100644 --- a/www/apps/resources/package.json +++ b/www/apps/resources/package.json @@ -16,10 +16,10 @@ "@mdx-js/loader": "^3.0.1", "@mdx-js/react": "^3.0.1", "@medusajs/icons": "preview", - "@next/mdx": "^14.2.3", + "@next/mdx": "^14.2.14", "clsx": "^2.1.0", "docs-ui": "*", - "next": "14.2.3", + "next": "14.2.14", "react": "^18.2.0", "react-dom": "^18.2.0", "rehype-mdx-code-props": "^2.0.0", diff --git a/www/apps/ui/package.json b/www/apps/ui/package.json index 402c5212301d8..9b3a59f66f34f 100644 --- a/www/apps/ui/package.json +++ b/www/apps/ui/package.json @@ -30,7 +30,7 @@ "docs-ui": "*", "eslint-config-docs": "*", "mdast-util-toc": "^7.0.0", - "next": "^14.2.3", + "next": "^14.2.14", "next-contentlayer": "^0.3.4", "next-themes": "^0.2.1", "postcss": "8.4.27", diff --git a/www/apps/ui/src/styles/globals.css b/www/apps/ui/src/styles/globals.css index b1170c9cdce3c..109767840fe1c 100644 --- a/www/apps/ui/src/styles/globals.css +++ b/www/apps/ui/src/styles/globals.css @@ -18,6 +18,14 @@ @apply !bg-medusa-contrast-bg-highlight; } + * { + scrollbar-color: var(--docs-border-base) var(--docs-bg-base); + } + + aside * { + scrollbar-color: var(--docs-border-base) var(--docs-bg-subtle); + } + body { @apply text-ui-fg-subtle; } diff --git a/www/apps/user-guide/app/globals.css b/www/apps/user-guide/app/globals.css index 875c01e819b90..abdd9847fb297 100644 --- a/www/apps/user-guide/app/globals.css +++ b/www/apps/user-guide/app/globals.css @@ -2,32 +2,29 @@ @tailwind components; @tailwind utilities; -:root { - --foreground-rgb: 0, 0, 0; - --background-start-rgb: 214, 219, 220; - --background-end-rgb: 255, 255, 255; -} +@layer base { -@media (prefers-color-scheme: dark) { - :root { - --foreground-rgb: 255, 255, 255; - --background-start-rgb: 0, 0, 0; - --background-end-rgb: 0, 0, 0; + html { + -webkit-font-smoothing: antialiased; } -} -body { - color: rgb(var(--foreground-rgb)); - background: linear-gradient( - to bottom, - transparent, - rgb(var(--background-end-rgb)) - ) - rgb(var(--background-start-rgb)); -} + body { + @apply overflow-x-hidden; + } + + *::selection { + @apply bg-medusa-bg-highlight; + } + + * { + scrollbar-color: var(--docs-border-base) var(--docs-bg-base); + } + + aside * { + scrollbar-color: var(--docs-border-base) var(--docs-bg-subtle); + } -@layer utilities { - .text-balance { - text-wrap: balance; + body[data-modal="opened"] { + @apply !overflow-hidden; } -} +} \ No newline at end of file diff --git a/www/apps/user-guide/package.json b/www/apps/user-guide/package.json index 28056ee79d37c..890c610a16650 100644 --- a/www/apps/user-guide/package.json +++ b/www/apps/user-guide/package.json @@ -17,10 +17,10 @@ "@mdx-js/loader": "^3.0.0", "@mdx-js/react": "^3.0.0", "@medusajs/icons": "preview", - "@next/mdx": "^14.2.3", + "@next/mdx": "^14.2.14", "clsx": "^2.1.0", "docs-ui": "*", - "next": "14.2.3", + "next": "14.2.14", "react": "^18.2.0", "react-dom": "^18.2.0", "rehype-mdx-code-props": "^2.0.0", diff --git a/www/packages/docs-ui/package.json b/www/packages/docs-ui/package.json index 58df142e2e1de..78cd91dab5314 100644 --- a/www/packages/docs-ui/package.json +++ b/www/packages/docs-ui/package.json @@ -41,7 +41,7 @@ "cpy-cli": "^5.0.0", "eslint": "^8", "eslint-config-docs": "*", - "next": "14.1.0", + "next": "^14.2.14", "react": "^18.2.0", "react-dom": "^18.2.0", "rimraf": "^5.0.1", @@ -74,7 +74,7 @@ "react-google-recaptcha": "^3.1.0", "react-instantsearch": "^7.13.0", "react-markdown": "^8.0.7", - "react-medium-image-zoom": "^5.1.10", + "react-medium-image-zoom": "^5.2.10", "react-tooltip": "^5.21.3", "react-transition-group": "^4.4.5", "react-uuid": "^2.0.0", diff --git a/www/packages/docs-ui/src/components/Icons/ShadedBg/index.tsx b/www/packages/docs-ui/src/components/Icons/ShadedBg/index.tsx index 810f4ca215377..c176ee36088f8 100644 --- a/www/packages/docs-ui/src/components/Icons/ShadedBg/index.tsx +++ b/www/packages/docs-ui/src/components/Icons/ShadedBg/index.tsx @@ -45,7 +45,7 @@ export const ShadedBgIcon = ({ width="1.5" height="96" transform="rotate(45 32.3379 -66.5442)" - fill="#BFDBFE" + fill={color} /> diff --git a/www/packages/eslint-config-docs/docusaurus.js b/www/packages/eslint-config-docs/docusaurus.js deleted file mode 100644 index 70ae1f095a282..0000000000000 --- a/www/packages/eslint-config-docs/docusaurus.js +++ /dev/null @@ -1,14 +0,0 @@ -module.exports = { - extends: [ - "plugin:@docusaurus/recommended", - "google", - "./base.js", - ], - ignorePatterns: [ - "**/node_modules/**", - "**/.docusaurus/*", - "**/build/*", - ".eslintrc.js", - "babel.config.js" - ] -} \ No newline at end of file diff --git a/www/packages/eslint-config-docs/package.json b/www/packages/eslint-config-docs/package.json index 0d5649c715795..8982c6daad7d8 100644 --- a/www/packages/eslint-config-docs/package.json +++ b/www/packages/eslint-config-docs/package.json @@ -6,11 +6,10 @@ "main": "base.js", "dependencies": { "@babel/eslint-parser": "^7.22.15", - "@docusaurus/eslint-plugin": "^3.1.0", "@typescript-eslint/eslint-plugin": "^6.18.1", "@typescript-eslint/parser": "^6.18.1", "eslint-config-google": "^0.14.0", - "eslint-config-next": "latest", + "eslint-config-next": "14.2.3", "eslint-config-prettier": "^8.7.0", "eslint-config-turbo": "^1.10.12", "eslint-plugin-markdown": "^3.0.0", diff --git a/www/packages/tailwind/base.tailwind.config.js b/www/packages/tailwind/base.tailwind.config.js index 876127b7677e0..7a91a7d55d102 100644 --- a/www/packages/tailwind/base.tailwind.config.js +++ b/www/packages/tailwind/base.tailwind.config.js @@ -4,7 +4,7 @@ import presets from "./theme-presets" /** @type {import('tailwindcss').Config} */ module.exports = { presets: [require("@medusajs/ui-preset")], - darkMode: ["class", `[data-theme="dark"]`], // hooks into docusaurus' dark mode settings + darkMode: ["class", `[data-theme="dark"]`], theme: { extend: { colors: { diff --git a/www/packages/tsconfig/docusaurus.json b/www/packages/tsconfig/docusaurus.json deleted file mode 100644 index ede5cc679c524..0000000000000 --- a/www/packages/tsconfig/docusaurus.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "display": "Docusaurus", - "extends": "@docusaurus/tsconfig", - "compilerOptions": { - "jsx": "react", - "lib": [ - "es2022", - "dom", - "dom.iterable" - ], - "allowJs": true - } -} \ No newline at end of file diff --git a/www/packages/tsconfig/package.json b/www/packages/tsconfig/package.json index 90c52ae13e9d3..6efb83e14ce81 100644 --- a/www/packages/tsconfig/package.json +++ b/www/packages/tsconfig/package.json @@ -5,8 +5,5 @@ "license": "MIT", "publishConfig": { "access": "public" - }, - "dependencies": { - "@docusaurus/tsconfig": "latest" } } diff --git a/www/turbo.json b/www/turbo.json index 1df69dbc990a4..c2392e88e1daf 100644 --- a/www/turbo.json +++ b/www/turbo.json @@ -8,7 +8,6 @@ "outputs": [ ".next/**", "!.next/cache/**", - ".docusaurus/**", "build/**", "dist/**" ] diff --git a/www/yarn.lock b/www/yarn.lock index e1f9094ff8067..780625fa56950 100644 --- a/www/yarn.lock +++ b/www/yarn.lock @@ -684,25 +684,6 @@ __metadata: languageName: node linkType: hard -"@docusaurus/eslint-plugin@npm:^3.1.0": - version: 3.1.1 - resolution: "@docusaurus/eslint-plugin@npm:3.1.1" - dependencies: - "@typescript-eslint/utils": ^5.62.0 - tslib: ^2.6.0 - peerDependencies: - eslint: ">=6" - checksum: f074596b75ed1de9fb3bca89292b24afecfe0582b61b5234d8a5e5f1952f14a451bb597d178b743d7f877bb927310eecdc2459c7d730fe8e836221de7ad2741d - languageName: node - linkType: hard - -"@docusaurus/tsconfig@npm:latest": - version: 3.1.1 - resolution: "@docusaurus/tsconfig@npm:3.1.1" - checksum: 5325ae169c19e155bdaf5b3e5da7ef6d3300a8f24e6271d76c4ae1671c2e385c4d60df72640c8ddd9f640213eeadeb59a16c60fe60b4fe34f70f66da9fa59186 - languageName: node - linkType: hard - "@effect-ts/core@npm:^0.60.5": version: 0.60.5 resolution: "@effect-ts/core@npm:0.60.5" @@ -1483,42 +1464,19 @@ __metadata: languageName: node linkType: hard -"@next/bundle-analyzer@npm:^14.2.3": - version: 14.2.3 - resolution: "@next/bundle-analyzer@npm:14.2.3" +"@next/bundle-analyzer@npm:^14.2.14": + version: 14.2.14 + resolution: "@next/bundle-analyzer@npm:14.2.14" dependencies: webpack-bundle-analyzer: 4.10.1 - checksum: f219e372ca211b161a530fcbcc7395e049e9dc039c37279cae56eed1ddfc678e8f28b12813548f0901276b932dee591067f4683b8502e03156ce1c79ff3a50a4 - languageName: node - linkType: hard - -"@next/env@npm:14.1.0": - version: 14.1.0 - resolution: "@next/env@npm:14.1.0" - checksum: f45ce1e3dad87cdbddc58b06bd411f44a6d21dfc2c344d02a5e1b07f56fbc9a39e192c0b0917df9f2e9e4e2156306a8c78f173ca4b53932c2793e67797462a23 + checksum: c1037afaf58d61c864c3c23c9041397e134341c281d6e9964d302ff8b143f6bcd8935cadb71c165770481f3ec603125cbe424b9be4d02ff9ca8e6365be0d8528 languageName: node linkType: hard -"@next/env@npm:14.1.4": - version: 14.1.4 - resolution: "@next/env@npm:14.1.4" - checksum: 35f5e817bb47993565bc4b2b9961f9697e0f08b05bc008984de7e89c3626f4ef6db314629a52302786b2f386539005666b7ad56b441e45cc79b0a49835f8062b - languageName: node - linkType: hard - -"@next/env@npm:14.2.3": - version: 14.2.3 - resolution: "@next/env@npm:14.2.3" - checksum: 25ab3ac2739c8e5ce35e1f50373238c5c428ab6b01d448ba78a6068dcdef88978b64f9a92790c324b2926ccc41390a67107154a0b0fee32fe980a485f4ef20d8 - languageName: node - linkType: hard - -"@next/eslint-plugin-next@npm:14.1.0": - version: 14.1.0 - resolution: "@next/eslint-plugin-next@npm:14.1.0" - dependencies: - glob: 10.3.10 - checksum: 8f99345e3b0739aaabfb2fe61dc586c1781356ca1ccb8a01c15ddd451c3d7a2ff1d31b0b727ef27baa4227d7c8536a05c5206b9e3631efd668b7dd3ef69fedfa +"@next/env@npm:14.2.14": + version: 14.2.14 + resolution: "@next/env@npm:14.2.14" + checksum: 07060e631dfe795359a6bf509069f19e2fde1aa36a8e845d293ae6194bfdfcd7e0b1a628626083a2bb2b46a4702f8428bc2a21913f24b88ec53f773c50c14a9f languageName: node linkType: hard @@ -1531,9 +1489,9 @@ __metadata: languageName: node linkType: hard -"@next/mdx@npm:14.2.3, @next/mdx@npm:^14.2.3": - version: 14.2.3 - resolution: "@next/mdx@npm:14.2.3" +"@next/mdx@npm:14.2.14, @next/mdx@npm:^14.2.14": + version: 14.2.14 + resolution: "@next/mdx@npm:14.2.14" dependencies: source-map: ^0.7.0 peerDependencies: @@ -1544,195 +1502,69 @@ __metadata: optional: true "@mdx-js/react": optional: true - checksum: 92377ac8b616a5d1bb59ac04ab5f49e886384f52fb9a9d811e3eefbc58fb72cc3900f37fe57c9590ea530da2d5206ce9601485136e6426c889d2b52d38f3377e - languageName: node - linkType: hard - -"@next/swc-darwin-arm64@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-darwin-arm64@npm:14.1.0" - conditions: os=darwin & cpu=arm64 - languageName: node - linkType: hard - -"@next/swc-darwin-arm64@npm:14.1.4": - version: 14.1.4 - resolution: "@next/swc-darwin-arm64@npm:14.1.4" - conditions: os=darwin & cpu=arm64 + checksum: 4b38897f178f3b59eb6ee4f74af6138c748382ce5f8186f46b7320d704a903016fca6c66c409fb6f7c519da352df141572dedc8dba1317b0af6c0dc77a1ad91f languageName: node linkType: hard -"@next/swc-darwin-arm64@npm:14.2.3": - version: 14.2.3 - resolution: "@next/swc-darwin-arm64@npm:14.2.3" +"@next/swc-darwin-arm64@npm:14.2.14": + version: 14.2.14 + resolution: "@next/swc-darwin-arm64@npm:14.2.14" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@next/swc-darwin-x64@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-darwin-x64@npm:14.1.0" - conditions: os=darwin & cpu=x64 - languageName: node - linkType: hard - -"@next/swc-darwin-x64@npm:14.1.4": - version: 14.1.4 - resolution: "@next/swc-darwin-x64@npm:14.1.4" - conditions: os=darwin & cpu=x64 - languageName: node - linkType: hard - -"@next/swc-darwin-x64@npm:14.2.3": - version: 14.2.3 - resolution: "@next/swc-darwin-x64@npm:14.2.3" +"@next/swc-darwin-x64@npm:14.2.14": + version: 14.2.14 + resolution: "@next/swc-darwin-x64@npm:14.2.14" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@next/swc-linux-arm64-gnu@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-linux-arm64-gnu@npm:14.1.0" - conditions: os=linux & cpu=arm64 & libc=glibc - languageName: node - linkType: hard - -"@next/swc-linux-arm64-gnu@npm:14.1.4": - version: 14.1.4 - resolution: "@next/swc-linux-arm64-gnu@npm:14.1.4" +"@next/swc-linux-arm64-gnu@npm:14.2.14": + version: 14.2.14 + resolution: "@next/swc-linux-arm64-gnu@npm:14.2.14" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@next/swc-linux-arm64-gnu@npm:14.2.3": - version: 14.2.3 - resolution: "@next/swc-linux-arm64-gnu@npm:14.2.3" - conditions: os=linux & cpu=arm64 & libc=glibc - languageName: node - linkType: hard - -"@next/swc-linux-arm64-musl@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-linux-arm64-musl@npm:14.1.0" - conditions: os=linux & cpu=arm64 & libc=musl - languageName: node - linkType: hard - -"@next/swc-linux-arm64-musl@npm:14.1.4": - version: 14.1.4 - resolution: "@next/swc-linux-arm64-musl@npm:14.1.4" +"@next/swc-linux-arm64-musl@npm:14.2.14": + version: 14.2.14 + resolution: "@next/swc-linux-arm64-musl@npm:14.2.14" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@next/swc-linux-arm64-musl@npm:14.2.3": - version: 14.2.3 - resolution: "@next/swc-linux-arm64-musl@npm:14.2.3" - conditions: os=linux & cpu=arm64 & libc=musl - languageName: node - linkType: hard - -"@next/swc-linux-x64-gnu@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-linux-x64-gnu@npm:14.1.0" +"@next/swc-linux-x64-gnu@npm:14.2.14": + version: 14.2.14 + resolution: "@next/swc-linux-x64-gnu@npm:14.2.14" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@next/swc-linux-x64-gnu@npm:14.1.4": - version: 14.1.4 - resolution: "@next/swc-linux-x64-gnu@npm:14.1.4" - conditions: os=linux & cpu=x64 & libc=glibc - languageName: node - linkType: hard - -"@next/swc-linux-x64-gnu@npm:14.2.3": - version: 14.2.3 - resolution: "@next/swc-linux-x64-gnu@npm:14.2.3" - conditions: os=linux & cpu=x64 & libc=glibc - languageName: node - linkType: hard - -"@next/swc-linux-x64-musl@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-linux-x64-musl@npm:14.1.0" - conditions: os=linux & cpu=x64 & libc=musl - languageName: node - linkType: hard - -"@next/swc-linux-x64-musl@npm:14.1.4": - version: 14.1.4 - resolution: "@next/swc-linux-x64-musl@npm:14.1.4" - conditions: os=linux & cpu=x64 & libc=musl - languageName: node - linkType: hard - -"@next/swc-linux-x64-musl@npm:14.2.3": - version: 14.2.3 - resolution: "@next/swc-linux-x64-musl@npm:14.2.3" +"@next/swc-linux-x64-musl@npm:14.2.14": + version: 14.2.14 + resolution: "@next/swc-linux-x64-musl@npm:14.2.14" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@next/swc-win32-arm64-msvc@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-win32-arm64-msvc@npm:14.1.0" +"@next/swc-win32-arm64-msvc@npm:14.2.14": + version: 14.2.14 + resolution: "@next/swc-win32-arm64-msvc@npm:14.2.14" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@next/swc-win32-arm64-msvc@npm:14.1.4": - version: 14.1.4 - resolution: "@next/swc-win32-arm64-msvc@npm:14.1.4" - conditions: os=win32 & cpu=arm64 - languageName: node - linkType: hard - -"@next/swc-win32-arm64-msvc@npm:14.2.3": - version: 14.2.3 - resolution: "@next/swc-win32-arm64-msvc@npm:14.2.3" - conditions: os=win32 & cpu=arm64 - languageName: node - linkType: hard - -"@next/swc-win32-ia32-msvc@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-win32-ia32-msvc@npm:14.1.0" +"@next/swc-win32-ia32-msvc@npm:14.2.14": + version: 14.2.14 + resolution: "@next/swc-win32-ia32-msvc@npm:14.2.14" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@next/swc-win32-ia32-msvc@npm:14.1.4": - version: 14.1.4 - resolution: "@next/swc-win32-ia32-msvc@npm:14.1.4" - conditions: os=win32 & cpu=ia32 - languageName: node - linkType: hard - -"@next/swc-win32-ia32-msvc@npm:14.2.3": - version: 14.2.3 - resolution: "@next/swc-win32-ia32-msvc@npm:14.2.3" - conditions: os=win32 & cpu=ia32 - languageName: node - linkType: hard - -"@next/swc-win32-x64-msvc@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-win32-x64-msvc@npm:14.1.0" - conditions: os=win32 & cpu=x64 - languageName: node - linkType: hard - -"@next/swc-win32-x64-msvc@npm:14.1.4": - version: 14.1.4 - resolution: "@next/swc-win32-x64-msvc@npm:14.1.4" - conditions: os=win32 & cpu=x64 - languageName: node - linkType: hard - -"@next/swc-win32-x64-msvc@npm:14.2.3": - version: 14.2.3 - resolution: "@next/swc-win32-x64-msvc@npm:14.2.3" +"@next/swc-win32-x64-msvc@npm:14.2.14": + version: 14.2.14 + resolution: "@next/swc-win32-x64-msvc@npm:14.2.14" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -4826,15 +4658,6 @@ __metadata: languageName: node linkType: hard -"@swc/helpers@npm:0.5.2": - version: 0.5.2 - resolution: "@swc/helpers@npm:0.5.2" - dependencies: - tslib: ^2.4.0 - checksum: b6fa49bcf6c00571d0eb7837b163f8609960d4d77538160585e27ed167361e9776bd6e5eb9646ffac2fb4d43c58df9ca50dab9d96ab097e6591bc82a75fd1164 - languageName: node - linkType: hard - "@swc/helpers@npm:0.5.5": version: 0.5.5 resolution: "@swc/helpers@npm:0.5.5" @@ -5062,7 +4885,7 @@ __metadata: languageName: node linkType: hard -"@types/json-schema@npm:^7.0.12, @types/json-schema@npm:^7.0.7, @types/json-schema@npm:^7.0.9": +"@types/json-schema@npm:^7.0.12, @types/json-schema@npm:^7.0.7": version: 7.0.15 resolution: "@types/json-schema@npm:7.0.15" checksum: a996a745e6c5d60292f36731dd41341339d4eeed8180bb09226e5c8d23759067692b1d88e5d91d72ee83dfc00d3aca8e7bd43ea120516c17922cbcb7c3e252db @@ -5255,7 +5078,7 @@ __metadata: languageName: node linkType: hard -"@types/semver@npm:^7.3.12, @types/semver@npm:^7.5.0": +"@types/semver@npm:^7.5.0": version: 7.5.8 resolution: "@types/semver@npm:7.5.8" checksum: 8663ff927234d1c5fcc04b33062cb2b9fcfbe0f5f351ed26c4d1e1581657deebd506b41ff7fdf89e787e3d33ce05854bc01686379b89e9c49b564c4cfa988efa @@ -5333,7 +5156,7 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/parser@npm:^5.4.2 || ^6.0.0, @typescript-eslint/parser@npm:^6.18.1": +"@typescript-eslint/parser@npm:^6.18.1": version: 6.21.0 resolution: "@typescript-eslint/parser@npm:6.21.0" dependencies: @@ -5351,16 +5174,6 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:5.62.0": - version: 5.62.0 - resolution: "@typescript-eslint/scope-manager@npm:5.62.0" - dependencies: - "@typescript-eslint/types": 5.62.0 - "@typescript-eslint/visitor-keys": 5.62.0 - checksum: 861253235576c1c5c1772d23cdce1418c2da2618a479a7de4f6114a12a7ca853011a1e530525d0931c355a8fd237b9cd828fac560f85f9623e24054fd024726f - languageName: node - linkType: hard - "@typescript-eslint/scope-manager@npm:6.21.0": version: 6.21.0 resolution: "@typescript-eslint/scope-manager@npm:6.21.0" @@ -5398,13 +5211,6 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/types@npm:5.62.0": - version: 5.62.0 - resolution: "@typescript-eslint/types@npm:5.62.0" - checksum: 7febd3a7f0701c0b927e094f02e82d8ee2cada2b186fcb938bc2b94ff6fbad88237afc304cbaf33e82797078bbbb1baf91475f6400912f8b64c89be79bfa4ddf - languageName: node - linkType: hard - "@typescript-eslint/types@npm:6.21.0": version: 6.21.0 resolution: "@typescript-eslint/types@npm:6.21.0" @@ -5419,24 +5225,6 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:5.62.0": - version: 5.62.0 - resolution: "@typescript-eslint/typescript-estree@npm:5.62.0" - dependencies: - "@typescript-eslint/types": 5.62.0 - "@typescript-eslint/visitor-keys": 5.62.0 - debug: ^4.3.4 - globby: ^11.1.0 - is-glob: ^4.0.3 - semver: ^7.3.7 - tsutils: ^3.21.0 - peerDependenciesMeta: - typescript: - optional: true - checksum: d7984a3e9d56897b2481940ec803cb8e7ead03df8d9cfd9797350be82ff765dfcf3cfec04e7355e1779e948da8f02bc5e11719d07a596eb1cb995c48a95e38cf - languageName: node - linkType: hard - "@typescript-eslint/typescript-estree@npm:6.21.0": version: 6.21.0 resolution: "@typescript-eslint/typescript-estree@npm:6.21.0" @@ -5492,34 +5280,6 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/utils@npm:^5.62.0": - version: 5.62.0 - resolution: "@typescript-eslint/utils@npm:5.62.0" - dependencies: - "@eslint-community/eslint-utils": ^4.2.0 - "@types/json-schema": ^7.0.9 - "@types/semver": ^7.3.12 - "@typescript-eslint/scope-manager": 5.62.0 - "@typescript-eslint/types": 5.62.0 - "@typescript-eslint/typescript-estree": 5.62.0 - eslint-scope: ^5.1.1 - semver: ^7.3.7 - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - checksum: f09b7d9952e4a205eb1ced31d7684dd55cee40bf8c2d78e923aa8a255318d97279825733902742c09d8690f37a50243f4c4d383ab16bd7aefaf9c4b438f785e1 - languageName: node - linkType: hard - -"@typescript-eslint/visitor-keys@npm:5.62.0": - version: 5.62.0 - resolution: "@typescript-eslint/visitor-keys@npm:5.62.0" - dependencies: - "@typescript-eslint/types": 5.62.0 - eslint-visitor-keys: ^3.3.0 - checksum: 7c3b8e4148e9b94d9b7162a596a1260d7a3efc4e65199693b8025c71c4652b8042501c0bc9f57654c1e2943c26da98c0f77884a746c6ae81389fcb0b513d995d - languageName: node - linkType: hard - "@typescript-eslint/visitor-keys@npm:6.21.0": version: 6.21.0 resolution: "@typescript-eslint/visitor-keys@npm:6.21.0" @@ -5791,8 +5551,8 @@ __metadata: "@mdx-js/react": ^3.0.0 "@medusajs/icons": preview "@medusajs/ui": ^3.0.0 - "@next/bundle-analyzer": ^14.2.3 - "@next/mdx": 14.2.3 + "@next/bundle-analyzer": ^14.2.14 + "@next/mdx": 14.2.14 "@readme/openapi-parser": ^2.5.0 "@types/jsdom": ^21.1.1 "@types/mapbox__rehype-prism": ^0.8.0 @@ -5810,7 +5570,7 @@ __metadata: jsdom: ^22.1.0 json-schema: ^0.4.0 json-stringify-pretty-compact: ^4.0.0 - next: ^14.2.3 + next: ^14.2.14 next-mdx-remote: ^4.4.1 openapi-sampler: ^1.3.1 openapi-types: ^12.1.3 @@ -6123,7 +5883,7 @@ __metadata: dependencies: "@mdx-js/loader": ^3.0.0 "@mdx-js/react": ^3.0.0 - "@next/mdx": ^14.2.3 + "@next/mdx": ^14.2.14 "@types/mdx": ^2.0.10 "@types/node": ^20 "@types/react": ^18.2.0 @@ -6135,7 +5895,7 @@ __metadata: eslint: ^8 eslint-config-docs: "*" eslint-config-next: 14.2.3 - next: 14.2.3 + next: 14.2.14 postcss: ^8 react: ^18.2.0 react-dom: ^18.2.0 @@ -7372,7 +7132,7 @@ __metadata: eslint-config-docs: "*" framer-motion: ^11.3.21 mermaid: ^10.9.0 - next: 14.1.0 + next: ^14.2.14 npm-to-yarn: ^2.1.0 prism-react-renderer: 2.3.1 react: ^18.2.0 @@ -7380,7 +7140,7 @@ __metadata: react-google-recaptcha: ^3.1.0 react-instantsearch: ^7.13.0 react-markdown: ^8.0.7 - react-medium-image-zoom: ^5.1.10 + react-medium-image-zoom: ^5.2.10 react-tooltip: ^5.21.3 react-transition-group: ^4.4.5 react-uuid: ^2.0.0 @@ -7991,12 +7751,11 @@ __metadata: resolution: "eslint-config-docs@workspace:packages/eslint-config-docs" dependencies: "@babel/eslint-parser": ^7.22.15 - "@docusaurus/eslint-plugin": ^3.1.0 "@typescript-eslint/eslint-plugin": ^6.18.1 "@typescript-eslint/parser": ^6.18.1 eslint: ^8.36.0 eslint-config-google: ^0.14.0 - eslint-config-next: latest + eslint-config-next: 14.2.3 eslint-config-prettier: ^8.7.0 eslint-config-turbo: ^1.10.12 eslint-plugin-markdown: ^3.0.0 @@ -8015,29 +7774,6 @@ __metadata: languageName: node linkType: hard -eslint-config-next@latest: - version: 14.1.0 - resolution: "eslint-config-next@npm:14.1.0" - dependencies: - "@next/eslint-plugin-next": 14.1.0 - "@rushstack/eslint-patch": ^1.3.3 - "@typescript-eslint/parser": ^5.4.2 || ^6.0.0 - eslint-import-resolver-node: ^0.3.6 - eslint-import-resolver-typescript: ^3.5.2 - eslint-plugin-import: ^2.28.1 - eslint-plugin-jsx-a11y: ^6.7.1 - eslint-plugin-react: ^7.33.2 - eslint-plugin-react-hooks: ^4.5.0 || 5.0.0-canary-7118f5dd7-20230705 - peerDependencies: - eslint: ^7.23.0 || ^8.0.0 - typescript: ">=3.3.1" - peerDependenciesMeta: - typescript: - optional: true - checksum: 8e3fc5fb99d8d8d03651a44487bd7739fd880cf6698292f548ebdb3886c52b3030758018970401f6220430e7d003a1100a62de47f86f7216d3c86ba0e1cd9cd1 - languageName: node - linkType: hard - "eslint-config-next@npm:14.2.3": version: 14.2.3 resolution: "eslint-config-next@npm:14.2.3" @@ -8249,7 +7985,7 @@ eslint-config-next@latest: languageName: node linkType: hard -"eslint-scope@npm:5.1.1, eslint-scope@npm:^5.1.1": +"eslint-scope@npm:5.1.1": version: 5.1.1 resolution: "eslint-scope@npm:5.1.1" dependencies: @@ -11950,75 +11686,20 @@ eslint-config-next@latest: languageName: node linkType: hard -"next@npm:14.1.0": - version: 14.1.0 - resolution: "next@npm:14.1.0" +"next@npm:14.2.14, next@npm:^14.2.14, next@npm:latest": + version: 14.2.14 + resolution: "next@npm:14.2.14" dependencies: - "@next/env": 14.1.0 - "@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 - "@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 - peerDependencies: - "@opentelemetry/api": ^1.1.0 - react: ^18.2.0 - react-dom: ^18.2.0 - sass: ^1.3.0 - dependenciesMeta: - "@next/swc-darwin-arm64": - optional: true - "@next/swc-darwin-x64": - optional: true - "@next/swc-linux-arm64-gnu": - optional: true - "@next/swc-linux-arm64-musl": - optional: true - "@next/swc-linux-x64-gnu": - optional: true - "@next/swc-linux-x64-musl": - optional: true - "@next/swc-win32-arm64-msvc": - optional: true - "@next/swc-win32-ia32-msvc": - optional: true - "@next/swc-win32-x64-msvc": - optional: true - peerDependenciesMeta: - "@opentelemetry/api": - optional: true - sass: - optional: true - bin: - next: dist/bin/next - checksum: dbb1ef8d22eec29a9127d28ed46eb34f14e3f7f7b4e4b91dc96027feb4d9ead554a804275484d9a54026e6e55d632d3997561e598c1fb8e8956e77614f39765f - languageName: node - linkType: hard - -"next@npm:14.2.3, next@npm:^14.2.3": - version: 14.2.3 - resolution: "next@npm:14.2.3" - dependencies: - "@next/env": 14.2.3 - "@next/swc-darwin-arm64": 14.2.3 - "@next/swc-darwin-x64": 14.2.3 - "@next/swc-linux-arm64-gnu": 14.2.3 - "@next/swc-linux-arm64-musl": 14.2.3 - "@next/swc-linux-x64-gnu": 14.2.3 - "@next/swc-linux-x64-musl": 14.2.3 - "@next/swc-win32-arm64-msvc": 14.2.3 - "@next/swc-win32-ia32-msvc": 14.2.3 - "@next/swc-win32-x64-msvc": 14.2.3 + "@next/env": 14.2.14 + "@next/swc-darwin-arm64": 14.2.14 + "@next/swc-darwin-x64": 14.2.14 + "@next/swc-linux-arm64-gnu": 14.2.14 + "@next/swc-linux-arm64-musl": 14.2.14 + "@next/swc-linux-x64-gnu": 14.2.14 + "@next/swc-linux-x64-musl": 14.2.14 + "@next/swc-win32-arm64-msvc": 14.2.14 + "@next/swc-win32-ia32-msvc": 14.2.14 + "@next/swc-win32-x64-msvc": 14.2.14 "@swc/helpers": 0.5.5 busboy: 1.6.0 caniuse-lite: ^1.0.30001579 @@ -12059,62 +11740,7 @@ eslint-config-next@latest: optional: true bin: next: dist/bin/next - checksum: 2c409154720846d07a7a995cc3bfba24b9ee73c87360ce3266528c8a217f5f1ab6f916cffbe1be83509b4e8d7b1d713921bb5c69338b4ecaa57df3212f79a8c5 - languageName: node - linkType: hard - -"next@npm:latest": - version: 14.1.4 - resolution: "next@npm:14.1.4" - dependencies: - "@next/env": 14.1.4 - "@next/swc-darwin-arm64": 14.1.4 - "@next/swc-darwin-x64": 14.1.4 - "@next/swc-linux-arm64-gnu": 14.1.4 - "@next/swc-linux-arm64-musl": 14.1.4 - "@next/swc-linux-x64-gnu": 14.1.4 - "@next/swc-linux-x64-musl": 14.1.4 - "@next/swc-win32-arm64-msvc": 14.1.4 - "@next/swc-win32-ia32-msvc": 14.1.4 - "@next/swc-win32-x64-msvc": 14.1.4 - "@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 - peerDependencies: - "@opentelemetry/api": ^1.1.0 - react: ^18.2.0 - react-dom: ^18.2.0 - sass: ^1.3.0 - dependenciesMeta: - "@next/swc-darwin-arm64": - optional: true - "@next/swc-darwin-x64": - optional: true - "@next/swc-linux-arm64-gnu": - optional: true - "@next/swc-linux-arm64-musl": - optional: true - "@next/swc-linux-x64-gnu": - optional: true - "@next/swc-linux-x64-musl": - optional: true - "@next/swc-win32-arm64-msvc": - optional: true - "@next/swc-win32-ia32-msvc": - optional: true - "@next/swc-win32-x64-msvc": - optional: true - peerDependenciesMeta: - "@opentelemetry/api": - optional: true - sass: - optional: true - bin: - next: dist/bin/next - checksum: 7576d7af913f6e24997126b1b13c9bfd0de926ecce72b16944f9f9ba221a3563d3a16b13d7aad7774a428462534afe71879ea0ca5ad80cc9075f08773d13a3b1 + checksum: ed35c4a7e87de6da268ab19c195c498480ce758dad931b0789b81fc2a0e63020b379ce6f43daff922c123014ea5b3a33cc9eb09c785aa2d5bcd5eb0ef46b9f80 languageName: node linkType: hard @@ -13087,13 +12713,13 @@ eslint-config-next@latest: languageName: node linkType: hard -"react-medium-image-zoom@npm:^5.1.10": - version: 5.1.10 - resolution: "react-medium-image-zoom@npm:5.1.10" +"react-medium-image-zoom@npm:^5.2.10": + version: 5.2.10 + resolution: "react-medium-image-zoom@npm:5.2.10" peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 4b7eba8787fe3880f02ccff34956f08fe81bd9025873b1457f1ee18d3c8e238f2658862b831695a0dca09ab0fb21a757f03206357ca390dc5aae2360a26d851a + checksum: 80e84ef7a87fea7f82ef93c54ac6cc9811da15f4d7526e99fba6deabfc7b7236cb16c0b0f03d3f0ec3c2626fdbbef59891deb1f8cd16b634cdf0cde22d43a1c3 languageName: node linkType: hard @@ -13564,7 +13190,7 @@ eslint-config-next@latest: "@mdx-js/loader": ^3.0.1 "@mdx-js/react": ^3.0.1 "@medusajs/icons": preview - "@next/mdx": ^14.2.3 + "@next/mdx": ^14.2.14 "@types/mdx": ^2.0.11 "@types/node": ^20 "@types/react": ^18.2.0 @@ -13576,7 +13202,7 @@ eslint-config-next@latest: eslint: ^8 eslint-config-docs: "*" eslint-config-next: 14.2.3 - next: 14.2.3 + next: 14.2.14 postcss: ^8 react: ^18.2.0 react-dom: ^18.2.0 @@ -13756,7 +13382,7 @@ eslint-config-next@latest: languageName: node linkType: hard -"semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.2, semver@npm:^7.5.4": +"semver@npm:^7.3.5, semver@npm:^7.5.2, semver@npm:^7.5.4": version: 7.6.0 resolution: "semver@npm:7.6.0" dependencies: @@ -14583,19 +14209,10 @@ eslint-config-next@latest: "tsconfig@*, tsconfig@workspace:packages/tsconfig": version: 0.0.0-use.local resolution: "tsconfig@workspace:packages/tsconfig" - dependencies: - "@docusaurus/tsconfig": latest languageName: unknown linkType: soft -"tslib@npm:^1.8.1": - version: 1.14.1 - resolution: "tslib@npm:1.14.1" - checksum: 69ae09c49eea644bc5ebe1bca4fa4cc2c82b7b3e02f43b84bd891504edf66dbc6b2ec0eef31a957042de2269139e4acff911e6d186a258fb14069cd7f6febce2 - languageName: node - linkType: hard - -"tslib@npm:^2.0.0, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.4.0, tslib@npm:^2.4.1, tslib@npm:^2.6.0": +"tslib@npm:^2.0.0, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.4.0, tslib@npm:^2.4.1": version: 2.6.2 resolution: "tslib@npm:2.6.2" checksum: e03a8a4271152c8b26604ed45535954c0a45296e32445b4b87f8a5abdb2421f40b59b4ca437c4346af0f28179780d604094eb64546bee2019d903d01c6c19bdb @@ -14638,17 +14255,6 @@ eslint-config-next@latest: languageName: node linkType: hard -"tsutils@npm:^3.21.0": - version: 3.21.0 - resolution: "tsutils@npm:3.21.0" - dependencies: - tslib: ^1.8.1 - peerDependencies: - typescript: ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - checksum: 02f19e458ec78ead8fffbf711f834ad8ecd2cc6ade4ec0320790713dccc0a412b99e7fd907c4cda2a1dc602c75db6f12e0108e87a5afad4b2f9e90a24cabd5a2 - languageName: node - linkType: hard - "turbo-darwin-64@npm:1.12.4": version: 1.12.4 resolution: "turbo-darwin-64@npm:1.12.4" @@ -14897,7 +14503,7 @@ turbo@latest: eslint: ^8.49.0 eslint-config-docs: "*" mdast-util-toc: ^7.0.0 - next: ^14.2.3 + next: ^14.2.14 next-contentlayer: ^0.3.4 next-themes: ^0.2.1 postcss: 8.4.27 @@ -15251,7 +14857,7 @@ turbo@latest: "@mdx-js/loader": ^3.0.0 "@mdx-js/react": ^3.0.0 "@medusajs/icons": preview - "@next/mdx": ^14.2.3 + "@next/mdx": ^14.2.14 "@types/mdx": ^2.0.10 "@types/node": ^20 "@types/react": ^18.2.0 @@ -15263,7 +14869,7 @@ turbo@latest: eslint: ^8 eslint-config-docs: "*" eslint-config-next: 14.2.3 - next: 14.2.3 + next: 14.2.14 postcss: ^8 react: ^18.2.0 react-dom: ^18.2.0