@liiift-studio/deploy-vercel-from-sanity 0.1.2 → 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
|
@@ -358,7 +358,7 @@ function DeployItem({ target, token, onDelete }) {
|
|
|
358
358
|
import_ui3.MenuItem,
|
|
359
359
|
{
|
|
360
360
|
text: "History",
|
|
361
|
-
icon: import_icons2.
|
|
361
|
+
icon: import_icons2.ClockIcon,
|
|
362
362
|
onClick: () => setShowHistory(true)
|
|
363
363
|
}
|
|
364
364
|
),
|
|
@@ -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
|
@@ -38,7 +38,6 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
RocketIcon,
|
|
40
40
|
ClockIcon,
|
|
41
|
-
HistoryIcon,
|
|
42
41
|
TrashIcon,
|
|
43
42
|
EllipsisVerticalIcon,
|
|
44
43
|
LaunchIcon as LaunchIcon2
|
|
@@ -374,7 +373,7 @@ function DeployItem({ target, token, onDelete }) {
|
|
|
374
373
|
MenuItem,
|
|
375
374
|
{
|
|
376
375
|
text: "History",
|
|
377
|
-
icon:
|
|
376
|
+
icon: ClockIcon,
|
|
378
377
|
onClick: () => setShowHistory(true)
|
|
379
378
|
}
|
|
380
379
|
),
|
|
@@ -499,7 +498,7 @@ import {
|
|
|
499
498
|
} from "@sanity/ui";
|
|
500
499
|
import { TokenIcon, CheckmarkCircleIcon } from "@sanity/icons";
|
|
501
500
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
502
|
-
var TOKEN_DOC_ID = "
|
|
501
|
+
var TOKEN_DOC_ID = "config.vercelDeploy";
|
|
503
502
|
function TokenSetup({ onSaved }) {
|
|
504
503
|
const client = useClient({ apiVersion: "2025-01-01" });
|
|
505
504
|
const [token, setToken] = useState3("");
|
|
@@ -572,7 +571,7 @@ function TokenSetup({ onSaved }) {
|
|
|
572
571
|
|
|
573
572
|
// src/components/DeployTool.tsx
|
|
574
573
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
575
|
-
var TOKEN_QUERY = `*[_id == "
|
|
574
|
+
var TOKEN_QUERY = `*[_id == "config.vercelDeploy"][0].accessToken`;
|
|
576
575
|
var TARGETS_QUERY = `*[_type == "vercel_deploy"] | order(_createdAt asc)`;
|
|
577
576
|
function DeployTool() {
|
|
578
577
|
const client = useClient2({ apiVersion: "2025-01-01" });
|
package/package.json
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
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",
|
|
7
|
-
"keywords": [
|
|
7
|
+
"keywords": [
|
|
8
|
+
"sanity",
|
|
9
|
+
"sanity-plugin",
|
|
10
|
+
"vercel",
|
|
11
|
+
"deploy",
|
|
12
|
+
"deployment"
|
|
13
|
+
],
|
|
8
14
|
"main": "./dist/index.js",
|
|
9
15
|
"module": "./dist/index.mjs",
|
|
10
16
|
"types": "./dist/index.d.ts",
|
|
@@ -16,7 +22,10 @@
|
|
|
16
22
|
"default": "./dist/index.mjs"
|
|
17
23
|
}
|
|
18
24
|
},
|
|
19
|
-
"files": [
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"src"
|
|
28
|
+
],
|
|
20
29
|
"scripts": {
|
|
21
30
|
"build": "tsup",
|
|
22
31
|
"dev": "tsup --watch",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
Card, Box, Stack, Flex, Text, Button, Tooltip, Badge, Spinner, MenuButton, Menu, MenuItem,
|
|
5
5
|
} from '@sanity/ui'
|
|
6
6
|
import {
|
|
7
|
-
RocketIcon, ClockIcon,
|
|
7
|
+
RocketIcon, ClockIcon, TrashIcon, EllipsisVerticalIcon, LaunchIcon,
|
|
8
8
|
} from '@sanity/icons'
|
|
9
9
|
import { listDeployments, cancelDeployment, triggerDeploy } from '../lib/api'
|
|
10
10
|
import { parseHookUrl, isActiveState, formatDuration, timeAgo, shortSha, safeHref } from '../lib/helpers'
|
|
@@ -149,7 +149,7 @@ export function DeployItem({ target, token, onDelete }: DeployItemProps) {
|
|
|
149
149
|
<Menu>
|
|
150
150
|
<MenuItem
|
|
151
151
|
text="History"
|
|
152
|
-
icon={
|
|
152
|
+
icon={ClockIcon}
|
|
153
153
|
onClick={() => setShowHistory(true)}
|
|
154
154
|
/>
|
|
155
155
|
{safeHref(latest?.inspectorUrl) && (
|
|
@@ -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' })
|