next-sanity 5.2.4 → 5.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-sanity",
3
- "version": "5.2.4",
3
+ "version": "5.2.6",
4
4
  "description": "Sanity.io toolkit for Next.js",
5
5
  "keywords": [
6
6
  "sanity",
@@ -160,23 +160,24 @@
160
160
  "singleQuote": true
161
161
  },
162
162
  "dependencies": {
163
- "@sanity/preview-kit": "2.4.9",
163
+ "@sanity/preview-kit": "2.4.12",
164
164
  "@sanity/webhook": "2.0.0",
165
165
  "groq": "^3.0.0"
166
166
  },
167
167
  "devDependencies": {
168
+ "@next/bundle-analyzer": "^13.4.13",
168
169
  "@next/eslint-plugin-next": "13.4.13",
169
170
  "@rollup/plugin-url": "^8.0.1",
170
- "@sanity/client": "6.4.3",
171
+ "@sanity/client": "6.4.5",
171
172
  "@sanity/eslint-config-studio": "^3.0.0",
172
173
  "@sanity/image-url": "^1.0.2",
173
- "@sanity/pkg-utils": "^2.4.1",
174
+ "@sanity/pkg-utils": "^2.4.5",
174
175
  "@sanity/semantic-release-preset": "^4.1.3",
175
176
  "@sanity/ui": "^1.7.4",
176
- "@sanity/vision": "3.14.5",
177
+ "@sanity/vision": "3.15.1",
177
178
  "@types/eventsource": "^1.1.11",
178
179
  "@types/jest": "^29.5.3",
179
- "@types/react": "^18.2.18",
180
+ "@types/react": "^18.2.20",
180
181
  "@types/react-dom": "^18.2.7",
181
182
  "@types/styled-components": "^5.1.26",
182
183
  "@typescript-eslint/eslint-plugin": "^6.3.0",
@@ -187,7 +188,7 @@
187
188
  "eslint-gitignore": "^0.1.0",
188
189
  "eslint-plugin-prettier": "^5.0.0",
189
190
  "eslint-plugin-simple-import-sort": "^10.0.0",
190
- "groqd": "^0.15.7",
191
+ "groqd": "^0.15.8",
191
192
  "jest": "^29.6.2",
192
193
  "jest-environment-jsdom": "^29.6.2",
193
194
  "ls-engines": "^0.9.0",
@@ -195,19 +196,19 @@
195
196
  "postcss": "^8.4.27",
196
197
  "prettier": "^3.0.1",
197
198
  "prettier-plugin-packagejson": "^2.4.5",
198
- "prettier-plugin-tailwindcss": "^0.4.1",
199
+ "prettier-plugin-tailwindcss": "^0.5.1",
199
200
  "react": "^18.2.0",
200
201
  "react-dom": "^18.2.0",
201
202
  "react-is": "^18.2.0",
202
- "rollup": "^3.27.2",
203
- "sanity": "3.14.5",
203
+ "rollup": "^3.28.0",
204
+ "sanity": "3.15.1",
204
205
  "styled-components": "^5.3.11",
205
206
  "tailwindcss": "^3.3.3",
206
207
  "typescript": "^5.1.6",
207
208
  "url-loader": "^4.1.1"
208
209
  },
209
210
  "peerDependencies": {
210
- "@sanity/client": "^6.4.3",
211
+ "@sanity/client": "^6.4.5",
211
212
  "@sanity/icons": "^2.0.0",
212
213
  "@sanity/types": "^3.0.0",
213
214
  "@sanity/ui": "^1.0.0",
@@ -0,0 +1,29 @@
1
+ // Tests the pattern used by next-sanity
2
+
3
+ import type {LiveQueryProviderProps} from '@sanity/preview-kit'
4
+ import dynamic from 'next/dynamic'
5
+
6
+ export type {CacheOptions, LiveQueryProviderProps, Logger} from '@sanity/preview-kit'
7
+
8
+ const GroqStoreProvider = dynamic(
9
+ () => import('@sanity/preview-kit/internals/groq-store-provider'),
10
+ )
11
+ const LiveStoreProvider = dynamic(
12
+ () => import('@sanity/preview-kit/internals/live-store-provider'),
13
+ )
14
+ const DynamicLiveQueryProvider = dynamic(
15
+ () => import('@sanity/preview-kit/internals/live-query-provider'),
16
+ )
17
+
18
+ // eslint-disable-next-line no-console
19
+ console.log('app/LazyLiveQueryProvider.tsx')
20
+
21
+ export default function LiveQueryProvider(props: LiveQueryProviderProps): React.JSX.Element {
22
+ return (
23
+ <DynamicLiveQueryProvider
24
+ {...props}
25
+ GroqStoreProvider={GroqStoreProvider}
26
+ LiveStoreProvider={LiveStoreProvider}
27
+ />
28
+ )
29
+ }