@parallelworks/tandem-web 0.144.0 → 0.145.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, 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";
3
+ import { ChevronDownIcon as r, CloudIcon as i, CommentIcon as a, FolderIcon as o, HistoryIcon as s, KeyIcon as c, LinkIcon as l, ListViewIcon as u, MigrationIcon as d, NotificationIcon as f, RepositoryIcon as p, SettingsIcon as m, ShieldIcon as h, TagIcon as g, UserIcon as _, UsersIcon as v, WebhookIcon as y, WorkerIcon as b } from "./icons.js";
4
+ import { useTranslations as x } from "use-intl";
5
+ import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
6
+ import { useQuery as T, useSuspenseQuery as E } from "@tanstack/react-query";
7
7
  // src/components/SettingsNav.tsx
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);
8
+ var D = "flex h-8 items-center gap-2.5 rounded-md px-2 text-sm text-muted-foreground hover:bg-muted hover:text-foreground", O = "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", k = { className: O };
9
+ function A() {
10
+ let { data: e } = E(n), r = x("settingsNav"), S = e?.mode === "platform", { data: C } = T(t);
11
11
  return [
12
12
  {
13
13
  label: r("account"),
@@ -15,31 +15,31 @@ function k() {
15
15
  {
16
16
  to: "/$workspace/settings/account",
17
17
  label: r("profile"),
18
- Icon: g
18
+ Icon: _
19
19
  },
20
20
  {
21
21
  to: "/$workspace/settings/notifications",
22
22
  label: r("notifications"),
23
- Icon: d
23
+ Icon: f
24
24
  },
25
25
  {
26
26
  to: "/$workspace/settings/runners",
27
27
  label: r("runners"),
28
- Icon: y
28
+ Icon: b
29
29
  },
30
- ...S?.enabled ? [{
30
+ ...C?.enabled ? [{
31
31
  to: "/$workspace/settings/connections",
32
32
  label: r("connections"),
33
- Icon: c
33
+ Icon: l
34
34
  }] : [],
35
- ...x ? [] : [{
35
+ ...S ? [] : [{
36
36
  to: "/$workspace/settings/tokens",
37
37
  label: r("tokens"),
38
- Icon: s
38
+ Icon: c
39
39
  }, {
40
40
  to: "/$workspace/settings/sessions",
41
41
  label: r("sessions"),
42
- Icon: m
42
+ Icon: h
43
43
  }]
44
44
  ]
45
45
  },
@@ -49,47 +49,47 @@ function k() {
49
49
  {
50
50
  to: "/$workspace/settings",
51
51
  label: r("general"),
52
- Icon: p
52
+ Icon: m
53
53
  },
54
54
  {
55
55
  to: "/$workspace/settings/members",
56
- label: r(x ? "access" : "members"),
57
- Icon: _
56
+ label: r(S ? "access" : "members"),
57
+ Icon: v
58
58
  },
59
59
  {
60
60
  to: "/$workspace/settings/roles",
61
61
  label: r("roles"),
62
- Icon: m
62
+ Icon: h
63
63
  },
64
64
  {
65
65
  to: "/$workspace/settings/groups",
66
66
  label: r("groups"),
67
- Icon: m
67
+ Icon: h
68
68
  },
69
69
  {
70
70
  to: "/$workspace/settings/teams",
71
71
  label: r("teams"),
72
- Icon: a
72
+ Icon: o
73
73
  },
74
74
  {
75
75
  to: "/$workspace/settings/labels",
76
76
  label: r("labels"),
77
- Icon: h
77
+ Icon: g
78
78
  },
79
79
  {
80
80
  to: "/$workspace/settings/fields",
81
81
  label: r("fields"),
82
- Icon: l
82
+ Icon: u
83
83
  },
84
84
  {
85
85
  to: "/$workspace/settings/audit-log",
86
86
  label: r("auditLog"),
87
- Icon: o
87
+ Icon: s
88
88
  },
89
- ...x ? [] : [{
89
+ ...S ? [] : [{
90
90
  to: "/$workspace/settings/sso",
91
91
  label: r("sso"),
92
- Icon: s
92
+ Icon: c
93
93
  }]
94
94
  ]
95
95
  },
@@ -99,52 +99,57 @@ function k() {
99
99
  {
100
100
  to: "/$workspace/settings/github",
101
101
  label: r("github"),
102
- Icon: f
102
+ Icon: p
103
103
  },
104
104
  {
105
105
  to: "/$workspace/settings/slack",
106
106
  label: r("slack"),
107
- Icon: i
107
+ Icon: a
108
108
  },
109
109
  {
110
110
  to: "/$workspace/settings/webhooks",
111
111
  label: r("webhooks"),
112
- Icon: v
112
+ Icon: y
113
+ },
114
+ {
115
+ to: "/$workspace/settings/parallelworks",
116
+ label: r("parallelWorks"),
117
+ Icon: i
113
118
  },
114
119
  {
115
120
  to: "/$workspace/settings/import",
116
121
  label: r("import"),
117
- Icon: u
122
+ Icon: d
118
123
  }
119
124
  ]
120
125
  }
121
126
  ];
122
127
  }
123
- function A({ workspace: t }) {
124
- let n = b("settingsNav"), i = k();
125
- return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C(e, {
128
+ function j({ workspace: t }) {
129
+ let n = x("settingsNav"), i = A();
130
+ return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w(e, {
126
131
  to: "/$workspace/issues",
127
132
  params: { workspace: t },
128
133
  className: "flex h-9 items-center gap-2 rounded-md px-2 text-sm font-semibold hover:bg-muted",
129
- children: [/* @__PURE__ */ S(r, { className: "size-4 rotate-90 text-muted-foreground" }), n("label")]
130
- }), /* @__PURE__ */ S("nav", {
134
+ children: [/* @__PURE__ */ C(r, { className: "size-4 rotate-90 text-muted-foreground" }), n("label")]
135
+ }), /* @__PURE__ */ C("nav", {
131
136
  "aria-label": n("label"),
132
137
  className: "-mx-3 mt-2 min-h-0 flex-1 overflow-y-auto px-3",
133
- children: i.map((n) => /* @__PURE__ */ C("div", {
138
+ children: i.map((n) => /* @__PURE__ */ w("div", {
134
139
  className: "mt-4 first:mt-0",
135
- children: [/* @__PURE__ */ S("p", {
140
+ children: [/* @__PURE__ */ C("p", {
136
141
  className: "flex h-6 items-center px-2 text-xs font-medium text-muted-foreground",
137
142
  children: n.label
138
- }), /* @__PURE__ */ S("div", {
143
+ }), /* @__PURE__ */ C("div", {
139
144
  className: "mt-1 space-y-0.5",
140
- children: n.items.map(({ to: n, label: r, Icon: i }) => /* @__PURE__ */ C(e, {
145
+ children: n.items.map(({ to: n, label: r, Icon: i }) => /* @__PURE__ */ w(e, {
141
146
  to: n,
142
147
  params: { workspace: t },
143
- className: E,
144
- activeProps: O,
148
+ className: D,
149
+ activeProps: k,
145
150
  activeOptions: { exact: !0 },
146
151
  children: [
147
- /* @__PURE__ */ S(i, { className: "size-4" }),
152
+ /* @__PURE__ */ C(i, { className: "size-4" }),
148
153
  " ",
149
154
  r
150
155
  ]
@@ -153,4 +158,4 @@ function A({ workspace: t }) {
153
158
  }, n.label))
154
159
  })] });
155
160
  }
156
- export { A as SettingsNav, E as navItem, D as navOn, k as useSettingsPages };
161
+ export { j as SettingsNav, D as navItem, O as navOn, A 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), F = l(r.MigrationIcon);
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.BucketIcon), O = l(r.CloudIcon), k = l(r.GridIcon), A = l(r.HistoryIcon), j = l(r.InboxIcon), M = l(r.KeyIcon), N = l(r.MinimizeIcon), P = l(r.LibraryIcon), F = l(r.ListViewIcon), I = l(r.MailIcon), L = l(r.MigrationIcon);
204
204
  r.NavigationIcon;
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);
205
+ var R = l(r.NotificationIcon), z = l(r.QueueIcon), B = l(r.ProjectIcon), V = l(r.PullRequestIcon), H = l(r.RepositoryIcon), U = l(r.SearchIcon), te = l(r.SettingsIcon), W = l(r.ShieldIcon), G = l(r.ShrinkIcon);
206
206
  r.SignOutIcon;
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" }) {
207
+ var K = l(r.TagIcon), q = l(r.UserIcon), J = l(r.UsersIcon), Y = l(r.WebhookIcon), X = l(r.WorkerIcon), Z = 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"), Q = c("M2.5 3.5h11v9h-11ZM10 3.5v9"), ne = c("M2.5 2.5v11M4.5 4.5h5M6.5 8h7M5.5 11.5h4.5"), re = c("M3 13 13 3M3 9.5 9.5 3M6.5 13 13 6.5"), ie = 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 ae({ 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 re({ 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 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);
217
+ var oe = l(r.AddUserIcon), se = l(r.RemoveUserIcon), ce = l(r.ArchiveIcon), le = l(r.RestoreIcon), ue = l(r.EditIcon), de = l(r.RenameIcon), fe = l(r.LinkIcon), pe = l(r.UnlinkIcon);
218
218
  r.CommitIcon;
219
- var fe = l(r.ReleaseIcon), pe = l(r.MegaphoneIcon), $ = l(r.SwapIcon), me = l(r.TrashIcon);
219
+ var $ = l(r.ReleaseIcon), me = l(r.MegaphoneIcon), he = l(r.SwapIcon), ge = l(r.TrashIcon);
220
220
  r.EyeIcon;
221
- var he = l(r.SuccessIcon), ge = l(r.CancelIcon), _e = l(r.AgentIcon);
221
+ var _e = l(r.SuccessIcon), ve = l(r.CancelIcon), ye = l(r.AgentIcon);
222
222
  r.ArrowRightIcon;
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 };
223
+ export { u as AddIcon, oe as AddUserIcon, ye as AgentIcon, ce as ArchiveIcon, ie as AreaIcon, f as AttachmentIcon, d as BoardIcon, p as BranchIcon, D as BucketIcon, m as CalendarIcon, ve as CancelIcon, E as ChartIcon, g as CheckIcon, _ as ChevronDownIcon, v as ChevronRightIcon, h as ClockIcon, y as CloseIcon, O as CloudIcon, ae as CodeHostIcon, b as CommentIcon, Z as CycleIcon, x as DownloadIcon, ue as EditIcon, re as EstimateIcon, C as ExpandIcon, w as FileTextIcon, T as FolderIcon, k as GridIcon, A as HistoryIcon, j as InboxIcon, M as KeyIcon, P as LibraryIcon, fe as LinkIcon, F as ListViewIcon, I as MailIcon, me as MegaphoneIcon, L as MigrationIcon, N as MinimizeIcon, R as NotificationIcon, ee as PriorityIcon, B as ProjectIcon, V as PullRequestIcon, $ as ReleaseIcon, se as RemoveUserIcon, de as RenameIcon, H as RepositoryIcon, le as RestoreIcon, U as SearchIcon, te as SettingsIcon, W as ShieldIcon, G as ShrinkIcon, Q as SidePanelIcon, a as StatusIcon, _e as SuccessIcon, he as SwapIcon, K as TagIcon, ne as TimelineIcon, ge as TrashIcon, z as TriageIcon, pe as UnlinkIcon, S as UploadIcon, q as UserIcon, J as UsersIcon, Y as WebhookIcon, X as WorkerIcon, s as usePriorityNames };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/tandem-web",
3
- "version": "0.144.0",
3
+ "version": "0.145.0",
4
4
  "description": "Tandem's pages, for a host app to render in its own",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",