@parallelworks/tandem-web 0.143.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, 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, 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 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 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 O() {
15
15
  {
16
16
  to: "/$workspace/settings/account",
17
17
  label: r("profile"),
18
- Icon: h
18
+ Icon: _
19
19
  },
20
20
  {
21
21
  to: "/$workspace/settings/notifications",
22
22
  label: r("notifications"),
23
- Icon: u
23
+ Icon: f
24
24
  },
25
25
  {
26
26
  to: "/$workspace/settings/runners",
27
27
  label: r("runners"),
28
- Icon: v
28
+ Icon: b
29
29
  },
30
- ...x?.enabled ? [{
30
+ ...C?.enabled ? [{
31
31
  to: "/$workspace/settings/connections",
32
32
  label: r("connections"),
33
- Icon: c
33
+ Icon: l
34
34
  }] : [],
35
- ...b ? [] : [{
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: p
42
+ Icon: h
43
43
  }]
44
44
  ]
45
45
  },
@@ -49,47 +49,47 @@ function O() {
49
49
  {
50
50
  to: "/$workspace/settings",
51
51
  label: r("general"),
52
- Icon: f
52
+ Icon: m
53
53
  },
54
54
  {
55
55
  to: "/$workspace/settings/members",
56
- label: r(b ? "access" : "members"),
57
- Icon: g
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: p
62
+ Icon: h
63
63
  },
64
64
  {
65
65
  to: "/$workspace/settings/groups",
66
66
  label: r("groups"),
67
- Icon: p
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: m
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
- ...b ? [] : [{
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,47 +99,57 @@ function O() {
99
99
  {
100
100
  to: "/$workspace/settings/github",
101
101
  label: r("github"),
102
- Icon: d
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: _
112
+ Icon: y
113
+ },
114
+ {
115
+ to: "/$workspace/settings/parallelworks",
116
+ label: r("parallelWorks"),
117
+ Icon: i
118
+ },
119
+ {
120
+ to: "/$workspace/settings/import",
121
+ label: r("import"),
122
+ Icon: d
113
123
  }
114
124
  ]
115
125
  }
116
126
  ];
117
127
  }
118
- function k({ workspace: t }) {
119
- let n = y("settingsNav"), i = O();
120
- return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S(e, {
128
+ function j({ workspace: t }) {
129
+ let n = x("settingsNav"), i = A();
130
+ return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w(e, {
121
131
  to: "/$workspace/issues",
122
132
  params: { workspace: t },
123
133
  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", {
134
+ children: [/* @__PURE__ */ C(r, { className: "size-4 rotate-90 text-muted-foreground" }), n("label")]
135
+ }), /* @__PURE__ */ C("nav", {
126
136
  "aria-label": n("label"),
127
137
  className: "-mx-3 mt-2 min-h-0 flex-1 overflow-y-auto px-3",
128
- children: i.map((n) => /* @__PURE__ */ S("div", {
138
+ children: i.map((n) => /* @__PURE__ */ w("div", {
129
139
  className: "mt-4 first:mt-0",
130
- children: [/* @__PURE__ */ x("p", {
140
+ children: [/* @__PURE__ */ C("p", {
131
141
  className: "flex h-6 items-center px-2 text-xs font-medium text-muted-foreground",
132
142
  children: n.label
133
- }), /* @__PURE__ */ x("div", {
143
+ }), /* @__PURE__ */ C("div", {
134
144
  className: "mt-1 space-y-0.5",
135
- children: n.items.map(({ to: n, label: r, Icon: i }) => /* @__PURE__ */ S(e, {
145
+ children: n.items.map(({ to: n, label: r, Icon: i }) => /* @__PURE__ */ w(e, {
136
146
  to: n,
137
147
  params: { workspace: t },
138
- className: T,
139
- activeProps: D,
148
+ className: D,
149
+ activeProps: k,
140
150
  activeOptions: { exact: !0 },
141
151
  children: [
142
- /* @__PURE__ */ x(i, { className: "size-4" }),
152
+ /* @__PURE__ */ C(i, { className: "size-4" }),
143
153
  " ",
144
154
  r
145
155
  ]
@@ -148,4 +158,4 @@ function k({ workspace: t }) {
148
158
  }, n.label))
149
159
  })] });
150
160
  }
151
- export { k as SettingsNav, T as navItem, E as navOn, O 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);
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 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 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 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 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 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 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 ue = l(r.ReleaseIcon), de = l(r.MegaphoneIcon), fe = l(r.SwapIcon), pe = 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 me = l(r.SuccessIcon), he = l(r.CancelIcon), ge = 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, 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, 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.143.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",