sanity-plugin-dashboard-widget-vercel 1.1.0 → 1.1.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/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/lib/components/DialogForm/index.js +3 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.1](https://github.com/robinpyon/sanity-plugin-dashboard-widget-vercel/compare/v1.1.0...v1.1.1) (2022-01-03)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* correctly namespace deployment target _ids ([cd97cd3](https://github.com/robinpyon/sanity-plugin-dashboard-widget-vercel/commit/cd97cd39bd35260efe728c796d8cbadf4d788aa6))
|
|
11
|
+
|
|
5
12
|
## [1.1.0](https://github.com/robinpyon/sanity-plugin-dashboard-widget-vercel/compare/v1.0.0...v1.1.0) (2021-03-25)
|
|
6
13
|
|
|
7
14
|
|
package/README.md
CHANGED
|
@@ -105,7 +105,7 @@ The number of deployments to display and fetch.
|
|
|
105
105
|
|
|
106
106
|
When setting up new deployment targets, you're asked to provide your Vercel account token. It's important to know that your Vercel token provides unrestricted API access to your entire Vercel account.
|
|
107
107
|
|
|
108
|
-
Your Vercel token
|
|
108
|
+
Your Vercel token and all other deployment settings are stored in the `vercel` namespace and by design, these [are not publicly accessible](https://www.sanity.io/docs/ids), even with a public dataset.
|
|
109
109
|
|
|
110
110
|
However, please note that this token is exposed to all _authenticated users_ in your Sanity studio.
|
|
111
111
|
|
|
@@ -21,6 +21,8 @@ var _yup = require("@hookform/resolvers/yup");
|
|
|
21
21
|
|
|
22
22
|
var _ui = require("@sanity/ui");
|
|
23
23
|
|
|
24
|
+
var _uuid = require("@sanity/uuid");
|
|
25
|
+
|
|
24
26
|
var _react = require("@xstate/react");
|
|
25
27
|
|
|
26
28
|
var _react2 = _interopRequireDefault(require("react"));
|
|
@@ -94,6 +96,7 @@ var DialogForm = function DialogForm(props) {
|
|
|
94
96
|
_context3.prev = 0;
|
|
95
97
|
_context3.next = 3;
|
|
96
98
|
return _client.client.create(_objectSpread({
|
|
99
|
+
_id: "vercel.".concat((0, _uuid.uuid)()),
|
|
97
100
|
_type: _constants.DEPLOYMENT_TARGET_DOCUMENT_TYPE
|
|
98
101
|
}, event.formData));
|
|
99
102
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sanity-plugin-dashboard-widget-vercel",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Robin Pyon",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"@hookform/resolvers": "2.0.0-beta.3",
|
|
36
36
|
"@sanity/icons": "1.0.5",
|
|
37
37
|
"@sanity/ui": ">=0.33.6",
|
|
38
|
+
"@sanity/uuid": "3.0.1",
|
|
38
39
|
"@xstate/react": "1.3.1",
|
|
39
40
|
"groq": "2.2.6",
|
|
40
41
|
"object-hash": "2.1.1",
|