diff --git a/package-lock.json b/package-lock.json index 44051064b..03a9ada14 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "negotiator": "^0.6.3", "next": "^14.2.15", "next-intl": "^3.24.0", - "next-sanity": "^7.1.4", + "next-sanity": "^9.8.20", "next-sanity-image": "^6.1.1", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -5397,14 +5397,6 @@ "node": ">=18" } }, - "node_modules/@sanity/mutate/node_modules/mendoza": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/mendoza/-/mendoza-3.0.7.tgz", - "integrity": "sha512-KtLgsCl5dFjRPUVSVV9KxpUr2BfZgLv8uqxg/hCsI7JIWsesHABSbl0MQwxNHAg24KtzSQ6vrPsgeNnoq4UImg==", - "engines": { - "node": ">=14.18" - } - }, "node_modules/@sanity/mutate/node_modules/nanoid": { "version": "5.0.9", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.0.9.tgz", @@ -5434,6 +5426,48 @@ "lodash": "^4.17.21" } }, + "node_modules/@sanity/next-loader": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@sanity/next-loader/-/next-loader-1.2.0.tgz", + "integrity": "sha512-prZx1vnsvTHjD1td48oG2QKaUZmXwvp65JWUNmAX4903xB2rJq5Qg083ydccbI1oZ+1HLxd5CIwl6NmN6AIlig==", + "dependencies": { + "@sanity/comlink": "2.0.0", + "use-effect-event": "^1.0.2" + }, + "engines": { + "node": ">=18.18" + }, + "peerDependencies": { + "@sanity/client": "^6.23.0", + "next": "^14.1 || ^15.0.0-0", + "react": "^18.3 || ^19.0.0-0" + } + }, + "node_modules/@sanity/next-loader/node_modules/@sanity/comlink": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sanity/comlink/-/comlink-2.0.0.tgz", + "integrity": "sha512-HV668xtHdm7qz9V5FbqRi8/2l1GPJr7puh05KQeGMSRlRAkKwTeG6Y5zbZ0d/6zUTQf2SB1As725JdCfCJ3bdg==", + "dependencies": { + "rxjs": "^7.8.1", + "uuid": "^10.0.0", + "xstate": "^5.19.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@sanity/next-loader/node_modules/uuid": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/@sanity/presentation": { "version": "1.19.1", "resolved": "https://registry.npmjs.org/@sanity/presentation/-/presentation-1.19.1.tgz", @@ -5490,38 +5524,25 @@ "@sanity/client": "^6.22.5" } }, - "node_modules/@sanity/presentation/node_modules/mendoza": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/mendoza/-/mendoza-3.0.7.tgz", - "integrity": "sha512-KtLgsCl5dFjRPUVSVV9KxpUr2BfZgLv8uqxg/hCsI7JIWsesHABSbl0MQwxNHAg24KtzSQ6vrPsgeNnoq4UImg==", - "engines": { - "node": ">=14.18" - } - }, "node_modules/@sanity/presentation/node_modules/path-to-regexp": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz", "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==" }, "node_modules/@sanity/preview-kit": { - "version": "5.0.20", - "resolved": "https://registry.npmjs.org/@sanity/preview-kit/-/preview-kit-5.0.20.tgz", - "integrity": "sha512-UYNDCyLPMZ5QfPi3oBryPV6rJXvgocZ8ilH8rJsuR3hgRrVrSdV2bnYSrMRVdIQtd32PeFPnJqxtYNu6aXc4HA==", - "license": "MIT", + "version": "5.1.20", + "resolved": "https://registry.npmjs.org/@sanity/preview-kit/-/preview-kit-5.1.20.tgz", + "integrity": "sha512-ZnmAbZHB+QM/Aw4rXrm4IXnePZs1V7I0aicDUZ8B83YBLUsIrxyDFwbtjClAz5UP7Bwe3l3lDYbB14NphL82mQ==", "dependencies": { - "@sanity/preview-kit-compat": "1.4.4", - "@vercel/stega": "0.1.0", - "lru-cache": "10.2.0", - "mendoza": "3.0.4", - "react-fast-compare": "3.2.2", - "use-sync-external-store": "1.2.0" + "@sanity/preview-kit-compat": "1.5.23", + "mendoza": "3.0.7" }, "engines": { "node": ">=18" }, "peerDependencies": { - "@sanity/client": "^6.12.4", - "react": "^18.0.0" + "@sanity/client": "^6.23.0", + "react": "^18.0.0 || >=19.0.0-rc" }, "peerDependenciesMeta": { "react": { @@ -5530,25 +5551,43 @@ } }, "node_modules/@sanity/preview-kit-compat": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/@sanity/preview-kit-compat/-/preview-kit-compat-1.4.4.tgz", - "integrity": "sha512-CYO/qFIc2fqV8cpAIYay43SfPIs/SFzT8ke+XgXYlzwXmShdDnKXNttfLDUWvxk6+nJiPRgzRN9kokC8ineP2g==", - "license": "MIT", + "version": "1.5.23", + "resolved": "https://registry.npmjs.org/@sanity/preview-kit-compat/-/preview-kit-compat-1.5.23.tgz", + "integrity": "sha512-ZqlUN/8rRT92SinwbotVZSq+X1XQLjYiq8/qFZZsxPUeGRu4nJYKYmBysmcOczfq4K1OAxUcpRFWpiPG/AkzGQ==", + "dependencies": { + "@sanity/comlink": "2.0.0" + }, "engines": { "node": ">=18" }, "peerDependencies": { - "@sanity/client": "^6.12.3", - "react": "^18.2.0" + "@sanity/client": "^6.22.5", + "react": "^18.3 || >=19.0.0-rc" } }, - "node_modules/@sanity/preview-kit/node_modules/lru-cache": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", - "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", - "license": "ISC", + "node_modules/@sanity/preview-kit-compat/node_modules/@sanity/comlink": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sanity/comlink/-/comlink-2.0.0.tgz", + "integrity": "sha512-HV668xtHdm7qz9V5FbqRi8/2l1GPJr7puh05KQeGMSRlRAkKwTeG6Y5zbZ0d/6zUTQf2SB1As725JdCfCJ3bdg==", + "dependencies": { + "rxjs": "^7.8.1", + "uuid": "^10.0.0", + "xstate": "^5.19.0" + }, "engines": { - "node": "14 || >=16.14" + "node": ">=18" + } + }, + "node_modules/@sanity/preview-kit-compat/node_modules/uuid": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" } }, "node_modules/@sanity/preview-url-secret": { @@ -5733,49 +5772,6 @@ "react": "^18.3 || >=19.0.0-rc" } }, - "node_modules/@sanity/visual-editing": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@sanity/visual-editing/-/visual-editing-1.2.2.tgz", - "integrity": "sha512-iR1stYfPPhBJLjwKY3MBgr0DcRADgnRaTJvZ3nUJ2puGVniPoSxJ9Zj4PkspferU8997RKKtupN9m9spFYskXg==", - "license": "MIT", - "dependencies": { - "@vercel/stega": "0.1.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-is": "18.2.0", - "scroll-into-view-if-needed": "^3.1.0" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "@remix-run/react": ">= 2", - "next": ">= 13" - }, - "peerDependenciesMeta": { - "@remix-run/react": { - "optional": true - }, - "next": { - "optional": true - } - } - }, - "node_modules/@sanity/visual-editing/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "license": "MIT" - }, - "node_modules/@sanity/webhook": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@sanity/webhook/-/webhook-4.0.0.tgz", - "integrity": "sha512-IRjtj17tHSmxHWZvgRnLZbWj8J8G4jqOWOYC25eV4EcfVn1yZCs0x+km6+PSiJgOphSX6Nm1+X6UJOT+GnWIFw==", - "license": "MIT", - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@sentry-internal/browser-utils": { "version": "8.26.0", "resolved": "https://registry.npmjs.org/@sentry-internal/browser-utils/-/browser-utils-8.26.0.tgz", @@ -8374,10 +8370,9 @@ "license": "ISC" }, "node_modules/@vercel/stega": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@vercel/stega/-/stega-0.1.0.tgz", - "integrity": "sha512-5b0PkOJsFBX5alChuIO3qpkt5vIZBevzLPhUQ1UP8UzVjL3F1VllnZxp/thfD8R5ol7D7WHkgZHIjdUBX4tDpQ==", - "license": "MPL-2.0" + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@vercel/stega/-/stega-0.1.2.tgz", + "integrity": "sha512-P7mafQXjkrsoyTRppnt0N21udKS9wUmLXHRyP9saLXLHw32j/FgUJ3FscSWgvSqRs4cj7wKZtwqJEvWJ2jbGmA==" }, "node_modules/@vitejs/plugin-react": { "version": "4.3.4", @@ -19561,10 +19556,9 @@ } }, "node_modules/mendoza": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/mendoza/-/mendoza-3.0.4.tgz", - "integrity": "sha512-kGlLhn1HF57oUK9DzJpqiqxHS9KJ0JcFRtNKBM8l970nepx3/GKs1uAIlBfq5mjmndk7IGa4vQ2ofcqMKMPTiA==", - "license": "MIT", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/mendoza/-/mendoza-3.0.7.tgz", + "integrity": "sha512-KtLgsCl5dFjRPUVSVV9KxpUr2BfZgLv8uqxg/hCsI7JIWsesHABSbl0MQwxNHAg24KtzSQ6vrPsgeNnoq4UImg==", "engines": { "node": ">=14.18" } @@ -20052,28 +20046,32 @@ } }, "node_modules/next-sanity": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/next-sanity/-/next-sanity-7.1.4.tgz", - "integrity": "sha512-bq/VkejvPgV95mi5fxR01rALG1QURe0nO2g3HyUuiZRyTd0teFgYvCVf1b5PBndKhD15Cd3UK/WwcLKRxxEr3A==", + "version": "9.8.20", + "resolved": "https://registry.npmjs.org/next-sanity/-/next-sanity-9.8.20.tgz", + "integrity": "sha512-1jESVt/f0mlA5Gkrij7JtixhB0ZVW6axmcQ+p2G9LiFQihESjgoj/IoBsN0LO38s+U2YZn9eE6YXDpdyV8sbIQ==", "dependencies": { - "@sanity/client": "^6.12.4", - "@sanity/preview-kit": "5.0.20", - "@sanity/visual-editing": "1.2.2", - "@sanity/webhook": "4.0.0", - "groq": "^3.19" + "@portabletext/react": "^3.1.0", + "@sanity/client": "^6.23.0", + "@sanity/next-loader": "1.2.0", + "@sanity/preview-kit": "5.1.20", + "@sanity/preview-url-secret": "2.0.5", + "@sanity/visual-editing": "2.10.3", + "groq": "^3.65.1", + "history": "^5.3.0" }, "engines": { - "node": ">=18.17" + "node": ">=18.18" }, "peerDependencies": { - "@sanity/client": "^6.12.4", - "@sanity/icons": "^2.8", - "@sanity/types": "^3.25", - "@sanity/ui": "^1.8 || ^2.0.0-beta || ^2.0", - "next": "^14.1", - "react": "^18.2", - "sanity": "^3.25", - "styled-components": "^5.2 || ^6.0" + "@sanity/client": "^6.23.0", + "@sanity/icons": "^3.4.0", + "@sanity/types": "^3.62.0", + "@sanity/ui": "^2.8.10", + "next": "^14.2 || ^15.0.0-0", + "react": "^18.3 || ^19.0.0-0", + "react-dom": "^18.3 || ^19.0.0-0", + "sanity": "^3.62.0", + "styled-components": "^6.1" } }, "node_modules/next-sanity-image": { @@ -20090,6 +20088,120 @@ "react": "^18.0.0" } }, + "node_modules/next-sanity/node_modules/@sanity/comlink": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sanity/comlink/-/comlink-2.0.0.tgz", + "integrity": "sha512-HV668xtHdm7qz9V5FbqRi8/2l1GPJr7puh05KQeGMSRlRAkKwTeG6Y5zbZ0d/6zUTQf2SB1As725JdCfCJ3bdg==", + "dependencies": { + "rxjs": "^7.8.1", + "uuid": "^10.0.0", + "xstate": "^5.19.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/next-sanity/node_modules/@sanity/mutate": { + "version": "0.11.0-canary.3", + "resolved": "https://registry.npmjs.org/@sanity/mutate/-/mutate-0.11.0-canary.3.tgz", + "integrity": "sha512-zZQo3rsjsTZBlRi+D3S90MebvzWNtdRzb6A0s07gEO2PtCtc5LEUSyPCLvIZiv6e2YMjBmMmuref4IB8VixKnw==", + "dependencies": { + "@sanity/client": "^6.22.4", + "@sanity/diff-match-patch": "^3.1.1", + "hotscript": "^1.0.13", + "lodash": "^4.17.21", + "mendoza": "^3.0.7", + "rxjs": "^7.8.1" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "xstate": "^5.19.0" + }, + "peerDependenciesMeta": { + "xstate": { + "optional": true + } + } + }, + "node_modules/next-sanity/node_modules/@sanity/preview-url-secret": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@sanity/preview-url-secret/-/preview-url-secret-2.0.5.tgz", + "integrity": "sha512-YWExuJ/Z0CW37vYdiouE9A/NAN3QEewZL6qu6IohXqVY6wDDT0b9ubetTR4Op1kzmK6WbPGj79aiHrPubrM70A==", + "dependencies": { + "@sanity/uuid": "3.0.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@sanity/client": "^6.23.0" + } + }, + "node_modules/next-sanity/node_modules/@sanity/visual-editing": { + "version": "2.10.3", + "resolved": "https://registry.npmjs.org/@sanity/visual-editing/-/visual-editing-2.10.3.tgz", + "integrity": "sha512-g3wRlMo31eBM1X8YLLFP/vwq1krsXwqyOCPQTLucfkRb1FqpPjIGh9i1MYz4W20phziBB/gU2gnpfApsYRAJ1Q==", + "dependencies": { + "@sanity/comlink": "2.0.0", + "@sanity/mutate": "0.11.0-canary.3", + "@sanity/preview-url-secret": "2.0.5", + "@vercel/stega": "0.1.2", + "get-random-values-esm": "^1.0.2", + "react-compiler-runtime": "19.0.0-beta-df7b47d-20241124", + "rxjs": "^7.8.1", + "scroll-into-view-if-needed": "^3.1.0", + "use-effect-event": "^1.0.2", + "valibot": "0.31.1", + "xstate": "^5.19.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@remix-run/react": ">= 2", + "@sanity/client": "^6.23.0", + "@sveltejs/kit": ">= 2", + "next": ">= 13 || >=14.3.0-canary.0 <14.3.0 || >=15.0.0-rc", + "react": "^18.3 || >=19.0.0-rc", + "react-dom": "^18.3 || >=19.0.0-rc", + "react-router": ">= 7", + "svelte": ">= 4" + }, + "peerDependenciesMeta": { + "@remix-run/react": { + "optional": true + }, + "@sanity/client": { + "optional": true + }, + "@sveltejs/kit": { + "optional": true + }, + "next": { + "optional": true + }, + "react-router": { + "optional": true + }, + "svelte": { + "optional": true + } + } + }, + "node_modules/next-sanity/node_modules/uuid": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/next/node_modules/postcss": { "version": "8.4.31", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", @@ -27136,6 +27248,11 @@ "node": ">=10.12.0" } }, + "node_modules/valibot": { + "version": "0.31.1", + "resolved": "https://registry.npmjs.org/valibot/-/valibot-0.31.1.tgz", + "integrity": "sha512-2YYIhPrnVSz/gfT2/iXVTrSj92HwchCt9Cga/6hX4B26iCz9zkIsGTS0HjDYTZfTi1Un0X6aRvhBi1cfqs/i0Q==" + }, "node_modules/validate-npm-package-license": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", diff --git a/package.json b/package.json index af770646b..476631a41 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "negotiator": "^0.6.3", "next": "^14.2.15", "next-intl": "^3.24.0", - "next-sanity": "^7.1.4", + "next-sanity": "^9.8.20", "next-sanity-image": "^6.1.1", "react": "^18.3.1", "react-dom": "^18.3.1",