@liiift-studio/deploy-vercel-from-sanity 0.1.3 → 0.1.4
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/dist/index.js
CHANGED
|
@@ -475,7 +475,7 @@ var import_sanity = require("sanity");
|
|
|
475
475
|
var import_ui4 = require("@sanity/ui");
|
|
476
476
|
var import_icons3 = require("@sanity/icons");
|
|
477
477
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
478
|
-
var TOKEN_DOC_ID = "
|
|
478
|
+
var TOKEN_DOC_ID = "config.vercelDeploy";
|
|
479
479
|
function TokenSetup({ onSaved }) {
|
|
480
480
|
const client = (0, import_sanity.useClient)({ apiVersion: "2025-01-01" });
|
|
481
481
|
const [token, setToken] = (0, import_react3.useState)("");
|
|
@@ -548,7 +548,7 @@ function TokenSetup({ onSaved }) {
|
|
|
548
548
|
|
|
549
549
|
// src/components/DeployTool.tsx
|
|
550
550
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
551
|
-
var TOKEN_QUERY = `*[_id == "
|
|
551
|
+
var TOKEN_QUERY = `*[_id == "config.vercelDeploy"][0].accessToken`;
|
|
552
552
|
var TARGETS_QUERY = `*[_type == "vercel_deploy"] | order(_createdAt asc)`;
|
|
553
553
|
function DeployTool() {
|
|
554
554
|
const client = (0, import_sanity2.useClient)({ apiVersion: "2025-01-01" });
|
package/dist/index.mjs
CHANGED
|
@@ -498,7 +498,7 @@ import {
|
|
|
498
498
|
} from "@sanity/ui";
|
|
499
499
|
import { TokenIcon, CheckmarkCircleIcon } from "@sanity/icons";
|
|
500
500
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
501
|
-
var TOKEN_DOC_ID = "
|
|
501
|
+
var TOKEN_DOC_ID = "config.vercelDeploy";
|
|
502
502
|
function TokenSetup({ onSaved }) {
|
|
503
503
|
const client = useClient({ apiVersion: "2025-01-01" });
|
|
504
504
|
const [token, setToken] = useState3("");
|
|
@@ -571,7 +571,7 @@ function TokenSetup({ onSaved }) {
|
|
|
571
571
|
|
|
572
572
|
// src/components/DeployTool.tsx
|
|
573
573
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
574
|
-
var TOKEN_QUERY = `*[_id == "
|
|
574
|
+
var TOKEN_QUERY = `*[_id == "config.vercelDeploy"][0].accessToken`;
|
|
575
575
|
var TARGETS_QUERY = `*[_type == "vercel_deploy"] | order(_createdAt asc)`;
|
|
576
576
|
function DeployTool() {
|
|
577
577
|
const client = useClient2({ apiVersion: "2025-01-01" });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liiift-studio/deploy-vercel-from-sanity",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Sanity Studio v5 plugin — trigger and monitor Vercel deployments with full status, history, and build logs",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Liiift Studio",
|
|
@@ -9,7 +9,7 @@ import { DeployItem } from './DeployItem'
|
|
|
9
9
|
import { TokenSetup } from './TokenSetup'
|
|
10
10
|
import type { DeployTarget } from '../types'
|
|
11
11
|
|
|
12
|
-
const TOKEN_QUERY = `*[_id == "
|
|
12
|
+
const TOKEN_QUERY = `*[_id == "config.vercelDeploy"][0].accessToken`
|
|
13
13
|
const TARGETS_QUERY = `*[_type == "vercel_deploy"] | order(_createdAt asc)`
|
|
14
14
|
|
|
15
15
|
export function DeployTool() {
|
|
@@ -11,7 +11,7 @@ interface TokenSetupProps {
|
|
|
11
11
|
onSaved: () => void
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
const TOKEN_DOC_ID = '
|
|
14
|
+
const TOKEN_DOC_ID = 'config.vercelDeploy'
|
|
15
15
|
|
|
16
16
|
export function TokenSetup({ onSaved }: TokenSetupProps) {
|
|
17
17
|
const client = useClient({ apiVersion: '2025-01-01' })
|