diff --git a/apps/v1/package.json b/apps/v1/package.json index 994aa41d..3395f2d3 100644 --- a/apps/v1/package.json +++ b/apps/v1/package.json @@ -32,7 +32,7 @@ "json5": "^2.2.3", "motion": "^10.16.2", "next": "^14.0.0", - "next-sanity": "^6.0.0", + "next-sanity": "^7.0.0", "polished": "^4.2.2", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/next-dynamic/package.json b/examples/next-dynamic/package.json index bf18854a..05644254 100644 --- a/examples/next-dynamic/package.json +++ b/examples/next-dynamic/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "next": "^14.0.0", - "next-sanity": "^6.0.0", + "next-sanity": "^7.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-icons": "^5.0.0", diff --git a/examples/next-static/package.json b/examples/next-static/package.json index 96822f03..75a0026b 100644 --- a/examples/next-static/package.json +++ b/examples/next-static/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "next": "^14.0.0", - "next-sanity": "^6.0.0", + "next-sanity": "^7.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-icons": "^5.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 806b6559..7bb2c7f5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -57,8 +57,8 @@ importers: specifier: ^14.0.0 version: 14.1.4(@babel/core@7.24.4)(react-dom@18.2.0)(react@18.2.0) next-sanity: - specifier: ^6.0.0 - version: 6.1.4(@sanity/client@6.15.11)(@sanity/icons@2.11.7)(@sanity/types@3.36.4)(@sanity/ui@2.1.0)(next@14.1.4)(react@18.2.0)(sanity@3.36.4)(styled-components@6.1.8) + specifier: ^7.0.0 + version: 7.1.4(@sanity/client@6.15.11)(@sanity/icons@2.11.7)(@sanity/types@3.36.4)(@sanity/ui@2.1.0)(next@14.1.4)(react@18.2.0)(sanity@3.36.4)(styled-components@6.1.8) polished: specifier: ^4.2.2 version: 4.3.1 @@ -268,8 +268,8 @@ importers: specifier: ^14.0.0 version: 14.1.4(@babel/core@7.24.4)(react-dom@18.2.0)(react@18.2.0) next-sanity: - specifier: ^6.0.0 - version: 6.1.4(@sanity/client@6.15.11)(@sanity/icons@2.11.7)(@sanity/types@3.36.4)(@sanity/ui@1.9.3)(next@14.1.4)(react@18.2.0)(sanity@3.36.4)(styled-components@6.1.8) + specifier: ^7.0.0 + version: 7.1.4(@sanity/client@6.15.11)(@sanity/icons@2.11.7)(@sanity/types@3.36.4)(@sanity/ui@2.1.0)(next@14.1.4)(react@18.2.0)(sanity@3.36.4)(styled-components@6.1.8) react: specifier: ^18.2.0 version: 18.2.0 @@ -308,8 +308,8 @@ importers: specifier: ^14.0.0 version: 14.1.4(@babel/core@7.24.4)(react-dom@18.2.0)(react@18.2.0) next-sanity: - specifier: ^6.0.0 - version: 6.1.4(@sanity/client@6.15.11)(@sanity/icons@2.11.7)(@sanity/types@3.36.4)(@sanity/ui@1.9.3)(next@14.1.4)(react@18.2.0)(sanity@3.36.4)(styled-components@6.1.8) + specifier: ^7.0.0 + version: 7.1.4(@sanity/client@6.15.11)(@sanity/icons@2.11.7)(@sanity/types@3.36.4)(@sanity/ui@2.1.0)(next@14.1.4)(react@18.2.0)(sanity@3.36.4)(styled-components@6.1.8) react: specifier: ^18.2.0 version: 18.2.0 @@ -2224,17 +2224,6 @@ packages: '@floating-ui/utils': 0.2.1 dev: false - /@floating-ui/react-dom@2.0.0(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-Ke0oU3SeuABC2C4OFu2mSAwHIP5WUiV98O9YWoHV4Q5aT6E9k06DV0Khi5uYspR8xmmBk08t8ZDcz3TR3ARkEg==} - peerDependencies: - react: '>=16.8.0' - react-dom: '>=16.8.0' - dependencies: - '@floating-ui/dom': 1.6.3 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - dev: false - /@floating-ui/react-dom@2.0.8(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-HOdqOt3R3OGeTKidaLvJKcgg75S6tibQ3Tif4eyd91QnIJWr0NLvoXFpJA/j8HqkFSL68GDca9AuyWEHlhyClw==} peerDependencies: @@ -3018,23 +3007,6 @@ packages: resolution: {integrity: sha512-wtMYcV5GIDIhVyF/jjmdwq1GdlK07dRL40XMns73VbrFI7FteRltxv48bhYVZPcLkRXb0SHjpDS/icj9/yzbVA==} dev: false - /@sanity/groq-store@4.1.3: - resolution: {integrity: sha512-Yh3zbCkpnrowIG8+tMoZHGxV9HFMWVlZ4zhNfF1Y2rygi14SJteV+ildrlq3/OFq9/Y/cc6iXSD/+U6dErIpNw==} - engines: {node: '>= 18'} - dependencies: - '@sanity/eventsource': 5.0.1 - '@sanity/types': 3.36.4 - fast-deep-equal: 3.1.3 - groq: 3.36.4 - groq-js: 1.3.0 - mendoza: 3.0.3 - simple-get: 4.0.1 - split2: 4.2.0 - throttle-debounce: 5.0.0 - transitivePeerDependencies: - - supports-color - dev: false - /@sanity/icons@1.3.10(react@18.2.0): resolution: {integrity: sha512-5wVG/vIiGuGrSmq+Bl3PY7XDgQrGv0fyHdJI64FSulnr2wH3NMqZ6C59UFxnrZ93sr7kOt0zQFoNv2lkPBi0Cg==} peerDependencies: @@ -3185,39 +3157,35 @@ packages: - styled-components dev: false - /@sanity/preview-kit-compat@1.0.1(@sanity/client@6.15.11)(react@18.2.0): - resolution: {integrity: sha512-+GTC88roy4lvnlQYypFs6xSTQgBSw6bYfWKFQcjW37ZzOGXOZxnosYM3IYn8wev8+01RqNiuVzwVVKfPHi/EFA==} + /@sanity/preview-kit-compat@1.4.4(@sanity/client@6.15.11)(react@18.2.0): + resolution: {integrity: sha512-CYO/qFIc2fqV8cpAIYay43SfPIs/SFzT8ke+XgXYlzwXmShdDnKXNttfLDUWvxk6+nJiPRgzRN9kokC8ineP2g==} engines: {node: '>=18'} peerDependencies: - '@sanity/client': ^6.8.6 + '@sanity/client': ^6.12.3 react: ^18.2.0 dependencies: '@sanity/client': 6.15.11 react: 18.2.0 dev: false - /@sanity/preview-kit@4.0.3(@sanity/client@6.15.11)(react@18.2.0): - resolution: {integrity: sha512-H4fouJmYFFqB527P0iUUfvMZOckmRUCdJ5o9/8XdOobV9Lm1GH3f7LTv+SsSLbF47QGBXoavfHXVHF4tYTBc4g==} + /@sanity/preview-kit@5.0.20(@sanity/client@6.15.11)(react@18.2.0): + resolution: {integrity: sha512-UYNDCyLPMZ5QfPi3oBryPV6rJXvgocZ8ilH8rJsuR3hgRrVrSdV2bnYSrMRVdIQtd32PeFPnJqxtYNu6aXc4HA==} engines: {node: '>=18'} peerDependencies: - '@sanity/client': ^6.9.1 + '@sanity/client': ^6.12.4 react: ^18.0.0 peerDependenciesMeta: react: optional: true dependencies: '@sanity/client': 6.15.11 - '@sanity/eventsource': 5.0.1 - '@sanity/groq-store': 4.1.3 - '@sanity/preview-kit-compat': 1.0.1(@sanity/client@6.15.11)(react@18.2.0) + '@sanity/preview-kit-compat': 1.4.4(@sanity/client@6.15.11)(react@18.2.0) '@vercel/stega': 0.1.0 - lru-cache: 10.1.0 - mendoza: 3.0.3 + lru-cache: 10.2.0 + mendoza: 3.0.4 react: 18.2.0 react-fast-compare: 3.2.2 use-sync-external-store: 1.2.0(react@18.2.0) - transitivePeerDependencies: - - supports-color dev: false /@sanity/preview-url-secret@1.6.7(@sanity/client@6.15.11): @@ -3265,27 +3233,6 @@ packages: - supports-color dev: false - /@sanity/ui@1.9.3(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(styled-components@6.1.8): - resolution: {integrity: sha512-AdWEVFaK0Snk6xxP0lGPVP3QQYKwzkfGFpFZnL9d6UtWt8yeuS8BMLVAzmXzg14hrqH50ex9nvNl3eq6a0MWiw==} - engines: {node: '>=14.0.0'} - peerDependencies: - react: ^18 - react-dom: ^18 - react-is: ^18 - styled-components: ^5.2 || ^6 - dependencies: - '@floating-ui/react-dom': 2.0.0(react-dom@18.2.0)(react@18.2.0) - '@sanity/color': 2.2.5 - '@sanity/icons': 2.11.7(react@18.2.0) - csstype: 3.1.3 - framer-motion: 10.18.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - react-is: 18.2.0 - react-refractor: 2.1.7(react@18.2.0) - styled-components: 6.1.8(react-dom@18.2.0)(react@18.2.0) - dev: false - /@sanity/ui@2.1.0(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(styled-components@6.1.8): resolution: {integrity: sha512-iGqGlrDwgoAMjjlZpd8msOCh4GJAQ8he/KhiXUw/4wPH/NYETbuzHLS5EeIOeNL6fMH4tP/8fjm1hQ2BHAkBDw==} engines: {node: '>=14.0.0'} @@ -3364,6 +3311,26 @@ packages: - react-is dev: false + /@sanity/visual-editing@1.2.2(next@14.1.4): + resolution: {integrity: sha512-iR1stYfPPhBJLjwKY3MBgr0DcRADgnRaTJvZ3nUJ2puGVniPoSxJ9Zj4PkspferU8997RKKtupN9m9spFYskXg==} + engines: {node: '>=18'} + peerDependencies: + '@remix-run/react': '>= 2' + next: '>= 13' + peerDependenciesMeta: + '@remix-run/react': + optional: true + next: + optional: true + dependencies: + '@vercel/stega': 0.1.0 + next: 14.1.4(@babel/core@7.24.4)(react-dom@18.2.0)(react@18.2.0) + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + react-is: 18.2.0 + scroll-into-view-if-needed: 3.1.0 + dev: false + /@sanity/webhook@4.0.0: resolution: {integrity: sha512-IRjtj17tHSmxHWZvgRnLZbWj8J8G4jqOWOYC25eV4EcfVn1yZCs0x+km6+PSiJgOphSX6Nm1+X6UJOT+GnWIFw==} engines: {node: '>=18.0.0'} @@ -4831,13 +4798,6 @@ packages: resolution: {integrity: sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==} dev: false - /decompress-response@6.0.0: - resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==} - engines: {node: '>=10'} - dependencies: - mimic-response: 3.1.0 - dev: false - /decompress-response@7.0.0: resolution: {integrity: sha512-6IvPrADQyyPGLpMnUh6kfKiqy7SrbXbjoUuZ90WMBJKErzv2pCiwlGEXjRX9/54OnTq+XFVnkOnOMzclLI5aEA==} engines: {node: '>=10'} @@ -5846,24 +5806,6 @@ packages: mime-types: 2.1.35 dev: false - /framer-motion@10.18.0(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-oGlDh1Q1XqYPksuTD/usb0I70hq95OUzmL9+6Zd+Hs4XV0oaISBa/UUMSjYiq6m8EUF32132mOJ8xVZS+I0S6w==} - peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - peerDependenciesMeta: - react: - optional: true - react-dom: - optional: true - dependencies: - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - tslib: 2.6.2 - optionalDependencies: - '@emotion/is-prop-valid': 0.8.8 - dev: false - /framer-motion@11.0.25(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-mRt7vQGzA7++wTgb+PW1TrlXXgndqR6hCiJ48fXr2X9alte2hPQiAq556HRwDCt0Q5X98MNvcSe4KUa27Gm5Lg==} peerDependencies: @@ -6195,11 +6137,6 @@ packages: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} dev: true - /groq-js@1.3.0: - resolution: {integrity: sha512-J7+JcxM0OvoowSkhNZAabCLueldEMkKzd9ufCEDRjKvkD1PcBUwyfsGvxUI59UojRCqFqp0y76LLzPzwSZTetw==} - engines: {node: '>= 14'} - dev: false - /groq-js@1.7.0: resolution: {integrity: sha512-K+yhiPIBW7gkPYKCdqGB6xnC7qkxf4Kuweh/tDNlOgP2fzLEtSI/XWqLDDGfHRUutdYCFXuOUgbIwDbtyyLACg==} engines: {node: '>= 14'} @@ -7451,11 +7388,6 @@ packages: dependencies: js-tokens: 4.0.0 - /lru-cache@10.1.0: - resolution: {integrity: sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==} - engines: {node: 14 || >=16.14} - dev: false - /lru-cache@10.2.0: resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==} engines: {node: 14 || >=16.14} @@ -7532,8 +7464,8 @@ packages: resolution: {integrity: sha512-mXfNXte0RSWl0rEIsQhXutfM2R2Oa7UyKDD7XoZMEbKeucTRms04y5y41U8gLqPzRx7ViN/QyYnTR2TX/5tawA==} dev: false - /mendoza@3.0.3: - resolution: {integrity: sha512-xh0Angj7/kuLzJHglH7dVetoSyUt1/2wjmuugB0iBftteS6+xKvwC+bhs+IvF9tITdEdZpIl0XT5QLaL18A5dA==} + /mendoza@3.0.4: + resolution: {integrity: sha512-kGlLhn1HF57oUK9DzJpqiqxHS9KJ0JcFRtNKBM8l970nepx3/GKs1uAIlBfq5mjmndk7IGa4vQ2ofcqMKMPTiA==} engines: {node: '>=14.18'} dev: false @@ -7704,52 +7636,25 @@ packages: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} dev: true - /next-sanity@6.1.4(@sanity/client@6.15.11)(@sanity/icons@2.11.7)(@sanity/types@3.36.4)(@sanity/ui@1.9.3)(next@14.1.4)(react@18.2.0)(sanity@3.36.4)(styled-components@6.1.8): - resolution: {integrity: sha512-GXNZ0vJcFNPCLaAIpgdCDF5RhtsfWLOEa8Qr/FJfXv0V/C6rjWub7HbY2PfKpQxAWMVS4XyV/0hNBFgUaGdUtA==} - engines: {node: '>=18'} + /next-sanity@7.1.4(@sanity/client@6.15.11)(@sanity/icons@2.11.7)(@sanity/types@3.36.4)(@sanity/ui@2.1.0)(next@14.1.4)(react@18.2.0)(sanity@3.36.4)(styled-components@6.1.8): + resolution: {integrity: sha512-bq/VkejvPgV95mi5fxR01rALG1QURe0nO2g3HyUuiZRyTd0teFgYvCVf1b5PBndKhD15Cd3UK/WwcLKRxxEr3A==} + engines: {node: '>=18.17'} peerDependencies: - '@sanity/client': ^6.9.1 - '@sanity/icons': ^2.0 - '@sanity/types': ^3.19 - '@sanity/ui': ^1.8 - next: ^14.0 + '@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.19 + sanity: ^3.25 styled-components: ^5.2 || ^6.0 dependencies: '@sanity/client': 6.15.11 '@sanity/icons': 2.11.7(react@18.2.0) - '@sanity/preview-kit': 4.0.3(@sanity/client@6.15.11)(react@18.2.0) - '@sanity/types': 3.36.4 - '@sanity/ui': 1.9.3(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(styled-components@6.1.8) - '@sanity/webhook': 4.0.0 - groq: 3.36.4 - next: 14.1.4(@babel/core@7.24.4)(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - sanity: 3.36.4(@types/node@18.17.11)(@types/react@18.2.75)(react-dom@18.2.0)(react@18.2.0)(styled-components@6.1.8) - styled-components: 6.1.8(react-dom@18.2.0)(react@18.2.0) - transitivePeerDependencies: - - supports-color - dev: false - - /next-sanity@6.1.4(@sanity/client@6.15.11)(@sanity/icons@2.11.7)(@sanity/types@3.36.4)(@sanity/ui@2.1.0)(next@14.1.4)(react@18.2.0)(sanity@3.36.4)(styled-components@6.1.8): - resolution: {integrity: sha512-GXNZ0vJcFNPCLaAIpgdCDF5RhtsfWLOEa8Qr/FJfXv0V/C6rjWub7HbY2PfKpQxAWMVS4XyV/0hNBFgUaGdUtA==} - engines: {node: '>=18'} - peerDependencies: - '@sanity/client': ^6.9.1 - '@sanity/icons': ^2.0 - '@sanity/types': ^3.19 - '@sanity/ui': ^1.8 - next: ^14.0 - react: ^18.2 - sanity: ^3.19 - styled-components: ^5.2 || ^6.0 - dependencies: - '@sanity/client': 6.15.11 - '@sanity/icons': 2.11.7(react@18.2.0) - '@sanity/preview-kit': 4.0.3(@sanity/client@6.15.11)(react@18.2.0) + '@sanity/preview-kit': 5.0.20(@sanity/client@6.15.11)(react@18.2.0) '@sanity/types': 3.36.4 '@sanity/ui': 2.1.0(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(styled-components@6.1.8) + '@sanity/visual-editing': 1.2.2(next@14.1.4) '@sanity/webhook': 4.0.0 groq: 3.36.4 next: 14.1.4(@babel/core@7.24.4)(react-dom@18.2.0)(react@18.2.0) @@ -7757,7 +7662,7 @@ packages: sanity: 3.36.4(@types/node@18.17.11)(@types/react@18.2.75)(react-dom@18.2.0)(react@18.2.0)(styled-components@6.1.8) styled-components: 6.1.8(react-dom@18.2.0)(react@18.2.0) transitivePeerDependencies: - - supports-color + - '@remix-run/react' dev: false /next@14.1.4(@babel/core@7.24.4)(react-dom@18.2.0)(react@18.2.0): @@ -9264,18 +9169,6 @@ packages: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} - /simple-concat@1.0.1: - resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==} - dev: false - - /simple-get@4.0.1: - resolution: {integrity: sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==} - dependencies: - decompress-response: 6.0.0 - once: 1.4.0 - simple-concat: 1.0.1 - dev: false - /simple-wcswidth@1.0.1: resolution: {integrity: sha512-xMO/8eNREtaROt7tJvWJqHBDTMFN4eiQ5I4JRMuilwfnFcV5W9u7RUkueNkdw0jPqGMX36iCywelS5yilTuOxg==} dev: false @@ -9733,11 +9626,6 @@ packages: engines: {node: '>=8'} dev: false - /throttle-debounce@5.0.0: - resolution: {integrity: sha512-2iQTSgkkc1Zyk0MeVrt/3BvuOXYPl/R8Z0U2xxo9rjwNciaHDG3R+Lm6dh4EeUci49DanvBnuqI6jshoQQRGEg==} - engines: {node: '>=12.22'} - dev: false - /through2@2.0.5: resolution: {integrity: sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==} dependencies: