@parallelworks/tandem-web 0.143.0 → 0.144.0

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.
@@ -1,13 +1,13 @@
1
1
  import { Link as e } from "../lib/router.js";
2
2
  import { githubAccountQuery as t, meQuery as n } from "../api/queries.js";
3
- import { ChevronDownIcon as r, CommentIcon as i, FolderIcon as a, HistoryIcon as o, KeyIcon as s, LinkIcon as c, ListViewIcon as l, NotificationIcon as u, RepositoryIcon as d, SettingsIcon as f, ShieldIcon as p, TagIcon as m, UserIcon as h, UsersIcon as g, WebhookIcon as _, WorkerIcon as v } from "./icons.js";
4
- import { useTranslations as y } from "use-intl";
5
- import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
6
- import { useQuery as C, useSuspenseQuery as w } from "@tanstack/react-query";
3
+ import { ChevronDownIcon as r, CommentIcon as i, FolderIcon as a, HistoryIcon as o, KeyIcon as s, LinkIcon as c, ListViewIcon as l, MigrationIcon as u, NotificationIcon as d, RepositoryIcon as f, SettingsIcon as p, ShieldIcon as m, TagIcon as h, UserIcon as g, UsersIcon as _, WebhookIcon as v, WorkerIcon as y } from "./icons.js";
4
+ import { useTranslations as b } from "use-intl";
5
+ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
6
+ import { useQuery as w, useSuspenseQuery as T } from "@tanstack/react-query";
7
7
  // src/components/SettingsNav.tsx
