@sanity/language-filter 3.0.0-v3-studio.9 → 3.0.0

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/README.md CHANGED
@@ -1,9 +1,6 @@
1
1
  # @sanity/language-filter
2
2
 
3
- > **NOTE**
4
- >
5
- > This is the **Sanity Studio v3 version** of @sanity/language-filter.
6
- >
3
+ > This is a **Sanity Studio v3** plugin.
7
4
  > For the v2 version, please refer to the [v2 version](https://github.com/sanity-io/sanity/tree/next/packages/%40sanity/language-filter).
8
5
 
9
6
  # Field-level translation filter Plugin for Sanity.io
@@ -38,13 +35,13 @@ For **document-level translations** you should use the [@sanity/document-interna
38
35
  ## Installation
39
36
 
40
37
  ```
41
- npm install --save @sanity/language-filter@studio-v3
38
+ npm install --save @sanity/language-filter
42
39
  ```
43
40
 
44
41
  or
45
42
 
46
43
  ```
47
- yarn add @sanity/language-filter@studio-v3
44
+ yarn add @sanity/language-filter
48
45
  ```
49
46
 
50
47
  ## Usage
package/package.json CHANGED
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "name": "@sanity/language-filter",
3
- "version": "3.0.0-v3-studio.9",
3
+ "version": "3.0.0",
4
4
  "description": "A Sanity plugin that supports filtering localized fields by language",
5
- "author": "Sanity.io <hello@sanity.io>",
5
+ "homepage": "https://github.com/sanity-io/language-filter#readme",
6
+ "bugs": {
7
+ "url": "https://github.com/sanity-io/language-filter/issues"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git@github.com:sanity-io/language-filter.git"
12
+ },
6
13
  "license": "MIT",
7
- "source": "./src/index.ts",
8
- "main": "./lib/index.js",
9
- "module": "./lib/index.esm.js",
10
- "types": "./lib/src/index.d.ts",
14
+ "author": "Sanity.io <hello@sanity.io>",
11
15
  "exports": {
12
16
  ".": {
13
17
  "types": "./lib/src/index.d.ts",
@@ -15,8 +19,13 @@
15
19
  "import": "./lib/index.esm.js",
16
20
  "require": "./lib/index.js",
17
21
  "default": "./lib/index.esm.js"
18
- }
22
+ },
23
+ "./package.json": "./package.json"
19
24
  },
25
+ "main": "./lib/index.js",
26
+ "module": "./lib/index.esm.js",
27
+ "source": "./src/index.ts",
28
+ "types": "./lib/src/index.d.ts",
20
29
  "files": [
21
30
  "src",
22
31
  "lib",
@@ -24,36 +33,29 @@
24
33
  "sanity.json"
25
34
  ],
26
35
  "scripts": {
27
- "clean": "rimraf lib",
28
- "lint": "eslint .",
29
36
  "prebuild": "npm run clean && plugin-kit verify-package --silent && pkg-utils",
30
- "build": "pkg-utils build",
31
- "watch": "pkg-utils watch",
32
- "test": "jest",
37
+ "build": "pkg-utils build --strict",
38
+ "clean": "rimraf lib",
33
39
  "link-watch": "plugin-kit link-watch",
40
+ "lint": "eslint .",
41
+ "prepare": "husky install",
34
42
  "prepublishOnly": "npm run build",
35
- "prepare": "husky install"
36
- },
37
- "repository": {
38
- "type": "git",
39
- "url": "git@github.com:sanity-io/language-filter.git"
40
- },
41
- "engines": {
42
- "node": ">=14.0.0"
43
+ "test": "jest",
44
+ "watch": "pkg-utils watch"
43
45
  },
44
46
  "dependencies": {
45
- "@sanity/icons": "1.3.9-beta.3",
47
+ "@sanity/icons": "^2.0.0",
46
48
  "@sanity/incompatible-plugin": "^1.0.4",
47
- "@sanity/ui": "1.0.0-beta.32",
48
- "@sanity/util": "3.0.0-rc.0"
49
+ "@sanity/ui": "^1.0.0",
50
+ "@sanity/util": "^3.0.0"
49
51
  },
50
52
  "devDependencies": {
51
53
  "@babel/preset-env": "^7.19.4",
52
54
  "@babel/preset-react": "^7.18.6",
53
55
  "@commitlint/cli": "^17.2.0",
54
56
  "@commitlint/config-conventional": "^17.2.0",
55
- "@sanity/pkg-utils": "^1.16.2",
56
- "@sanity/plugin-kit": "^2.0.9",
57
+ "@sanity/pkg-utils": "^1.17.2",
58
+ "@sanity/plugin-kit": "^2.1.5",
57
59
  "@sanity/semantic-release-preset": "^2.0.2",
58
60
  "@types/jest": "^29.2.1",
59
61
  "@typescript-eslint/eslint-plugin": "^5.42.0",
@@ -68,20 +70,20 @@
68
70
  "jest": "^29.2.2",
69
71
  "lint-staged": "^13.0.3",
70
72
  "prettier": "^2.7.1",
71
- "react": "^18.2.0",
73
+ "prettier-plugin-packagejson": "^2.3.0",
74
+ "react": "^18",
72
75
  "rimraf": "^3.0.2",
73
- "sanity": "dev-preview || 3.0.0-rc.0",
76
+ "sanity": "^3.0.0",
74
77
  "ts-jest": "^29.0.3",
75
78
  "typescript": "^4.8.4"
76
79
  },
77
80
  "peerDependencies": {
78
- "react": "^18.0.0",
79
- "sanity": "dev-preview || 3.0.0-rc.0"
81
+ "react": "^18",
82
+ "sanity": "^3.0.0"
80
83
  },
81
- "bugs": {
82
- "url": "https://github.com/sanity-io/language-filter/issues"
84
+ "engines": {
85
+ "node": ">=14"
83
86
  },
84
- "homepage": "https://github.com/sanity-io/language-filter#readme",
85
87
  "sanityPlugin": {
86
88
  "verifyPackage": {
87
89
  "babelConfig": false
@@ -5,7 +5,7 @@ export default showIncompatiblePluginDialog({
5
5
  name: name,
6
6
  versions: {
7
7
  v3: version,
8
- v2: undefined,
8
+ v2: '^2.35.0',
9
9
  },
10
10
  sanityExchangeUrl,
11
11
  })