sanity 5.2.0-next.68 → 5.2.0-next.70
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/lib/_chunks-cjs/mockBrowserEnvironment.cjs +4 -2
- package/lib/_chunks-cjs/mockBrowserEnvironment.cjs.map +1 -1
- package/lib/_chunks-es/package.js +1 -1
- package/lib/_chunks-es/pane.js +4 -3
- package/lib/_chunks-es/pane.js.map +1 -1
- package/lib/_chunks-es/runtime.js +6 -2
- package/lib/_chunks-es/runtime.js.map +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/mock-browser-env-stub-loader.mjs +27 -0
- package/package.json +15 -14
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const fileExtensions = [
|
|
2
|
+
'.css',
|
|
3
|
+
'.eot',
|
|
4
|
+
'.gif',
|
|
5
|
+
'.jpeg',
|
|
6
|
+
'.jpg',
|
|
7
|
+
'.otf',
|
|
8
|
+
'.png',
|
|
9
|
+
'.sass',
|
|
10
|
+
'.scss',
|
|
11
|
+
'.svg',
|
|
12
|
+
'.ttf',
|
|
13
|
+
'.webp',
|
|
14
|
+
'.woff',
|
|
15
|
+
'.woff2',
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
export async function load(url, context, nextLoad) {
|
|
19
|
+
if (fileExtensions.some((extension) => url.endsWith(extension))) {
|
|
20
|
+
return {
|
|
21
|
+
format: 'module',
|
|
22
|
+
source: `export default ${JSON.stringify(url)}`,
|
|
23
|
+
shortCircuit: true,
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return nextLoad(url, context)
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sanity",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.70+8be4aa6b54",
|
|
4
4
|
"description": "Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -109,7 +109,8 @@
|
|
|
109
109
|
"bin",
|
|
110
110
|
"lib",
|
|
111
111
|
"dist",
|
|
112
|
-
"static"
|
|
112
|
+
"static",
|
|
113
|
+
"mock-browser-env-stub-loader.mjs"
|
|
113
114
|
],
|
|
114
115
|
"dependencies": {
|
|
115
116
|
"@date-fns/tz": "^1.4.1",
|
|
@@ -249,12 +250,12 @@
|
|
|
249
250
|
"which": "^5.0.0",
|
|
250
251
|
"xstate": "^5.25.0",
|
|
251
252
|
"yargs": "^17.7.2",
|
|
252
|
-
"@sanity/cli": "5.2.0-next.
|
|
253
|
-
"@sanity/
|
|
254
|
-
"@sanity/
|
|
255
|
-
"@sanity/
|
|
253
|
+
"@sanity/cli": "5.2.0-next.70+8be4aa6b54",
|
|
254
|
+
"@sanity/mutator": "5.2.0-next.70+8be4aa6b54",
|
|
255
|
+
"@sanity/schema": "5.2.0-next.70+8be4aa6b54",
|
|
256
|
+
"@sanity/diff": "5.2.0-next.70+8be4aa6b54",
|
|
256
257
|
"@sanity/types": "5.1.0",
|
|
257
|
-
"@sanity/util": "5.2.0-next.
|
|
258
|
+
"@sanity/util": "5.2.0-next.70+8be4aa6b54"
|
|
258
259
|
},
|
|
259
260
|
"devDependencies": {
|
|
260
261
|
"@playwright/experimental-ct-react": "1.56.1",
|
|
@@ -300,13 +301,13 @@
|
|
|
300
301
|
"swr": "2.2.5",
|
|
301
302
|
"vitest": "^3.2.4",
|
|
302
303
|
"vitest-package-exports": "^1.1.1",
|
|
303
|
-
"@repo/
|
|
304
|
-
"@repo/
|
|
305
|
-
"@repo/
|
|
306
|
-
"@repo/
|
|
307
|
-
"@repo/
|
|
308
|
-
"@repo/
|
|
309
|
-
"@sanity/codegen": "5.2.0-next.
|
|
304
|
+
"@repo/package.bundle": "5.2.0-next.70+8be4aa6b54",
|
|
305
|
+
"@repo/eslint-config": "5.2.0-next.70+8be4aa6b54",
|
|
306
|
+
"@repo/package.config": "5.2.0-next.70+8be4aa6b54",
|
|
307
|
+
"@repo/test-config": "5.2.0-next.70+8be4aa6b54",
|
|
308
|
+
"@repo/tsconfig": "5.2.0-next.70+8be4aa6b54",
|
|
309
|
+
"@repo/dev-aliases": "5.2.0-next.70+8be4aa6b54",
|
|
310
|
+
"@sanity/codegen": "5.2.0-next.70+8be4aa6b54"
|
|
310
311
|
},
|
|
311
312
|
"peerDependencies": {
|
|
312
313
|
"react": "^19.2.2",
|