@sanity/language-filter 3.0.0-v3-studio.5 → 3.0.0-v3-studio.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 +5 -5
- package/src/filterField.test.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/language-filter",
|
|
3
|
-
"version": "3.0.0-v3-studio.
|
|
3
|
+
"version": "3.0.0-v3-studio.6",
|
|
4
4
|
"description": "A Sanity plugin that supports filtering localized fields by language",
|
|
5
5
|
"author": "Sanity.io <hello@sanity.io>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@sanity/icons": "^1.3.4",
|
|
43
43
|
"@sanity/incompatible-plugin": "^1.0.4",
|
|
44
|
-
"@sanity/ui": "^0.
|
|
45
|
-
"@sanity/util": "3.0.0-dev-preview.
|
|
44
|
+
"@sanity/ui": "^1.0.0-beta.31",
|
|
45
|
+
"@sanity/util": "3.0.0-dev-preview.22"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@babel/preset-env": "^7.18.10",
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
"prettier": "^2.7.1",
|
|
70
70
|
"react": "^18.0.0",
|
|
71
71
|
"rimraf": "^3.0.2",
|
|
72
|
-
"sanity": "3.0.0-dev-preview.
|
|
72
|
+
"sanity": "3.0.0-dev-preview.22",
|
|
73
73
|
"ts-jest": "^28.0.8",
|
|
74
74
|
"typescript": "4.7.4"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"react": "^18.0.0",
|
|
78
|
-
"sanity": "dev-preview"
|
|
78
|
+
"sanity": "dev-preview || 3.0.0-dev-preview.22"
|
|
79
79
|
},
|
|
80
80
|
"bugs": {
|
|
81
81
|
"url": "https://github.com/sanity-io/language-filter/issues"
|
package/src/filterField.test.ts
CHANGED
|
@@ -7,10 +7,14 @@ describe('filterField', () => {
|
|
|
7
7
|
name: 'some-doc',
|
|
8
8
|
jsonType: 'object',
|
|
9
9
|
fields: [],
|
|
10
|
+
// eslint-disable-next-line camelcase
|
|
11
|
+
__experimental_search: [],
|
|
10
12
|
type: {
|
|
11
13
|
name: 'document',
|
|
12
14
|
jsonType: 'object',
|
|
13
15
|
fields: [],
|
|
16
|
+
// eslint-disable-next-line camelcase
|
|
17
|
+
__experimental_search: [],
|
|
14
18
|
},
|
|
15
19
|
}
|
|
16
20
|
it('should be enabled when documentTypes is missing', () => {
|
|
@@ -48,6 +52,8 @@ describe('filterField', () => {
|
|
|
48
52
|
name: 'locale_parent',
|
|
49
53
|
jsonType: 'object',
|
|
50
54
|
fields: [],
|
|
55
|
+
// eslint-disable-next-line camelcase
|
|
56
|
+
__experimental_search: [],
|
|
51
57
|
}
|
|
52
58
|
const member: FieldMember = {
|
|
53
59
|
name: 'nb',
|