sanity-plugin-utils 1.8.0 → 2.0.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/LICENSE +1 -1
- package/README.md +10 -36
- package/dist/index.d.ts +94 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +343 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -74
- package/lib/index.cjs +0 -650
- package/lib/index.cjs.map +0 -1
- package/lib/index.d.cts +0 -130
- package/lib/index.d.ts +0 -130
- package/lib/index.js +0 -655
- package/lib/index.js.map +0 -1
- package/sanity.json +0 -8
- package/src/components/Feedback.tsx +0 -48
- package/src/components/Table.tsx +0 -83
- package/src/components/UserSelectMenu/index.tsx +0 -162
- package/src/hooks/useImageUrlBuilder.tsx +0 -13
- package/src/hooks/useImageUrlBuilderImage.tsx +0 -18
- package/src/hooks/useListeningQuery.tsx +0 -98
- package/src/hooks/useOpenInNewPane.tsx +0 -27
- package/src/hooks/useProjectUsers.tsx +0 -99
- package/src/index.ts +0 -9
- package/v2-incompatible.js +0 -11
package/package.json
CHANGED
|
@@ -1,102 +1,63 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sanity-plugin-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
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/
|
|
9
|
+
"homepage": "https://github.com/sanity-io/plugins/tree/main/plugins/sanity-plugin-utils#readme",
|
|
10
10
|
"bugs": {
|
|
11
|
-
"url": "https://github.com/
|
|
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
|
|
17
|
+
"url": "git+ssh://git@github.com/sanity-io/plugins.git",
|
|
18
|
+
"directory": "plugins/sanity-plugin-utils"
|
|
16
19
|
},
|
|
17
|
-
"
|
|
18
|
-
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
19
23
|
"type": "module",
|
|
20
|
-
"
|
|
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/
|
|
56
|
-
"@sanity/ui": "^3.
|
|
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
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
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.4",
|
|
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": "^6.0.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": "^
|
|
90
|
-
"
|
|
91
|
-
"
|
|
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": ">=
|
|
58
|
+
"node": ">=20.19 <22 || >=22.12"
|
|
96
59
|
},
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"nodeEngine": false
|
|
100
|
-
}
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "pkg build --strict --check --clean"
|
|
101
62
|
}
|
|
102
|
-
}
|
|
63
|
+
}
|