sanity-plugin-dashboard-widget-vercel 3.1.5 → 4.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.
Files changed (43) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +8 -36
  3. package/dist/index.d.ts +6 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +1380 -0
  6. package/dist/index.js.map +1 -0
  7. package/package.json +42 -85
  8. package/lib/index.d.mts +0 -6
  9. package/lib/index.d.ts +0 -6
  10. package/lib/index.js +0 -1007
  11. package/lib/index.js.map +0 -1
  12. package/lib/index.mjs +0 -1005
  13. package/lib/index.mjs.map +0 -1
  14. package/sanity.json +0 -8
  15. package/src/app.tsx +0 -135
  16. package/src/client.ts +0 -7
  17. package/src/components/DeployButton/index.tsx +0 -86
  18. package/src/components/Deployment/index.tsx +0 -126
  19. package/src/components/DeploymentPlaceholder/index.tsx +0 -41
  20. package/src/components/DeploymentTarget/index.tsx +0 -51
  21. package/src/components/DeploymentTargets/index.tsx +0 -24
  22. package/src/components/Deployments/index.tsx +0 -187
  23. package/src/components/DialogForm/index.tsx +0 -220
  24. package/src/components/FormFieldInputLabel/index.tsx +0 -65
  25. package/src/components/FormFieldInputText/index.tsx +0 -43
  26. package/src/components/PlaceholderAvatar/index.tsx +0 -20
  27. package/src/components/PlaceholderText/index.tsx +0 -32
  28. package/src/components/StateDebug/index.tsx +0 -46
  29. package/src/components/StatusDot/index.tsx +0 -22
  30. package/src/components/TableCell/index.tsx +0 -81
  31. package/src/constants.ts +0 -26
  32. package/src/hooks/useDeployments.ts +0 -89
  33. package/src/index.ts +0 -16
  34. package/src/machines/deploy.ts +0 -117
  35. package/src/machines/deploymentTargetList.ts +0 -149
  36. package/src/machines/dialog.ts +0 -62
  37. package/src/machines/form.ts +0 -155
  38. package/src/machines/refresh.ts +0 -47
  39. package/src/types/index.ts +0 -49
  40. package/src/utils/fetcher.ts +0 -37
  41. package/src/utils/sanitizeFormData.ts +0 -26
  42. package/src/utils/useCardColor.ts +0 -5
  43. package/v2-incompatible.js +0 -11
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Sanity.io
3
+ Copyright (c) 2026 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 deal
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
  ![image](https://user-images.githubusercontent.com/209129/112195398-d0bf8380-8c01-11eb-8857-60c37ae50326.jpg)
@@ -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 { dashboardTool } from "@sanity/dashboard";
39
- import { vercelWidget } from "sanity-plugin-dashboard-widget-vercel";
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
- dashboardTool({
45
- widgets: [
46
- vercelWidget(),
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
- widgets: [
61
- vercelWidget({ layout: { width: "full" /* default and reccomended */ } }),
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.
@@ -0,0 +1,6 @@
1
+ import { DashboardWidget, LayoutConfig } from "@sanity/dashboard";
2
+ declare function vercelWidget(config?: {
3
+ layout?: LayoutConfig;
4
+ }): DashboardWidget;
5
+ export { vercelWidget };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}