@liiift-studio/deploy-vercel-from-sanity 0.2.1 → 0.2.2

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
@@ -412,8 +412,20 @@ function DeployItem({ target, token, onDelete, onEdit }) {
412
412
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui3.Spinner, { muted: true }),
413
413
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui3.Badge, { tone: "caution", padding: 2, children: "Triggering\u2026" })
414
414
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StatusBadge, { state: latest?.state, showSpinner: true }),
415
+ isActiveState(latest?.state) && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
416
+ import_ui3.Button,
417
+ {
418
+ text: "Cancel",
419
+ mode: "ghost",
420
+ tone: "critical",
421
+ loading: canceling,
422
+ disabled: canceling,
423
+ onClick: cancel,
424
+ style: { cursor: "pointer" }
425
+ }
426
+ ),
415
427
  isActive && elapsed > 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui3.Flex, { align: "center", gap: 1, children: [
416
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons2.ClockIcon, {}),
428
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui3.Spinner, { muted: true }),
417
429
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui3.Text, { size: 1, muted: true, children: formatDuration(elapsed) })
418
430
  ] }) : !isActive && deployedAt ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui3.Text, { size: 1, muted: true, children: deployedAt }) : null
419
431
  ] })
@@ -640,44 +652,30 @@ function DeployItem({ target, token, onDelete, onEdit }) {
640
652
  ] }) })
641
653
  ] })
642
654
  ] }),
643
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
655
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
644
656
  import_ui3.Flex,
645
657
  {
646
658
  direction: "column",
647
659
  gap: 2,
648
660
  className: "dvfs-deploy-col",
649
661
  style: { flexShrink: 0, alignSelf: "stretch" },
650
- children: [
651
- isActiveState(latest?.state) && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
652
- import_ui3.Button,
653
- {
654
- text: "Cancel",
655
- mode: "ghost",
656
- tone: "critical",
657
- loading: canceling,
658
- disabled: canceling,
659
- onClick: cancel,
660
- style: { cursor: "pointer" }
661
- }
662
- ),
663
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
664
- import_ui3.Button,
665
- {
666
- text: "Deploy",
667
- tone: "primary",
668
- loading: triggering,
669
- disabled: isActive,
670
- onClick: deploy,
671
- style: {
672
- flex: 1,
673
- borderRadius: 0,
674
- borderTopRightRadius: 3,
675
- borderBottomRightRadius: 3,
676
- cursor: "pointer"
677
- }
662
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
663
+ import_ui3.Button,
664
+ {
665
+ text: "Deploy",
666
+ tone: "primary",
667
+ loading: triggering,
668
+ disabled: isActive,
669
+ onClick: deploy,
670
+ style: {
671
+ flex: 1,
672
+ borderRadius: 0,
673
+ borderTopRightRadius: 3,
674
+ borderBottomRightRadius: 3,
675
+ cursor: "pointer"
678
676
  }
679
- )
680
- ]
677
+ }
678
+ )
681
679
  }
682
680
  )
683
681
  ] }) }),
package/dist/index.mjs CHANGED
@@ -433,8 +433,20 @@ function DeployItem({ target, token, onDelete, onEdit }) {
433
433
  /* @__PURE__ */ jsx3(Spinner3, { muted: true }),
434
434
  /* @__PURE__ */ jsx3(Badge3, { tone: "caution", padding: 2, children: "Triggering\u2026" })
435
435
  ] }) : /* @__PURE__ */ jsx3(StatusBadge, { state: latest?.state, showSpinner: true }),
436
+ isActiveState(latest?.state) && /* @__PURE__ */ jsx3(
437
+ Button2,
438
+ {
439
+ text: "Cancel",
440
+ mode: "ghost",
441
+ tone: "critical",
442
+ loading: canceling,
443
+ disabled: canceling,
444
+ onClick: cancel,
445
+ style: { cursor: "pointer" }
446
+ }
447
+ ),
436
448
  isActive && elapsed > 0 ? /* @__PURE__ */ jsxs3(Flex3, { align: "center", gap: 1, children: [
437
- /* @__PURE__ */ jsx3(ClockIcon, {}),
449
+ /* @__PURE__ */ jsx3(Spinner3, { muted: true }),
438
450
  /* @__PURE__ */ jsx3(Text2, { size: 1, muted: true, children: formatDuration(elapsed) })
439
451
  ] }) : !isActive && deployedAt ? /* @__PURE__ */ jsx3(Text2, { size: 1, muted: true, children: deployedAt }) : null
