@liiift-studio/deploy-vercel-from-sanity 0.1.1 → 0.1.3

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.HistoryIcon,
361
+ icon: import_icons2.ClockIcon,
362
362
  onClick: () => setShowHistory(true)
363
363
  }
364
364
  ),
@@ -500,7 +500,7 @@ function TokenSetup({ onSaved }) {
500
500
  }, [client, token, onSaved]);
501
501
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui4.Card, { height: "fill", tone: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui4.Flex, { align: "center", justify: "center", height: "fill", padding: 6, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui4.Card, { padding: 5, radius: 3, shadow: 1, style: { maxWidth: 480, width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_ui4.Stack, { space: 5, children: [
502
502
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_ui4.Flex, { align: "center", gap: 3, children: [
503
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui4.Text, { size: 3, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons3.KeyIcon, {}) }),
503
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui4.Text, { size: 3, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons3.TokenIcon, {}) }),
504
504
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui4.Heading, { size: 2, children: "Connect to Vercel" })
505
505
  ] }),
506
506
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_ui4.Stack, { space: 3, children: [
@@ -631,7 +631,7 @@ function DeployTool() {
631
631
  {
632
632
  text: "API Token",
633
633
  mode: "ghost",
634
- icon: import_icons4.KeyIcon,
634
+ icon: import_icons4.TokenIcon,
635
635
  fontSize: 1,
636
636
  onClick: () => setShowTokenSetup(true)
637
637
  }
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  Dialog as Dialog2,
18
18
  useToast
19
19
  } from "@sanity/ui";
20
- import { RocketIcon as RocketIcon2, KeyIcon as KeyIcon2, TrashIcon as TrashIcon2, WarningOutlineIcon } from "@sanity/icons";
20
+ import { RocketIcon as RocketIcon2, TokenIcon as TokenIcon2, TrashIcon as TrashIcon2, WarningOutlineIcon } from "@sanity/icons";
21
21
 
22
22
  // src/components/DeployItem.tsx
23
23
  import { useState as useState2, useEffect as useEffect2, useCallback as useCallback2, useRef } from "react";
@@ -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: HistoryIcon,
376
+ icon: ClockIcon,
378
377
  onClick: () => setShowHistory(true)
379
378
  }
380
379
  ),
@@ -497,7 +496,7 @@ import {
497
496
  Button as Button3,
498
497
  Flex as Flex4
499
498
  } from "@sanity/ui";
500
- import { KeyIcon, CheckmarkCircleIcon } from "@sanity/icons";
499
+ import { TokenIcon, CheckmarkCircleIcon } from "@sanity/icons";
501
500
  import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
502
501
  var TOKEN_DOC_ID = "secrets.vercelDeploy";
503
502
  function TokenSetup({ onSaved }) {
@@ -524,7 +523,7 @@ function TokenSetup({ onSaved }) {
524
523
  }, [client, token, onSaved]);
