sanity-plugin-dashboard-widget-vercel 3.1.6 → 4.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/README.md +8 -36
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1380 -0
- package/dist/index.js.map +1 -0
- package/package.json +42 -85
- package/lib/index.d.mts +0 -6
- package/lib/index.d.ts +0 -6
- package/lib/index.js +0 -1007
- package/lib/index.js.map +0 -1
- package/lib/index.mjs +0 -1005
- package/lib/index.mjs.map +0 -1
- package/sanity.json +0 -8
- package/src/app.tsx +0 -135
- package/src/client.ts +0 -7
- package/src/components/DeployButton/index.tsx +0 -86
- package/src/components/Deployment/index.tsx +0 -126
- package/src/components/DeploymentPlaceholder/index.tsx +0 -41
- package/src/components/DeploymentTarget/index.tsx +0 -51
- package/src/components/DeploymentTargets/index.tsx +0 -24
- package/src/components/Deployments/index.tsx +0 -187
- package/src/components/DialogForm/index.tsx +0 -220
- package/src/components/FormFieldInputLabel/index.tsx +0 -65
- package/src/components/FormFieldInputText/index.tsx +0 -43
- package/src/components/PlaceholderAvatar/index.tsx +0 -20
- package/src/components/PlaceholderText/index.tsx +0 -32
- package/src/components/StateDebug/index.tsx +0 -46
- package/src/components/StatusDot/index.tsx +0 -22
- package/src/components/TableCell/index.tsx +0 -81
- package/src/constants.ts +0 -26
- package/src/hooks/useDeployments.ts +0 -89
- package/src/index.ts +0 -16
- package/src/machines/deploy.ts +0 -117
- package/src/machines/deploymentTargetList.ts +0 -149
- package/src/machines/dialog.ts +0 -62
- package/src/machines/form.ts +0 -155
- package/src/machines/refresh.ts +0 -47
- package/src/types/index.ts +0 -49
- package/src/utils/fetcher.ts +0 -37
- package/src/utils/sanitizeFormData.ts +0 -26
- package/src/utils/useCardColor.ts +0 -5
- package/v2-incompatible.js +0 -11
package/README.md
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
# Vercel Dashboard Widget (for Sanity)
|
|
2
2
|
|
|
3
|
-
> For the v2 version, please refer to the [v2-branch](https://github.com/sanity-io/anity-plugin-dashboard-widget-vercel/tree/studio-v2).
|
|
4
|
-
|
|
5
|
-
|
|
6
3
|
View your recent [Vercel](https://vercel.com/) deployments and manually trigger builds directly from your [Sanity](https://www.sanity.io/) dashboard.
|
|
7
4
|
|
|
8
5
|

|
|
@@ -35,19 +32,16 @@ Ensure that you have followed install and usage instructions for [@sanity/dashbo
|
|
|
35
32
|
Add it as a widget to @sanity/dashboard plugin in sanity.config.ts (or .js):
|
|
36
33
|
|
|
37
34
|
```js
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
35
|
+
import {dashboardTool} from '@sanity/dashboard'
|
|
36
|
+
import {vercelWidget} from 'sanity-plugin-dashboard-widget-vercel'
|
|
40
37
|
|
|
41
38
|
export default defineConfig({
|
|
42
39
|
// ...
|
|
43
40
|
plugins: [
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
),
|
|
50
|
-
]
|
|
41
|
+
dashboardTool({
|
|
42
|
+
widgets: [vercelWidget()],
|
|
43
|
+
}),
|
|
44
|
+
],
|
|
51
45
|
})
|
|
52
46
|
```
|
|
53
47
|
|
|
@@ -57,11 +51,8 @@ The widget size can be controlled using layout.width:
|
|
|
57
51
|
|
|
58
52
|
```js
|
|
59
53
|
dashboardTool({
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
],
|
|
63
|
-
}
|
|
64
|
-
)
|
|
54
|
+
widgets: [vercelWidget({layout: {width: 'full' /* default and reccomended */}})],
|
|
55
|
+
})
|
|
65
56
|
```
|
|
66
57
|
|
|
67
58
|
### Add a deployment target
|
|
@@ -128,25 +119,6 @@ Please also keep the following in mind when manually deploying:
|
|
|
128
119
|
[More information on deploy hooks](https://vercel.com/docs/more/deploy-hooks#technical-details)
|
|
129
120
|
[Vercel rate limits](https://vercel.com/docs/platform/limits#rate-limits)
|
|
130
121
|
|
|
131
|
-
## Contributing
|
|
132
|
-
|
|
133
|
-
Contributions, issues and feature requests are welcome!
|
|
134
|
-
|
|
135
122
|
## License
|
|
136
123
|
|
|
137
124
|
MIT-licensed. See LICENSE.
|
|
138
|
-
|
|
139
|
-
## Develop & test
|
|
140
|
-
|
|
141
|
-
This plugin uses [@sanity/plugin-kit](https://github.com/sanity-io/plugin-kit)
|
|
142
|
-
with default configuration for build & watch scripts.
|
|
143
|
-
|
|
144
|
-
See [Testing a plugin in Sanity Studio](https://github.com/sanity-io/plugin-kit#testing-a-plugin-in-sanity-studio)
|
|
145
|
-
on how to run this plugin with hotreload in the studio.
|
|
146
|
-
|
|
147
|
-
### Release new version
|
|
148
|
-
|
|
149
|
-
Run ["CI & Release" workflow](https://github.com/sanity-io/sanity-plugin-dashboard-widget-vercel/actions/workflows/main.yml).
|
|
150
|
-
Make sure to select the main branch and check "Release new version".
|
|
151
|
-
|
|
152
|
-
Semantic release will only release on configured branches, so it is safe to run release on any branch.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";iBASgB,YAAA,CAAa,MAAA;EAAS,MAAA,GAAS,YAAA;AAAA,IAAqB,eAAe"}
|