440
452
  ] })
@@ -661,44 +673,30 @@ function DeployItem({ target, token, onDelete, onEdit }) {
661
673
  ] }) })
662
674
  ] })
663
675
  ] }),
664
- /* @__PURE__ */ jsxs3(
676
+ /* @__PURE__ */ jsx3(
665
677
  Flex3,
666
678
  {
667
679
  direction: "column",
668
680
  gap: 2,
669
681
  className: "dvfs-deploy-col",
670
682
  style: { flexShrink: 0, alignSelf: "stretch" },
671
- children: [
672
- isActiveState(latest?.state) && /* @__PURE__ */ jsx3(
673
- Button2,
674
- {
675
- text: "Cancel",
676
- mode: "ghost",
677
- tone: "critical",
678
- loading: canceling,
679
- disabled: canceling,
680
- onClick: cancel,
681
- style: { cursor: "pointer" }
682
- }
683
- ),
684
- /* @__PURE__ */ jsx3(
685
- Button2,
686
- {
687
- text: "Deploy",
688
- tone: "primary",
689
- loading: triggering,
690
- disabled: isActive,
691
- onClick: deploy,
692
- style: {
693
- flex: 1,
694
- borderRadius: 0,
695
- borderTopRightRadius: 3,
696
- borderBottomRightRadius: 3,
697
- cursor: "pointer"
698
- }
683
+ children: /* @__PURE__ */ jsx3(
684
+ Button2,
685
+ {
686
+ text: "Deploy",
687
+ tone: "primary",
688
+ loading: triggering,
689
+ disabled: isActive,
690
+ onClick: deploy,
691
+ style: {
692
+ flex: 1,
693
+ borderRadius: 0,
694
+ borderTopRightRadius: 3,
695
+ borderBottomRightRadius: 3,
696
+ cursor: "pointer"
699
697
  }
700
- )
701
- ]
698
+ }
699
+ )
702
700
  }
703
701
  )
704
702
  ] }) }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liiift-studio/deploy-vercel-from-sanity",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
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",
@@ -200,9 +200,20 @@ export function DeployItem({ target, token, onDelete, onEdit }: DeployItemProps)
200
200
  ) : (
201
201
  <StatusBadge state={latest?.state} showSpinner />
202
202
  )}
203
+ {isActiveState(latest?.state) && (
204
+ <Button
205
+ text="Cancel"
206
+ mode="ghost"
207
+ tone="critical"
208
+ loading={canceling}
209
+ disabled={canceling}
210
+ onClick={cancel}
211
+ style={{ cursor: 'pointer' }}
212
+ />
213
+ )}
203
214
  {isActive && elapsed > 0 ? (
204
215
  <Flex align="center" gap={1}>
205
- <ClockIcon />
216
+ <Spinner muted />
206
217
  <Text size={1} muted>{formatDuration(elapsed)}</Text>
207
218
  </Flex>
208
219
  ) : (!isActive && deployedAt) ? (
@@ -511,17 +522,6 @@ export function DeployItem({ target, token, onDelete, onEdit }: DeployItemProps)
511
522
  className="dvfs-deploy-col"
512
523
  style={{ flexShrink: 0, alignSelf: 'stretch' }}
513
524
  >
514
- {isActiveState(latest?.state) && (
515
- <Button
516
- text="Cancel"
517
- mode="ghost"
518
- tone="critical"
519
- loading={canceling}
520
- disabled={canceling}
521
- onClick={cancel}
522
- style={{ cursor: 'pointer' }}
523
- />
524
- )}
525
525
  <Button
526
526
  text="Deploy"
527
527
  tone="primary"