8
- var T = "flex h-8 items-center gap-2.5 rounded-md px-2 text-sm text-muted-foreground hover:bg-muted hover:text-foreground", E = "bg-[var(--theme-sidebar-active-bg,var(--theme-hover))] hover:bg-[var(--theme-sidebar-active-bg,var(--theme-hover))] !text-[var(--theme-sidebar-active-text,var(--theme-app))] font-medium", D = { className: E };
9
- function O() {
10
- let { data: e } = w(n), r = y("settingsNav"), b = e?.mode === "platform", { data: x } = C(t);
8
+ var E = "flex h-8 items-center gap-2.5 rounded-md px-2 text-sm text-muted-foreground hover:bg-muted hover:text-foreground", D = "bg-[var(--theme-sidebar-active-bg,var(--theme-hover))] hover:bg-[var(--theme-sidebar-active-bg,var(--theme-hover))] !text-[var(--theme-sidebar-active-text,var(--theme-app))] font-medium", O = { className: D };
9
+ function k() {
10
+ let { data: e } = T(n), r = b("settingsNav"), x = e?.mode === "platform", { data: S } = w(t);
11
11
  return [
12
12
  {
13
13
  label: r("account"),
@@ -15,31 +15,31 @@ function O() {
15
15
  {
16
16
  to: "/$workspace/settings/account",
17
17
  label: r("profile"),
18
- Icon: h
18
+ Icon: g
19
19
  },
20
20
  {
21
21
  to: "/$workspace/settings/notifications",
22
22
  label: r("notifications"),
23
- Icon: u
23
+ Icon: d
24
24
  },
25
25
  {
26
26
  to: "/$workspace/settings/runners",
27
27
  label: r("runners"),
28
- Icon: v
28
+ Icon: y
29
29
  },
30
- ...x?.enabled ? [{
30
+ ...S?.enabled ? [{
31
31
  to: "/$workspace/settings/connections",
32
32
  label: r("connections"),
33
33
  Icon: c
34
34
  }] : [],
35
- ...b ? [] : [{
35
+ ...x ? [] : [{
36
36
  to: "/$workspace/settings/tokens",
37
37
  label: r("tokens"),
38
38
  Icon: s
39
39
  }, {
40
40
  to: "/$workspace/settings/sessions",
41
41
  label: r("sessions"),
42
- Icon: p
42
+ Icon: m
43
43
  }]
44
44
  ]
45
45
  },
@@ -49,22 +49,22 @@ function O() {
49
49
  {
50
50
  to: "/$workspace/settings",
51
51
  label: r("general"),
52
- Icon: f
52
+ Icon: p
53
53
  },
54
54
  {
55
55
  to: "/$workspace/settings/members",
56
- label: r(b ? "access" : "members"),
57
- Icon: g
56
+ label: r(x ? "access" : "members"),
57
+ Icon: _
58
58
  },
59
59
  {
60
60
  to: "/$workspace/settings/roles",
61
61
  label: r("roles"),
62
- Icon: p
62
+ Icon: m
63
63
  },
64
64
  {
65
65
  to: "/$workspace/settings/groups",
66
66
  label: r("groups"),
67
- Icon: p
67
+ Icon: m
68
68
  },
69
69
  {
70
70
  to: "/$workspace/settings/teams",
@@ -74,7 +74,7 @@ function O() {
74
74
  {
75
75
  to: "/$workspace/settings/labels",
76
76
  label: r("labels"),
77
- Icon: m
77
+ Icon: h
78
78
  },
79
79
  {
80
80
  to: "/$workspace/settings/fields",
@@ -86,7 +86,7 @@ function O() {
86
86
  label: r("auditLog"),
87
87
  Icon: o
88
88
  },
89
- ...b ? [] : [{
89
+ ...x ? [] : [{
90
90
  to: "/$workspace/settings/sso",
91
91
  label: r("sso"),
92
92
  Icon: s
@@ -99,7 +99,7 @@ function O() {
99
99
  {
100
100
  to: "/$workspace/settings/github",
101
101
  label: r("github"),
102
- Icon: d
102
+ Icon: f
103
103
  },
104
104
  {
105
105
  to: "/$workspace/settings/slack",
@@ -109,37 +109,42 @@ function O() {
109
109
  {
110
110
  to: "/$workspace/settings/webhooks",
111
111
  label: r("webhooks"),
112
- Icon: _
112
+ Icon: v
113
+ },
114
+ {
115
+ to: "/$workspace/settings/import",
116
+ label: r("import"),
117
+ Icon: u
113
118
  }
114
119
  ]
115
120
  }
116
121
  ];
117
122
  }
118
- function k({ workspace: t }) {
119
- let n = y("settingsNav"), i = O();
120
- return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S(e, {
123
+ function A({ workspace: t }) {
124
+ let n = b("settingsNav"), i = k();
125
+ return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C(e, {
121
126
  to: "/$workspace/issues",
122
127
  params: { workspace: t },
123
128
  className: "flex h-9 items-center gap-2 rounded-md px-2 text-sm font-semibold hover:bg-muted",
124
- children: [/* @__PURE__ */ x(r, { className: "size-4 rotate-90 text-muted-foreground" }), n("label")]
125
- }), /* @__PURE__ */ x("nav", {
129
+ children: [/* @__PURE__ */ S(r, { className: "size-4 rotate-90 text-muted-foreground" }), n("label")]
130
+ }), /* @__PURE__ */ S("nav", {
126
131
  "aria-label": n("label"),
127
132
  className: "-mx-3 mt-2 min-h-0 flex-1 overflow-y-auto px-3",
128
- children: i.map((n) => /* @__PURE__ */ S("div", {
133
+ children: i.map((n) => /* @__PURE__ */ C("div", {
129
134
  className: "mt-4 first:mt-0",
130
- children: [/* @__PURE__ */ x("p", {
135
+ children: [/* @__PURE__ */ S("p", {
131
136
  className: "flex h-6 items-center px-2 text-xs font-medium text-muted-foreground",
132
137
  children: n.label
133
- }), /* @__PURE__ */ x("div", {
138
+ }), /* @__PURE__ */ S("div", {
134
139
  className: "mt-1 space-y-0.5",
135
- children: n.items.map(({ to: n, label: r, Icon: i }) => /* @__PURE__ */ S(e, {
140
+ children: n.items.map(({ to: n, label: r, Icon: i }) => /* @__PURE__ */ C(e, {
136
141
  to: n,
137
142
  params: { workspace: t },
138
- className: T,
139
- activeProps: D,
143
+ className: E,
144
+ activeProps: O,
140
145
  activeOptions: { exact: !0 },
141
146
  children: [
142
- /* @__PURE__ */ x(i, { className: "size-4" }),
147
+ /* @__PURE__ */ S(i, { className: "size-4" }),
143
148
  " ",
144
149
  r
145
150
  ]
@@ -148,4 +153,4 @@ function k({ workspace: t }) {
148
153
  }, n.label))
149
154
  })] });
150
155
  }
151
- export { k as SettingsNav, T as navItem, E as navOn, O as useSettingsPages };
156
+ export { A as SettingsNav, E as navItem, D as navOn, k as useSettingsPages };
@@ -200,12 +200,12 @@ function l(e) {
200
200
  });
201
201
  };
202
202
  }
203
- var u = l(r.AddIcon), d = l(r.ColumnsIcon), f = l(r.AttachmentIcon), p = l(r.BranchIcon), m = l(r.CalendarIcon), h = l(r.ClockIcon), g = l(r.CheckIcon), _ = l(r.ChevronDownIcon), v = l(r.ChevronRightIcon), y = l(r.CloseIcon), b = l(r.CommentIcon), x = l(r.DownloadIcon), S = l(r.UploadIcon), C = l(r.ExpandIcon), w = l(r.FileTextIcon), T = l(r.FolderIcon), E = l(r.ChartIcon), D = l(r.GridIcon), O = l(r.HistoryIcon), k = l(r.InboxIcon), A = l(r.KeyIcon), j = l(r.MinimizeIcon), M = l(r.LibraryIcon), N = l(r.ListViewIcon), P = l(r.MailIcon);
203
+ var u = l(r.AddIcon), d = l(r.ColumnsIcon), f = l(r.AttachmentIcon), p = l(r.BranchIcon), m = l(r.CalendarIcon), h = l(r.ClockIcon), g = l(r.CheckIcon), _ = l(r.ChevronDownIcon), v = l(r.ChevronRightIcon), y = l(r.CloseIcon), b = l(r.CommentIcon), x = l(r.DownloadIcon), S = l(r.UploadIcon), C = l(r.ExpandIcon), w = l(r.FileTextIcon), T = l(r.FolderIcon), E = l(r.ChartIcon), D = l(r.GridIcon), O = l(r.HistoryIcon), k = l(r.InboxIcon), A = l(r.KeyIcon), j = l(r.MinimizeIcon), M = l(r.LibraryIcon), N = l(r.ListViewIcon), P = l(r.MailIcon), F = l(r.MigrationIcon);
204
204
  r.NavigationIcon;
205
- var F = l(r.NotificationIcon), te = l(r.QueueIcon), I = l(r.ProjectIcon), L = l(r.PullRequestIcon), R = l(r.RepositoryIcon), z = l(r.SearchIcon), B = l(r.SettingsIcon), V = l(r.ShieldIcon), H = l(r.ShrinkIcon);
205
+ var te = l(r.NotificationIcon), I = l(r.QueueIcon), L = l(r.ProjectIcon), R = l(r.PullRequestIcon), z = l(r.RepositoryIcon), B = l(r.SearchIcon), V = l(r.SettingsIcon), H = l(r.ShieldIcon), U = l(r.ShrinkIcon);
206
206
  r.SignOutIcon;
207
- var U = l(r.TagIcon), W = l(r.UserIcon), G = l(r.UsersIcon), K = l(r.WebhookIcon), q = l(r.WorkerIcon), J = c("M1.75 9a6.25 4.25 0 1 0 12.5 0 6.25 4.25 0 1 0-12.5 0ZM6.75 3 9 4.75 6.75 6.5"), Y = c("M2.5 3.5h11v9h-11ZM10 3.5v9"), X = c("M2.5 2.5v11M4.5 4.5h5M6.5 8h7M5.5 11.5h4.5"), Z = c("M3 13 13 3M3 9.5 9.5 3M6.5 13 13 6.5"), Q = c("M3.5 2.5h9a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1ZM5.5 5h2a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .5-.5Z");
208
- function ne({ className: e = "size-4" }) {
207
+ var W = l(r.TagIcon), G = l(r.UserIcon), K = l(r.UsersIcon), q = l(r.WebhookIcon), J = l(r.WorkerIcon), Y = c("M1.75 9a6.25 4.25 0 1 0 12.5 0 6.25 4.25 0 1 0-12.5 0ZM6.75 3 9 4.75 6.75 6.5"), X = c("M2.5 3.5h11v9h-11ZM10 3.5v9"), Z = c("M2.5 2.5v11M4.5 4.5h5M6.5 8h7M5.5 11.5h4.5"), Q = c("M3 13 13 3M3 9.5 9.5 3M6.5 13 13 6.5"), ne = c("M3.5 2.5h9a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1ZM5.5 5h2a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .5-.5Z");
208
+ function re({ className: e = "size-4" }) {
209
209
  return /* @__PURE__ */ t("svg", {
210
210
  viewBox: "0 0 16 16",
211
211
  className: `shrink-0 ${e}`,
@@ -214,10 +214,10 @@ function ne({ className: e = "size-4" }) {
214
214
  children: /* @__PURE__ */ t("path", { d: "M8 0a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.06-.49.06-.49.8.06 1.23.83 1.23.83.72 1.22 1.87.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.66 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 0Z" })
215
215
  });
216
216
  }
217
- var re = l(r.AddUserIcon), ie = l(r.RemoveUserIcon), ae = l(r.ArchiveIcon), oe = l(r.RestoreIcon), $ = l(r.EditIcon), se = l(r.RenameIcon), ce = l(r.LinkIcon), le = l(r.UnlinkIcon);
217
+ var ie = l(r.AddUserIcon), ae = l(r.RemoveUserIcon), oe = l(r.ArchiveIcon), se = l(r.RestoreIcon), ce = l(r.EditIcon), le = l(r.RenameIcon), ue = l(r.LinkIcon), de = l(r.UnlinkIcon);
218
218
  r.CommitIcon;
219
- var ue = l(r.ReleaseIcon), de = l(r.MegaphoneIcon), fe = l(r.SwapIcon), pe = l(r.TrashIcon);
219
+ var fe = l(r.ReleaseIcon), pe = l(r.MegaphoneIcon), $ = l(r.SwapIcon), me = l(r.TrashIcon);
220
220
  r.EyeIcon;
221
- var me = l(r.SuccessIcon), he = l(r.CancelIcon), ge = l(r.AgentIcon);
221
+ var he = l(r.SuccessIcon), ge = l(r.CancelIcon), _e = l(r.AgentIcon);
222
222
  r.ArrowRightIcon;
223
- export { u as AddIcon, re as AddUserIcon, ge as AgentIcon, ae as ArchiveIcon, Q as AreaIcon, f as AttachmentIcon, d as BoardIcon, p as BranchIcon, m as CalendarIcon, he as CancelIcon, E as ChartIcon, g as CheckIcon, _ as ChevronDownIcon, v as ChevronRightIcon, h as ClockIcon, y as CloseIcon, ne as CodeHostIcon, b as CommentIcon, J as CycleIcon, x as DownloadIcon, $ as EditIcon, Z as EstimateIcon, C as ExpandIcon, w as FileTextIcon, T as FolderIcon, D as GridIcon, O as HistoryIcon, k as InboxIcon, A as KeyIcon, M as LibraryIcon, ce as LinkIcon, N as ListViewIcon, P as MailIcon, de as MegaphoneIcon, j as MinimizeIcon, F as NotificationIcon, ee as PriorityIcon, I as ProjectIcon, L as PullRequestIcon, ue as ReleaseIcon, ie as RemoveUserIcon, se as RenameIcon, R as RepositoryIcon, oe as RestoreIcon, z as SearchIcon, B as SettingsIcon, V as ShieldIcon, H as ShrinkIcon, Y as SidePanelIcon, a as StatusIcon, me as SuccessIcon, fe as SwapIcon, U as TagIcon, X as TimelineIcon, pe as TrashIcon, te as TriageIcon, le as UnlinkIcon, S as UploadIcon, W as UserIcon, G as UsersIcon, K as WebhookIcon, q as WorkerIcon, s as usePriorityNames };
223
+ export { u as AddIcon, ie as AddUserIcon, _e as AgentIcon, oe as ArchiveIcon, ne as AreaIcon, f as AttachmentIcon, d as BoardIcon, p as BranchIcon, m as CalendarIcon, ge as CancelIcon, E as ChartIcon, g as CheckIcon, _ as ChevronDownIcon, v as ChevronRightIcon, h as ClockIcon, y as CloseIcon, re as CodeHostIcon, b as CommentIcon, Y as CycleIcon, x as DownloadIcon, ce as EditIcon, Q as EstimateIcon, C as ExpandIcon, w as FileTextIcon, T as FolderIcon, D as GridIcon, O as HistoryIcon, k as InboxIcon, A as KeyIcon, M as LibraryIcon, ue as LinkIcon, N as ListViewIcon, P as MailIcon, pe as MegaphoneIcon, F as MigrationIcon, j as MinimizeIcon, te as NotificationIcon, ee as PriorityIcon, L as ProjectIcon, R as PullRequestIcon, fe as ReleaseIcon, ae as RemoveUserIcon, le as RenameIcon, z as RepositoryIcon, se as RestoreIcon, B as SearchIcon, V as SettingsIcon, H as ShieldIcon, U as ShrinkIcon, X as SidePanelIcon, a as StatusIcon, he as SuccessIcon, $ as SwapIcon, W as TagIcon, Z as TimelineIcon, me as TrashIcon, I as TriageIcon, de as UnlinkIcon, S as UploadIcon, G as UserIcon, K as UsersIcon, q as WebhookIcon, J as WorkerIcon, s as usePriorityNames };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/tandem-web",
3
- "version": "0.143.0",
3
+ "version": "0.144.0",
4
4
  "description": "Tandem's pages, for a host app to render in its own",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",