sanity-plugin-utils 1.8.0 → 2.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/package.json CHANGED
@@ -1,102 +1,63 @@
1
1
  {
2
2
  "name": "sanity-plugin-utils",
3
- "version": "1.8.0",
3
+ "version": "2.0.0",
4
4
  "description": "Handy hooks and clever components for Sanity Studio v3",
5
5
  "keywords": [
6
6
  "sanity",
7
7
  "sanity-plugin"
8
8
  ],
9
- "homepage": "https://github.com/SimeonGriggs/sanity-plugin-utils#readme",
9
+ "homepage": "https://github.com/sanity-io/plugins/tree/main/plugins/sanity-plugin-utils#readme",
10
10
  "bugs": {
11
- "url": "https://github.com/SimeonGriggs/sanity-plugin-utils/issues"
11
+ "url": "https://github.com/sanity-io/plugins/issues"
12
12
  },
13
+ "license": "MIT",
14
+ "author": "Sanity.io <hello@sanity.io>",
13
15
  "repository": {
14
16
  "type": "git",
15
- "url": "git@github.com:SimeonGriggs/sanity-plugin-utils.git"
17
+ "url": "git+ssh://git@github.com/sanity-io/plugins.git",
18
+ "directory": "plugins/sanity-plugin-utils"
16
19
  },
17
- "license": "MIT",
18
- "author": "Simeon Griggs <simeon@sanity.io>",
20
+ "files": [
21
+ "dist"
22
+ ],
19
23
  "type": "module",
20
- "sideEffects": false,
21
- "browserslist": "extends @sanity/browserslist-config",
24
+ "types": "./dist/index.d.ts",
22
25
  "exports": {
23
- ".": {
24
- "source": "./src/index.ts",
25
- "import": "./lib/index.js",
26
- "require": "./lib/index.cjs",
27
- "default": "./lib/index.js"
28
- },
26
+ ".": "./dist/index.js",
29
27
  "./package.json": "./package.json"
30
28
  },
31
- "main": "./lib/index.cjs",
32
- "module": "./lib/index.js",
33
- "types": "./lib/index.d.ts",
34
- "files": [
35
- "lib",
36
- "sanity.json",
37
- "src",
38
- "v2-incompatible.js"
39
- ],
40
- "scripts": {
41
- "build": "plugin-kit verify-package --silent && pkg-utils build --strict --check --clean",
42
- "clean": "rimraf lib",
43
- "compile": "tsc --noEmit",
44
- "eslint": "eslint --ext=.js,.jsx,.mjs,.ts,.tsx --quiet",
45
- "link-watch": "plugin-kit link-watch",
46
- "lint": "eslint .",
47
- "lint:fix": "eslint . --quiet --fix",
48
- "prepare": "husky install",
49
- "prepublishOnly": "npm run build",
50
- "watch": "pkg-utils watch --strict",
51
- "format": "prettier --write --cache --ignore-unknown ."
52
- },
53
29
  "dependencies": {
30
+ "@sanity/asset-utils": "^2.3.0",
54
31
  "@sanity/icons": "^3.7.4",
55
- "@sanity/incompatible-plugin": "^1.0.5",
56
- "@sanity/ui": "^3.1.8",
32
+ "@sanity/image-url": "^2.0.3",
33
+ "@sanity/ui": "^3.2.0",
57
34
  "react-fast-compare": "^3.2.2"
58
35
  },
59
36
  "devDependencies": {
60
- "@commitlint/cli": "^19.3.0",
61
- "@commitlint/config-conventional": "^19.2.2",
62
- "@sanity/pkg-utils": "^6.12.0",
63
- "@sanity/plugin-kit": "^4.0.18",
64
- "@sanity/semantic-release-preset": "^4.1.7",
65
- "@types/react": "^18.3.3",
66
- "@typescript-eslint/eslint-plugin": "^6.14.0",
67
- "@typescript-eslint/parser": "^6.14.0",
68
- "eslint": "^8.55.0",
69
- "eslint-config-prettier": "^9.1.0",
70
- "eslint-config-sanity": "^7.0.1",
71
- "eslint-plugin-prettier": "^5.0.1",
72
- "eslint-plugin-react": "^7.33.2",
73
- "eslint-plugin-react-hooks": "^4.6.0",
74
- "husky": "^9.0.11",
75
- "lint-staged": "^15.2.5",
76
- "npm-run-all": "^4.1.5",
77
- "prettier": "^3.1.1",
78
- "prettier-plugin-packagejson": "^2.4.7",
79
- "react": "^18.3.1",
80
- "react-dom": "^18.3.1",
81
- "react-is": "^18.3.1",
82
- "rimraf": "^4.4.1",
83
- "sanity": "^3.67.1",
84
- "semantic-release": "^22.0.0",
85
- "styled-components": "^6.1",
86
- "typescript": "^5.4.5"
37
+ "@sanity/pkg-utils": "^10.5.0",
38
+ "@types/react": "^19.2.14",
39
+ "@types/react-dom": "^19.2.3",
40
+ "babel-plugin-react-compiler": "^1.0.0",
41
+ "babel-plugin-styled-components": "^2.3.0",
42
+ "react": "^19.2.5",
43
+ "react-dom": "^19.2.5",
44
+ "rxjs": "^7.8.2",
45
+ "sanity": "^5.21.0",
46
+ "styled-components": "^6.4.2",
47
+ "@repo/package.config": "0.0.0",
48
+ "@repo/tsconfig": "0.0.0"
87
49
  },
88
50
  "peerDependencies": {
89
- "react": "^18 || ^19",
90
- "rxjs": "^7.8.1",
91
- "sanity": "^3.67.1 || ^4.0.0 || ^5.0.0",
51
+ "react": "^19.2",
52
+ "react-dom": "^19.2",
53
+ "rxjs": "^7.8",
54
+ "sanity": "^5 || ^6.0.0-0",
92
55
  "styled-components": "^6.1"
93
56
  },
94
57
  "engines": {
95
- "node": ">=18"
58
+ "node": ">=20.19 <22 || >=22.12"
96
59
  },
97
- "sanityPlugin": {
98
- "verifyPackage": {
99
- "nodeEngine": false
100
- }
60
+ "scripts": {
61
+ "build": "pkg build --strict --check --clean"
101
62
  }
102
- }
63
+ }