@liiift-studio/deploy-vercel-from-sanity 1.0.4 → 1.0.6
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 +2 -8
- package/dist/index.mjs +2 -8
- package/package.json +3 -2
- package/src/components/DeployItem.tsx +2 -10
- package/src/version.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -288,7 +288,6 @@ function DeployItem({ target, token, onDelete, onEdit }) {
|
|
|
288
288
|
const [deployments, setDeployments] = (0, import_react2.useState)([]);
|
|
289
289
|
const [loadingInitial, setLoadingInitial] = (0, import_react2.useState)(true);
|
|
290
290
|
const [triggering, setTriggering] = (0, import_react2.useState)(false);
|
|
291
|
-
const [clicked, setClicked] = (0, import_react2.useState)(false);
|
|
292
291
|
const [canceling, setCanceling] = (0, import_react2.useState)(false);
|
|
293
292
|
const [deployError, setDeployError] = (0, import_react2.useState)(null);
|
|
294
293
|
const [showHistory, setShowHistory] = (0, import_react2.useState)(false);
|
|
@@ -321,9 +320,6 @@ function DeployItem({ target, token, onDelete, onEdit }) {
|
|
|
321
320
|
(0, import_react2.useEffect)(() => {
|
|
322
321
|
if (triggering && latest && latest.state !== void 0) setTriggering(false);
|
|
323
322
|
}, [triggering, latest]);
|
|
324
|
-
(0, import_react2.useEffect)(() => {
|
|
325
|
-
if (triggering) setClicked(false);
|
|
326
|
-
}, [triggering]);
|
|
327
323
|
const prevStateRef = (0, import_react2.useRef)(void 0);
|
|
328
324
|
(0, import_react2.useEffect)(() => {
|
|
329
325
|
const current = latest?.state;
|
|
@@ -362,7 +358,6 @@ function DeployItem({ target, token, onDelete, onEdit }) {
|
|
|
362
358
|
}, [isActive, latest?.created]);
|
|
363
359
|
const deploy = (0, import_react2.useCallback)(() => {
|
|
364
360
|
setDeployError(null);
|
|
365
|
-
setClicked(true);
|
|
366
361
|
setTriggering(true);
|
|
367
362
|
void (async () => {
|
|
368
363
|
try {
|
|
@@ -370,7 +365,6 @@ function DeployItem({ target, token, onDelete, onEdit }) {
|
|
|
370
365
|
setTimeout(fetchDeployments, 2e3);
|
|
371
366
|
} catch (err) {
|
|
372
367
|
setTriggering(false);
|
|
373
|
-
setClicked(false);
|
|
374
368
|
setDeployError(err instanceof Error ? err.message : "Deploy failed");
|
|
375
369
|
}
|
|
376
370
|
})();
|
|
@@ -700,7 +694,7 @@ function DeployItem({ target, token, onDelete, onEdit }) {
|
|
|
700
694
|
text: "Deploy",
|
|
701
695
|
tone: "primary",
|
|
702
696
|
loading: triggering,
|
|
703
|
-
disabled: isActive
|
|
697
|
+
disabled: isActive,
|
|
704
698
|
onClick: deploy,
|
|
705
699
|
style: {
|
|
706
700
|
flex: 1,
|
|
@@ -940,7 +934,7 @@ function DeployTargetForm({ initial, onSaved, onClose }) {
|
|
|
940
934
|
}
|
|
941
935
|
|
|
942
936
|
// src/version.ts
|
|
943
|
-
var VERSION = "1.0.
|
|
937
|
+
var VERSION = "1.0.6";
|
|
944
938
|
|
|
945
939
|
// src/components/DeployTool.tsx
|
|
946
940
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
package/dist/index.mjs
CHANGED
|
@@ -310,7 +310,6 @@ function DeployItem({ target, token, onDelete, onEdit }) {
|
|
|
310
310
|
const [deployments, setDeployments] = useState2([]);
|
|
311
311
|
const [loadingInitial, setLoadingInitial] = useState2(true);
|
|
312
312
|
const [triggering, setTriggering] = useState2(false);
|
|
313
|
-
const [clicked, setClicked] = useState2(false);
|
|
314
313
|
const [canceling, setCanceling] = useState2(false);
|
|
315
314
|
const [deployError, setDeployError] = useState2(null);
|
|
316
315
|
const [showHistory, setShowHistory] = useState2(false);
|
|
@@ -343,9 +342,6 @@ function DeployItem({ target, token, onDelete, onEdit }) {
|
|
|
343
342
|
useEffect2(() => {
|
|
344
343
|
if (triggering && latest && latest.state !== void 0) setTriggering(false);
|
|
345
344
|
}, [triggering, latest]);
|
|
346
|
-
useEffect2(() => {
|
|
347
|
-
if (triggering) setClicked(false);
|
|
348
|
-
}, [triggering]);
|
|
349
345
|
const prevStateRef = useRef(void 0);
|
|
350
346
|
useEffect2(() => {
|
|
351
347
|
const current = latest?.state;
|
|
@@ -384,7 +380,6 @@ function DeployItem({ target, token, onDelete, onEdit }) {
|
|
|
384
380
|
}, [isActive, latest?.created]);
|
|
385
381
|
const deploy = useCallback2(() => {
|
|
386
382
|
setDeployError(null);
|
|
387
|
-
setClicked(true);
|
|
388
383
|
setTriggering(true);
|
|
389
384
|
void (async () => {
|
|
390
385
|
try {
|
|
@@ -392,7 +387,6 @@ function DeployItem({ target, token, onDelete, onEdit }) {
|
|
|
392
387
|
setTimeout(fetchDeployments, 2e3);
|
|
393
388
|
} catch (err) {
|
|
394
389
|
setTriggering(false);
|
|
395
|
-
setClicked(false);
|
|
396
390
|
setDeployError(err instanceof Error ? err.message : "Deploy failed");
|
|
397
391
|
}
|
|
398
392
|
})();
|
|
@@ -722,7 +716,7 @@ function DeployItem({ target, token, onDelete, onEdit }) {
|
|
|
722
716
|
text: "Deploy",
|
|
723
717
|
tone: "primary",
|
|
724
718
|
loading: triggering,
|
|
725
|
-
disabled: isActive
|
|
719
|
+
disabled: isActive,
|
|
726
720
|
onClick: deploy,
|
|
727
721
|
style: {
|
|
728
722
|
flex: 1,
|
|
@@ -973,7 +967,7 @@ function DeployTargetForm({ initial, onSaved, onClose }) {
|
|
|
973
967
|
}
|
|
974
968
|
|
|
975
969
|
// src/version.ts
|
|
976
|
-
var VERSION = "1.0.
|
|
970
|
+
var VERSION = "1.0.6";
|
|
977
971
|
|
|
978
972
|
// src/components/DeployTool.tsx
|
|
979
973
|
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liiift-studio/deploy-vercel-from-sanity",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Sanity Studio plugin — trigger and monitor Vercel deployments with full status, history, and build logs. Supports v3, v4, and v5.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Liiift Studio",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"import": "./dist/index.mjs",
|
|
27
27
|
"require": "./dist/index.js",
|
|
28
28
|
"default": "./dist/index.mjs"
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
|
+
"./package.json": "./package.json"
|
|
30
31
|
},
|
|
31
32
|
"files": [
|
|
32
33
|
"dist",
|
|
@@ -31,7 +31,6 @@ export function DeployItem({ target, token, onDelete, onEdit }: DeployItemProps)
|
|
|
31
31
|
const [deployments, setDeployments] = useState<VercelDeployment[]>([])
|
|
32
32
|
const [loadingInitial, setLoadingInitial] = useState(true)
|
|
33
33
|
const [triggering, setTriggering] = useState(false)
|
|
34
|
-
const [clicked, setClicked] = useState(false)
|
|
35
34
|
const [canceling, setCanceling] = useState(false)
|
|
36
35
|
const [deployError, setDeployError] = useState<string | null>(null)
|
|
37
36
|
const [showHistory, setShowHistory] = useState(false)
|
|
@@ -71,12 +70,7 @@ export function DeployItem({ target, token, onDelete, onEdit }: DeployItemProps)
|
|
|
71
70
|
if (triggering && latest && latest.state !== undefined) setTriggering(false)
|
|
72
71
|
}, [triggering, latest])
|
|
73
72
|
|
|
74
|
-
|
|
75
|
-
useEffect(() => {
|
|
76
|
-
if (triggering) setClicked(false)
|
|
77
|
-
}, [triggering])
|
|
78
|
-
|
|
79
|
-
// ── Deploy-complete toast ─────────────────────────────────────────────────
|
|
73
|
+
//── Deploy-complete toast ─────────────────────────────────────────────────
|
|
80
74
|
const prevStateRef = useRef<string | undefined>(undefined)
|
|
81
75
|
useEffect(() => {
|
|
82
76
|
const current = latest?.state
|
|
@@ -118,7 +112,6 @@ export function DeployItem({ target, token, onDelete, onEdit }: DeployItemProps)
|
|
|
118
112
|
// ── Actions ───────────────────────────────────────────────────────────────
|
|
119
113
|
const deploy = useCallback(() => {
|
|
120
114
|
setDeployError(null)
|
|
121
|
-
setClicked(true)
|
|
122
115
|
setTriggering(true)
|
|
123
116
|
void (async () => {
|
|
124
117
|
try {
|
|
@@ -126,7 +119,6 @@ export function DeployItem({ target, token, onDelete, onEdit }: DeployItemProps)
|
|
|
126
119
|
setTimeout(fetchDeployments, 2000)
|
|
127
120
|
} catch (err) {
|
|
128
121
|
setTriggering(false)
|
|
129
|
-
setClicked(false)
|
|
130
122
|
setDeployError(err instanceof Error ? err.message : 'Deploy failed')
|
|
131
123
|
}
|
|
132
124
|
})()
|
|
@@ -568,7 +560,7 @@ export function DeployItem({ target, token, onDelete, onEdit }: DeployItemProps)
|
|
|
568
560
|
text="Deploy"
|
|
569
561
|
tone="primary"
|
|
570
562
|
loading={triggering}
|
|
571
|
-
disabled={isActive
|
|
563
|
+
disabled={isActive}
|
|
572
564
|
onClick={deploy}
|
|
573
565
|
style={{
|
|
574
566
|
flex: 1,
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Package version — keep in sync with package.json
|
|
2
|
-
export const VERSION = '1.0.
|
|
2
|
+
export const VERSION = '1.0.6'
|