sanity-plugin-dashboard-widget-vercel 3.1.6 → 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 (42) hide show
  1. package/README.md +8 -36
  2. package/dist/index.d.ts +6 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +1380 -0
  5. package/dist/index.js.map +1 -0
  6. package/package.json +42 -85
  7. package/lib/index.d.mts +0 -6
  8. package/lib/index.d.ts +0 -6
  9. package/lib/index.js +0 -1007
  10. package/lib/index.js.map +0 -1
  11. package/lib/index.mjs +0 -1005
  12. package/lib/index.mjs.map +0 -1
  13. package/sanity.json +0 -8
  14. package/src/app.tsx +0 -135
  15. package/src/client.ts +0 -7
  16. package/src/components/DeployButton/index.tsx +0 -86
  17. package/src/components/Deployment/index.tsx +0 -126
  18. package/src/components/DeploymentPlaceholder/index.tsx +0 -41
  19. package/src/components/DeploymentTarget/index.tsx +0 -51
  20. package/src/components/DeploymentTargets/index.tsx +0 -24
  21. package/src/components/Deployments/index.tsx +0 -187
  22. package/src/components/DialogForm/index.tsx +0 -220
  23. package/src/components/FormFieldInputLabel/index.tsx +0 -65
  24. package/src/components/FormFieldInputText/index.tsx +0 -43
  25. package/src/components/PlaceholderAvatar/index.tsx +0 -20
  26. package/src/components/PlaceholderText/index.tsx +0 -32
  27. package/src/components/StateDebug/index.tsx +0 -46
  28. package/src/components/StatusDot/index.tsx +0 -22
  29. package/src/components/TableCell/index.tsx +0 -81
  30. package/src/constants.ts +0 -26
  31. package/src/hooks/useDeployments.ts +0 -89
  32. package/src/index.ts +0 -16
  33. package/src/machines/deploy.ts +0 -117
  34. package/src/machines/deploymentTargetList.ts +0 -149
  35. package/src/machines/dialog.ts +0 -62
  36. package/src/machines/form.ts +0 -155
  37. package/src/machines/refresh.ts +0 -47
  38. package/src/types/index.ts +0 -49
  39. package/src/utils/fetcher.ts +0 -37
  40. package/src/utils/sanitizeFormData.ts +0 -26
  41. package/src/utils/useCardColor.ts +0 -5
  42. 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
  ![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"}