@sanity/sdk-react 2.11.0 → 2.11.1
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": "@sanity/sdk-react",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Sanity SDK React toolkit for Content OS",
|
|
6
6
|
"keywords": [
|
|
@@ -45,41 +45,41 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@sanity/client": "^7.22.0",
|
|
47
47
|
"@sanity/message-protocol": "^0.23.0",
|
|
48
|
-
"@sanity/types": "^5.
|
|
48
|
+
"@sanity/types": "^5.24.0",
|
|
49
49
|
"groq": "3.88.1-typegen-experimental.0",
|
|
50
50
|
"react-compiler-runtime": "19.1.0-rc.2",
|
|
51
|
-
"react-error-boundary": "^
|
|
51
|
+
"react-error-boundary": "^6.1.1",
|
|
52
52
|
"rxjs": "^7.8.2",
|
|
53
|
-
"@sanity/sdk": "2.11.
|
|
53
|
+
"@sanity/sdk": "2.11.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@sanity/browserslist-config": "^1.0.5",
|
|
57
|
-
"@sanity/comlink": "^
|
|
57
|
+
"@sanity/comlink": "^4.0.1",
|
|
58
58
|
"@sanity/pkg-utils": "^8.1.29",
|
|
59
59
|
"@sanity/prettier-config": "^1.0.6",
|
|
60
60
|
"@testing-library/jest-dom": "^6.9.1",
|
|
61
|
-
"@testing-library/react": "^16.3.
|
|
62
|
-
"@types/node": "^
|
|
63
|
-
"@types/react": "^19.2.
|
|
61
|
+
"@testing-library/react": "^16.3.2",
|
|
62
|
+
"@types/node": "^24.12.3",
|
|
63
|
+
"@types/react": "^19.2.14",
|
|
64
64
|
"@types/react-dom": "^19.2.3",
|
|
65
65
|
"@vitejs/plugin-react": "^4.7.0",
|
|
66
66
|
"@vitest/coverage-v8": "4.1.5",
|
|
67
67
|
"babel-plugin-react-compiler": "19.1.0-rc.1",
|
|
68
|
-
"eslint": "^9.
|
|
69
|
-
"groq-js": "^1.
|
|
70
|
-
"jsdom": "^29.
|
|
71
|
-
"prettier": "^3.
|
|
72
|
-
"react": "^19.2.
|
|
73
|
-
"react-dom": "^19.2.
|
|
68
|
+
"eslint": "^9.39.4",
|
|
69
|
+
"groq-js": "^1.30.1",
|
|
70
|
+
"jsdom": "^29.1.1",
|
|
71
|
+
"prettier": "^3.8.3",
|
|
72
|
+
"react": "^19.2.6",
|
|
73
|
+
"react-dom": "^19.2.6",
|
|
74
74
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
75
|
-
"typescript": "^5.
|
|
76
|
-
"vite": "^7.
|
|
77
|
-
"vitest": "^4.1.
|
|
78
|
-
"@repo/config-test": "0.0.1",
|
|
75
|
+
"typescript": "^5.9.3",
|
|
76
|
+
"vite": "^7.3.3",
|
|
77
|
+
"vitest": "^4.1.5",
|
|
79
78
|
"@repo/package.bundle": "3.82.0",
|
|
80
|
-
"@repo/
|
|
79
|
+
"@repo/config-test": "0.0.1",
|
|
81
80
|
"@repo/tsconfig": "0.0.1",
|
|
82
|
-
"@repo/config-eslint": "0.0.0"
|
|
81
|
+
"@repo/config-eslint": "0.0.0",
|
|
82
|
+
"@repo/package.config": "0.0.1"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {useMemo} from 'react'
|
|
2
|
-
import {type FallbackProps} from 'react-error-boundary'
|
|
2
|
+
import {type FallbackProps, getErrorMessage} from 'react-error-boundary'
|
|
3
3
|
|
|
4
4
|
import {Error} from './Error'
|
|
5
5
|
|
|
@@ -30,7 +30,7 @@ export function CorsErrorComponent({projectId, error}: CorsErrorComponentProps):
|
|
|
30
30
|
},
|
|
31
31
|
}
|
|
32
32
|
: {
|
|
33
|
-
description: error
|
|
33
|
+
description: getErrorMessage(error),
|
|
34
34
|
})}
|
|
35
35
|
/>
|
|
36
36
|
)
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useEffectiveContextResource,
|
|
12
12
|
} from '../helpers/useNormalizedResourceOptions'
|
|
13
13
|
// this import is used in an `{@link useEditDocument}`
|
|
14
|
-
// eslint-disable-next-line
|
|
14
|
+
// eslint-disable-next-line import/consistent-type-specifier-style
|
|
15
15
|
import type {useEditDocument} from './useEditDocument'
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -7,9 +7,9 @@ import {createStateSourceHook} from '../helpers/createStateSourceHook'
|
|
|
7
7
|
import {useNormalizedResourceOptions} from '../helpers/useNormalizedResourceOptions'
|
|
8
8
|
import {useTrackHookUsage} from '../helpers/useTrackHookUsage'
|
|
9
9
|
// used in an `{@link useDocumentProjection}` and `{@link useQuery}`
|
|
10
|
-
// eslint-disable-next-line import/consistent-type-specifier-style
|
|
10
|
+
// eslint-disable-next-line import/consistent-type-specifier-style
|
|
11
11
|
import type {useDocumentProjection} from '../projection/useDocumentProjection'
|
|
12
|
-
// eslint-disable-next-line import/consistent-type-specifier-style
|
|
12
|
+
// eslint-disable-next-line import/consistent-type-specifier-style
|
|
13
13
|
import type {useQuery} from '../query/useQuery'
|
|
14
14
|
|
|
15
15
|
const useDocumentValue = createStateSourceHook({
|