525
524
  return /* @__PURE__ */ jsx4(Card3, { height: "fill", tone: "transparent", children: /* @__PURE__ */ jsx4(Flex4, { align: "center", justify: "center", height: "fill", padding: 6, children: /* @__PURE__ */ jsx4(Card3, { padding: 5, radius: 3, shadow: 1, style: { maxWidth: 480, width: "100%" }, children: /* @__PURE__ */ jsxs4(Stack3, { space: 5, children: [
526
525
  /* @__PURE__ */ jsxs4(Flex4, { align: "center", gap: 3, children: [
527
- /* @__PURE__ */ jsx4(Text3, { size: 3, children: /* @__PURE__ */ jsx4(KeyIcon, {}) }),
526
+ /* @__PURE__ */ jsx4(Text3, { size: 3, children: /* @__PURE__ */ jsx4(TokenIcon, {}) }),
528
527
  /* @__PURE__ */ jsx4(Heading, { size: 2, children: "Connect to Vercel" })
529
528
  ] }),
530
529
  /* @__PURE__ */ jsxs4(Stack3, { space: 3, children: [
@@ -655,7 +654,7 @@ function DeployTool() {
655
654
  {
656
655
  text: "API Token",
657
656
  mode: "ghost",
658
- icon: KeyIcon2,
657
+ icon: TokenIcon2,
659
658
  fontSize: 1,
660
659
  onClick: () => setShowTokenSetup(true)
661
660
  }
package/package.json CHANGED
@@ -1,22 +1,31 @@
1
1
  {
2
2
  "name": "@liiift-studio/deploy-vercel-from-sanity",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
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": ["sanity", "sanity-plugin", "vercel", "deploy", "deployment"],
8
- "main": "./dist/index.cjs",
9
- "module": "./dist/index.js",
7
+ "keywords": [
8
+ "sanity",
9
+ "sanity-plugin",
10
+ "vercel",
11
+ "deploy",
12
+ "deployment"
13
+ ],
14
+ "main": "./dist/index.js",
15
+ "module": "./dist/index.mjs",
10
16
  "types": "./dist/index.d.ts",
11
17
  "exports": {
12
18
  ".": {
13
19
  "source": "./src/index.ts",
14
- "import": "./dist/index.js",
15
- "require": "./dist/index.cjs",
16
- "default": "./dist/index.js"
20
+ "import": "./dist/index.mjs",
21
+ "require": "./dist/index.js",
22
+ "default": "./dist/index.mjs"
17
23
  }
18
24
  },
19
- "files": ["dist", "src"],
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, HistoryIcon, TrashIcon, EllipsisVerticalIcon, LaunchIcon,
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={HistoryIcon}
152
+ icon={ClockIcon}
153
153
  onClick={() => setShowHistory(true)}
154
154
  />
155
155
  {safeHref(latest?.inspectorUrl) && (
@@ -4,7 +4,7 @@ import { useClient } from 'sanity'
4
4
  import {
5
5
  Card, Box, Stack, Flex, Text, Heading, Spinner, Button, Dialog, useToast,
6
6
  } from '@sanity/ui'
7
- import { RocketIcon, KeyIcon, TrashIcon, WarningOutlineIcon } from '@sanity/icons'
7
+ import { RocketIcon, TokenIcon, TrashIcon, WarningOutlineIcon } from '@sanity/icons'
8
8
  import { DeployItem } from './DeployItem'
9
9
  import { TokenSetup } from './TokenSetup'
10
10
  import type { DeployTarget } from '../types'
@@ -109,7 +109,7 @@ export function DeployTool() {
109
109
  <Button
110
110
  text="API Token"
111
111
  mode="ghost"
112
- icon={KeyIcon}
112
+ icon={TokenIcon}
113
113
  fontSize={1}
114
114
  onClick={() => setShowTokenSetup(true)}
115
115
  />
@@ -4,7 +4,7 @@ import { useClient } from 'sanity'
4
4
  import {
5
5
  Card, Box, Stack, Text, Heading, TextInput, Button, Flex,
6
6
  } from '@sanity/ui'
7
- import { KeyIcon, CheckmarkCircleIcon } from '@sanity/icons'
7
+ import { TokenIcon, CheckmarkCircleIcon } from '@sanity/icons'
8
8
 
9
9
  interface TokenSetupProps {
10
10
  /** Called after the token is successfully saved */
@@ -43,7 +43,7 @@ export function TokenSetup({ onSaved }: TokenSetupProps) {
43
43
  <Card padding={5} radius={3} shadow={1} style={{ maxWidth: 480, width: '100%' }}>
44
44
  <Stack space={5}>
45
45
  <Flex align="center" gap={3}>
46
- <Text size={3}><KeyIcon /></Text>
46
+ <Text size={3}><TokenIcon /></Text>
47
47
  <Heading size={2}>Connect to Vercel</Heading>
48
48
  </Flex>
49
49