sanity-plugin-dashboard-widget-document-list 3.0.0-v3-studio.1 → 3.0.0-v3-studio.2
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 +4 -18
- package/package.json +14 -11
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2022, Sanity.io <hello@sanity.io>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to
|
package/README.md
CHANGED
|
@@ -149,22 +149,8 @@ MIT-licensed. See LICENSE.
|
|
|
149
149
|
|
|
150
150
|
## Develop & test
|
|
151
151
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
```bash
|
|
155
|
-
npm run link-watch
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
In another shell, `cd` to your test studio and run:
|
|
159
|
-
|
|
160
|
-
```bash
|
|
161
|
-
npx yalc add dashboard-widget-document-list --link && yarn install
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
Now, changes in this repo will be automatically built and pushed to the studio,
|
|
165
|
-
triggering hotreload. Yalc avoids issues with react-hooks that are typical when using yarn/npm link.
|
|
166
|
-
|
|
167
|
-
### About build & watch
|
|
168
|
-
|
|
169
|
-
This plugin uses [@sanity/plugin-sdk](https://github.com/sanity-io/plugin-sdk)
|
|
152
|
+
This plugin uses [@sanity/plugin-kit](https://github.com/sanity-io/plugin-kit)
|
|
170
153
|
with default configuration for build & watch scripts.
|
|
154
|
+
|
|
155
|
+
See [Testing a plugin in Sanity Studio](https://github.com/sanity-io/plugin-kit#testing-a-plugin-in-sanity-studio)
|
|
156
|
+
on how to run this plugin with hotreload in the studio.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"public": true,
|
|
3
3
|
"name": "sanity-plugin-dashboard-widget-document-list",
|
|
4
|
-
"version": "3.0.0-v3-studio.
|
|
4
|
+
"version": "3.0.0-v3-studio.2",
|
|
5
5
|
"author": "Sanity.io <hello@sanity.io>",
|
|
6
6
|
"description": "Example dashboard widget for Sanity Content Studio",
|
|
7
7
|
"homepage": "https://github.com/sanity-io/dashboard-widget-document-list#readme",
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
"link-watch": "plugin-kit link-watch",
|
|
38
38
|
"prepublishOnly": "npm run build",
|
|
39
39
|
"compile": "tsc --noEmit",
|
|
40
|
-
"lint": "eslint ."
|
|
40
|
+
"lint": "eslint .",
|
|
41
|
+
"prepare": "husky install"
|
|
41
42
|
},
|
|
42
43
|
"sanityPlugin": {},
|
|
43
44
|
"license": "MIT",
|
|
@@ -50,12 +51,13 @@
|
|
|
50
51
|
},
|
|
51
52
|
"sanityExchangeUrl": "https://www.sanity.io/plugins/sanity-plugin-dashboard-widget-document-list",
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@commitlint/cli": "^
|
|
54
|
-
"@commitlint/config-conventional": "^
|
|
54
|
+
"@commitlint/cli": "^17.1.2",
|
|
55
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
55
56
|
"@parcel/packager-ts": "^2.6.0",
|
|
56
57
|
"@parcel/transformer-typescript-types": "^2.6.0",
|
|
57
|
-
"@sanity/dashboard": "^3.0.0-v3-studio.
|
|
58
|
-
"@sanity/plugin-kit": "^
|
|
58
|
+
"@sanity/dashboard": "^3.0.0-v3-studio.1",
|
|
59
|
+
"@sanity/plugin-kit": "^1.1.0-ecosystem-preset.5",
|
|
60
|
+
"@sanity/semantic-release-preset": "^2.0.1",
|
|
59
61
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
60
62
|
"@typescript-eslint/eslint-plugin": "^5.12.0",
|
|
61
63
|
"@typescript-eslint/parser": "^5.12.0",
|
|
@@ -65,13 +67,14 @@
|
|
|
65
67
|
"eslint-plugin-prettier": "4.0.0",
|
|
66
68
|
"eslint-plugin-react": "^7.28.0",
|
|
67
69
|
"eslint-plugin-react-hooks": "^4.5.0",
|
|
68
|
-
"husky": "^
|
|
70
|
+
"husky": "^8.0.1",
|
|
71
|
+
"lint-staged": "^13.0.3",
|
|
69
72
|
"parcel": "^2.6.0",
|
|
70
73
|
"prettier": "^2.6.2",
|
|
71
74
|
"react": "^17.0.0 || ^18.0.0",
|
|
72
75
|
"rimraf": "^3.0.2",
|
|
73
|
-
"sanity": "
|
|
74
|
-
"typescript": "
|
|
76
|
+
"sanity": "3.0.0-dev-preview.15",
|
|
77
|
+
"typescript": "4.7.3"
|
|
75
78
|
},
|
|
76
79
|
"peerDependencies": {
|
|
77
80
|
"react": "^17.0.0 || ^18.0.0",
|
|
@@ -79,8 +82,8 @@
|
|
|
79
82
|
"@sanity/dashboard": "studio-v3"
|
|
80
83
|
},
|
|
81
84
|
"dependencies": {
|
|
82
|
-
"@sanity/ui": "^0.
|
|
83
|
-
"@sanity/incompatible-plugin": "^
|
|
85
|
+
"@sanity/ui": "^0.38.2",
|
|
86
|
+
"@sanity/incompatible-plugin": "^1.0.1",
|
|
84
87
|
"lodash": "^4.17.15",
|
|
85
88
|
"rxjs": "^6.0.0"
|
|
86
89
|
},
|