@parallelworks/tandem-web 0.187.0 → 0.188.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,239 +1,244 @@
1
1
  import { areasQuery as e, knowledgeEntryQuery as t, knowledgeEventsQuery as n, knowledgeMentionsQuery as r, knowledgeQuery as i } from "../../../api/queries.js";
2
2
  import { Timeline as a, TimelineItem as o, activityIcon as s } from "../../../components/ActivityTimeline.js";
3
3
  import { AttachButton as c, UploadStatus as l, useFileUpload as u } from "../../../components/Attachments.js";
4
- import { Editor as ee } from "../../../components/Editor.js";
5
- import { FileTextIcon as d, LibraryIcon as f, StatusIcon as p } from "../../../components/icons.js";
6
- import { uploadKnowledgeAttachment as m } from "../../../lib/attachments.js";
4
+ import { Editor as d } from "../../../components/Editor.js";
5
+ import { FavoriteStar as f } from "../../../components/FavoriteStar.js";
6
+ import { FileTextIcon as p, LibraryIcon as ee, StatusIcon as m } from "../../../components/icons.js";
7
+ import { uploadKnowledgeAttachment as te } from "../../../lib/attachments.js";
7
8
  import { docRef as h } from "../../../lib/docs.js";
8
9
  import { headingAnchor as g } from "../../../lib/glossary.js";
9
- import { EntryDialog as _, useKnowledgeActions as te, useKnowledgeMenu as ne } from "../../../lib/knowledge.js";
10
- import { termRef as v } from "../../../lib/knowledgeKinds.js";
11
- import { usePageTitle as y } from "../../../lib/pageTitle.js";
12
- import { usePeople as b } from "../../../lib/people.js";
13
- import { useCan as x } from "../../../lib/roles.js";
14
- import { Link as S, useNavigate as C } from "../../../lib/router.js";
15
- import { useTime as w } from "../../../lib/time.js";
16
- import { Route as T } from "./_term.js";
17
- import { Button as E, ErrorText as D, Loader as O, PageHeader as re, Section as k, TitleInput as A, Tooltip as j, useOpenMenu as M } from "@parallelworks/ui";
18
- import { Suspense as N, useCallback as P, useMemo as F, useRef as I, useState as L } from "react";
19
- import { useErrorMessage as R } from "@parallelworks/problem/react";
20
- import { useTranslations as z } from "use-intl";
21
- import { Fragment as B, jsx as V, jsxs as H } from "react/jsx-runtime";
22
- import { useQuery as U, useSuspenseQuery as W } from "@tanstack/react-query";
23
- import { MoreButton as G } from "@parallelworks/ui/list";
10
+ import { EntryDialog as _, useKnowledgeActions as v, useKnowledgeMenu as y } from "../../../lib/knowledge.js";
11
+ import { termRef as b } from "../../../lib/knowledgeKinds.js";
12
+ import { usePageTitle as ne } from "../../../lib/pageTitle.js";
13
+ import { usePeople as x } from "../../../lib/people.js";
14
+ import { useCan as S } from "../../../lib/roles.js";
15
+ import { Link as C, useNavigate as w } from "../../../lib/router.js";
16
+ import { useTime as T } from "../../../lib/time.js";
17
+ import { Route as E } from "./_term.js";
18
+ import { Button as D, ErrorText as O, Loader as k, PageHeader as re, Section as A, TitleInput as j, Tooltip as M, useOpenMenu as N } from "@parallelworks/ui";
19
+ import { Suspense as P, useCallback as F, useMemo as I, useRef as L, useState as R } from "react";
20
+ import { useErrorMessage as z } from "@parallelworks/problem/react";
21
+ import { useTranslations as B } from "use-intl";
22
+ import { Fragment as V, jsx as H, jsxs as U } from "react/jsx-runtime";
23
+ import { useQuery as W, useSuspenseQuery as G } from "@tanstack/react-query";
24
+ import { MoreButton as K } from "@parallelworks/ui/list";
24
25
  // src/routes/$workspace/knowledge/$term.tsx?tsr-split=component
25
- function K() {
26
- let { workspace: e, term: n } = T.useParams(), r = z("knowledge"), a = z("common"), o = C(), s = M(), d = R(), { data: p } = W(t(e, n)), { data: h } = W(i(e)), g = te(e), b = x(e, "edit_docs"), w = b && !p.archivedAt, [k, j] = L(null), U = P((e) => j(e), []), K = ne(e, U), X = I(null), Z = u((t) => m(e, p.id, t));
27
- y(p.name);
28
- let Q = F(() => h.filter((e) => e.supersededBy === p.id), [h, p.id]), $ = (e) => g.update.mutate({
29
- id: p.id,
26
+ function q() {
27
+ let { workspace: e, term: n } = E.useParams(), r = B("knowledge"), a = B("common"), o = w(), s = N(), p = z(), { data: m } = G(t(e, n)), { data: h } = G(i(e)), g = v(e), x = S(e, "edit_docs"), T = x && !m.archivedAt, [A, M] = R(null), W = F((e) => M(e), []), q = y(e, W), X = L(null), Z = u((t) => te(e, m.id, t));
28
+ ne(m.name);
29
+ let Q = I(() => h.filter((e) => e.supersededBy === m.id), [h, m.id]), $ = (e) => g.update.mutate({
30
+ id: m.id,
30
31
  ...e,
31
- ifVersion: p.version
32
- }), ie = p.status === "superseded";
33
- return /* @__PURE__ */ H("div", {
32
+ ifVersion: m.version
33
+ }), ae = m.status === "superseded";
34
+ return /* @__PURE__ */ U("div", {
34
35
  className: "flex h-full min-h-0 flex-col",
35
36
  children: [
36
- /* @__PURE__ */ V(re, {
37
+ /* @__PURE__ */ H(re, {
37
38
  heading: !1,
38
39
  breadcrumbs: [{
39
40
  label: r("title"),
40
41
  href: `/${e}/knowledge`
41
42
  }, {
42
- label: p.name,
43
- icon: /* @__PURE__ */ V(f, { className: "size-4 text-muted-foreground" })
43
+ label: m.name,
44
+ icon: /* @__PURE__ */ H(ee, { className: "size-4 text-muted-foreground" })
44
45
  }],
45
- titleActions: /* @__PURE__ */ V(G, {
46
- items: () => K(p),
47
- label: a("moreActionsFor", { name: p.name }),
46
+ titleActions: /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(f, {
47
+ workspace: e,
48
+ kind: "term",
49
+ target: m.id
50
+ }), /* @__PURE__ */ H(K, {
51
+ items: () => q(m),
52
+ label: a("moreActionsFor", { name: m.name }),
48
53
  visible: !0
49
- }),
50
- actions: /* @__PURE__ */ H(B, { children: [g.update.isPending && /* @__PURE__ */ V("span", {
54
+ })] }),
55
+ actions: /* @__PURE__ */ U(V, { children: [g.update.isPending && /* @__PURE__ */ H("span", {
51
56
  className: "text-xs text-muted-foreground",
52
57
  role: "status",
53
58
  children: a("saving")
54
- }), w && /* @__PURE__ */ V(E, {
59
+ }), T && /* @__PURE__ */ H(D, {
55
60
  type: "button",
56
61
  size: "sm",
57
- onClick: () => U({
62
+ onClick: () => W({
58
63
  kind: "edit",
59
- entry: p
64
+ entry: m
60
65
  }),
61
66
  children: r("editDetails")
62
67
  })] })
63
68
  }),
64
- /* @__PURE__ */ V("div", {
69
+ /* @__PURE__ */ H("div", {
65
70
  className: "min-h-0 flex-1 overflow-y-auto",
66
- children: /* @__PURE__ */ H("article", {
71
+ children: /* @__PURE__ */ U("article", {
67
72
  className: "mx-auto w-full max-w-3xl px-4 pt-6 pb-20 md:px-8 md:pt-10",
68
73
  onContextMenu: (e) => {
69
- e.target instanceof Element && e.target.closest("textarea, .ProseMirror") || s(e, K(p));
74
+ e.target instanceof Element && e.target.closest("textarea, .ProseMirror") || s(e, q(m));
70
75
  },
71
76
  children: [
72
- p.archivedAt && /* @__PURE__ */ H("div", {
77
+ m.archivedAt && /* @__PURE__ */ U("div", {
73
78
  className: "mb-6 flex items-center gap-3 rounded-xl border border-border bg-muted px-3 py-2 text-sm",
74
- children: [/* @__PURE__ */ V("span", {
79
+ children: [/* @__PURE__ */ H("span", {
75
80
  className: "min-w-0 flex-1",
76
81
  children: r("archivedNotice")
77
- }), b && /* @__PURE__ */ V(E, {
82
+ }), x && /* @__PURE__ */ H(D, {
78
83
  type: "button",
79
84
  size: "sm",
80
- onClick: () => g.restore.mutate(p.id),
85
+ onClick: () => g.restore.mutate(m.id),
81
86
  children: r("restore")
82
87
  })]
83
88
  }),
84
- /* @__PURE__ */ V(q, {
89
+ /* @__PURE__ */ H(J, {
85
90
  workspace: e,
86
- entry: p
91
+ entry: m
87
92
  }),
88
- /* @__PURE__ */ V("h1", {
93
+ /* @__PURE__ */ H("h1", {
89
94
  className: "sr-only",
90
- children: p.name
95
+ children: m.name
91
96
  }),
92
- /* @__PURE__ */ V(A, {
93
- value: p.name,
97
+ /* @__PURE__ */ H(j, {
98
+ value: m.name,
94
99
  onCommit: (e) => $({ name: e }),
95
- readOnly: !w,
100
+ readOnly: !T,
96
101
  "aria-label": r("name"),
97
102
  maxLength: 100,
98
- className: ie ? "mt-2 text-muted-foreground line-through" : "mt-2"
103
+ className: ae ? "mt-2 text-muted-foreground line-through" : "mt-2"
99
104
  }),
100
- p.aliases.length > 0 && /* @__PURE__ */ V("p", {
105
+ m.aliases.length > 0 && /* @__PURE__ */ H("p", {
101
106
  className: "mt-1 text-sm text-muted-foreground",
102
- children: r("alsoCalled", { names: p.aliases.join(", ") })
107
+ children: r("alsoCalled", { names: m.aliases.join(", ") })
103
108
  }),
104
- /* @__PURE__ */ V(A, {
105
- value: p.definition,
109
+ /* @__PURE__ */ H(j, {
110
+ value: m.definition,
106
111
  onCommit: (e) => $({ definition: e }),
107
- readOnly: !w,
112
+ readOnly: !T,
108
113
  "aria-label": r("definition"),
109
114
  placeholder: r("definitionPlaceholder"),
110
115
  maxLength: 1e3,
111
116
  size: "lg",
112
117
  className: "mt-3 text-base leading-relaxed font-normal tracking-normal text-muted-foreground"
113
118
  }),
114
- (p.supersededBy || Q.length > 0) && /* @__PURE__ */ H("div", {
119
+ (m.supersededBy || Q.length > 0) && /* @__PURE__ */ U("div", {
115
120
  className: "mt-3 space-y-1 text-sm",
116
- children: [p.supersededBy && /* @__PURE__ */ V(S, {
121
+ children: [m.supersededBy && /* @__PURE__ */ H(C, {
117
122
  to: "/$workspace/knowledge/$term",
118
123
  params: {
119
124
  workspace: e,
120
- term: v(h.find((e) => e.id === p.supersededBy) ?? { id: p.supersededBy })
125
+ term: b(h.find((e) => e.id === m.supersededBy) ?? { id: m.supersededBy })
121
126
  },
122
127
  className: "block text-primary hover:underline",
123
- children: r("supersededBy", { name: p.supersededByName ?? "" })
124
- }), Q.map((t) => /* @__PURE__ */ V(S, {
128
+ children: r("supersededBy", { name: m.supersededByName ?? "" })
129
+ }), Q.map((t) => /* @__PURE__ */ H(C, {
125
130
  to: "/$workspace/knowledge/$term",
126
131
  params: {
127
132
  workspace: e,
128
- term: v(t)
133
+ term: b(t)
129
134
  },
130
135
  className: "block text-muted-foreground hover:text-foreground",
131
136
  children: r("replaces", { name: t.name })
132
137
  }, t.id))]
133
138
  }),
134
- /* @__PURE__ */ H("section", {
139
+ /* @__PURE__ */ U("section", {
135
140
  "aria-label": r("page"),
136
141
  className: "mt-8 border-t border-border pt-6",
137
142
  children: [
138
- w || p.body ? /* @__PURE__ */ V(ee, {
139
- value: p.body ?? "",
140
- editable: w,
143
+ T || m.body ? /* @__PURE__ */ H(d, {
144
+ value: m.body ?? "",
145
+ editable: T,
141
146
  placeholder: r("pagePlaceholder"),
142
147
  label: r("page"),
143
- onBlur: (e) => e !== (p.body ?? "") && $({ body: e }),
148
+ onBlur: (e) => e !== (m.body ?? "") && $({ body: e }),
144
149
  onFiles: (e, t) => Z.upload(X.current, e, t),
145
150
  onEditor: (e) => {
146
151
  X.current = e;
147
152
  },
148
153
  className: "min-h-32 [&>:first-child]:mt-0"
149
- }) : /* @__PURE__ */ V("p", {
154
+ }) : /* @__PURE__ */ H("p", {
150
155
  className: "text-sm text-muted-foreground",
151
156
  children: r("noPage")
152
157
  }),
153
- w && /* @__PURE__ */ H("div", {
158
+ T && /* @__PURE__ */ U("div", {
154
159
  className: "mt-3 flex items-center gap-2",
155
160
  children: [
156
- /* @__PURE__ */ V(c, { onFiles: (e) => Z.upload(X.current, e) }),
157
- /* @__PURE__ */ V("span", {
161
+ /* @__PURE__ */ H(c, { onFiles: (e) => Z.upload(X.current, e) }),
162
+ /* @__PURE__ */ H("span", {
158
163
  className: "text-xs text-muted-foreground",
159
164
  children: r("attachHint")
160
165
  }),
161
- /* @__PURE__ */ V("span", {
166
+ /* @__PURE__ */ H("span", {
162
167
  className: "ml-auto",
163
- children: /* @__PURE__ */ V(l, {
168
+ children: /* @__PURE__ */ H(l, {
164
169
  pending: Z.pending,
165
170
  error: Z.error
166
171
  })
167
172
  })
168
173
  ]
169
174
  }),
170
- g.update.isError && /* @__PURE__ */ V(D, {
175
+ g.update.isError && /* @__PURE__ */ H(O, {
171
176
  className: "mt-2",
172
- children: d(g.update.error)
177
+ children: p(g.update.error)
173
178
  })
174
179
  ]
175
180
  }),
176
- /* @__PURE__ */ V(N, {
177
- fallback: /* @__PURE__ */ V(O, { fill: "section" }),
178
- children: /* @__PURE__ */ V(J, {
181
+ /* @__PURE__ */ H(P, {
182
+ fallback: /* @__PURE__ */ H(k, { fill: "section" }),
183
+ children: /* @__PURE__ */ H(Y, {
179
184
  workspace: e,
180
- entryId: p.id
185
+ entryId: m.id
181
186
  })
182
187
  }),
183
- /* @__PURE__ */ V(N, {
184
- fallback: /* @__PURE__ */ V(O, { fill: "section" }),
185
- children: /* @__PURE__ */ V(Y, {
188
+ /* @__PURE__ */ H(P, {
189
+ fallback: /* @__PURE__ */ H(k, { fill: "section" }),
190
+ children: /* @__PURE__ */ H(ie, {
186
191
  workspace: e,
187
- entryId: p.id
192
+ entryId: m.id
188
193
  })
189
194
  })
190
195
  ]
191
196
  })
192
197
  }),
193
- k && /* @__PURE__ */ V(N, { children: /* @__PURE__ */ V(_, {
198
+ A && /* @__PURE__ */ H(P, { children: /* @__PURE__ */ H(_, {
194
199
  workspace: e,
195
- mode: k,
196
- onClose: () => j(null),
200
+ mode: A,
201
+ onClose: () => M(null),
197
202
  onSaved: (t) => o({
198
203
  to: "/$workspace/knowledge/$term",
199
204
  params: {
200
205
  workspace: e,
201
- term: v(t)
206
+ term: b(t)
202
207
  },
203
- replace: t.id === p.id
208
+ replace: t.id === m.id
204
209
  })
205
210
  }) })
206
211
  ]
207
212
  });
208
213
  }
209
- function q({ workspace: t, entry: n }) {
210
- let r = z("knowledge"), { actorName: i } = b(t), a = w(), { data: o = [] } = U(e(t)), s = o.find((e) => e.id === n.areaId), c = n.source.doc, l = [
214
+ function J({ workspace: t, entry: n }) {
215
+ let r = B("knowledge"), { actorName: i } = x(t), a = T(), { data: o = [] } = W(e(t)), s = o.find((e) => e.id === n.areaId), c = n.source.doc, l = [
211
216
  ...n.kind === "term" ? [] : [r(`kind.${n.kind}`)],
212
217
  ...s ? [s.title] : [],
213
218
  r("writtenBy", { name: i(n.creator) }),
214
- /* @__PURE__ */ V(j, {
219
+ /* @__PURE__ */ H(M, {
215
220
  content: a.full(n.updatedAt),
216
- children: /* @__PURE__ */ V("time", {
221
+ children: /* @__PURE__ */ H("time", {
217
222
  dateTime: n.updatedAt,
218
223
  children: r("updated", { when: a.relative(n.updatedAt) })
219
224
  })
220
225
  }, "updated")
221
226
  ];
222
- return /* @__PURE__ */ H("div", {
227
+ return /* @__PURE__ */ U("div", {
223
228
  className: "space-y-1 text-xs text-muted-foreground",
224
- children: [/* @__PURE__ */ V("p", {
229
+ children: [/* @__PURE__ */ H("p", {
225
230
  className: "flex flex-wrap items-center gap-x-1.5 gap-y-1",
226
- children: l.map((e, t) => /* @__PURE__ */ H("span", {
231
+ children: l.map((e, t) => /* @__PURE__ */ U("span", {
227
232
  className: "inline-flex items-center gap-1.5",
228
- children: [t > 0 && /* @__PURE__ */ V("span", {
233
+ children: [t > 0 && /* @__PURE__ */ H("span", {
229
234
  "aria-hidden": "true",
230
235
  children: "·"
231
236
  }), e]
232
237
  }, t))
233
- }), (c || n.source.identifier) && /* @__PURE__ */ H("p", {
238
+ }), (c || n.source.identifier) && /* @__PURE__ */ U("p", {
234
239
  className: "flex flex-wrap items-center gap-x-3 gap-y-1",
235
240
  children: [
236
- c && /* @__PURE__ */ H(S, {
241
+ c && /* @__PURE__ */ U(C, {
237
242
  to: "/$workspace/docs/$doc",
238
243
  params: {
239
244
  workspace: t,
@@ -241,16 +246,16 @@ function q({ workspace: t, entry: n }) {
241
246
  },
242
247
  ...n.source.section && { hash: g(n.source.section) },
243
248
  className: "inline-flex items-center gap-1 hover:text-foreground",
244
- children: [/* @__PURE__ */ V(d, { className: "size-3" }), n.source.section ? r("sourceSection", {
249
+ children: [/* @__PURE__ */ H(p, { className: "size-3" }), n.source.section ? r("sourceSection", {
245
250
  doc: c.title,
246
251
  section: n.source.section
247
252
  }) : c.title]
248
253
  }),
249
- n.source.missing && /* @__PURE__ */ V("span", {
254
+ n.source.missing && /* @__PURE__ */ H("span", {
250
255
  className: "text-warning",
251
256
  children: r("sourceMissing", { section: n.source.section ?? "" })
252
257
  }),
253
- n.source.identifier && /* @__PURE__ */ H(S, {
258
+ n.source.identifier && /* @__PURE__ */ U(C, {
254
259
  to: "/$workspace/issues/$identifier",
255
260
  params: {
256
261
  workspace: t,
@@ -267,25 +272,25 @@ function q({ workspace: t, entry: n }) {
267
272
  })]
268
273
  });
269
274
  }
270
- function J({ workspace: e, entryId: t }) {
271
- let n = z("knowledge"), { data: i } = U(r(e, t));
275
+ function Y({ workspace: e, entryId: t }) {
276
+ let n = B("knowledge"), { data: i } = W(r(e, t));
272
277
  if (!i) return null;
273
278
  let a = i.issues.length + i.docs.length, o = "flex min-h-10 items-center gap-2.5 px-3 py-2 text-sm hover:bg-muted focus-visible:outline-offset-[-2px]";
274
- return /* @__PURE__ */ H("section", {
279
+ return /* @__PURE__ */ U("section", {
275
280
  "aria-label": n("mentionedIn"),
276
281
  className: "mt-12",
277
- children: [/* @__PURE__ */ H("h2", {
282
+ children: [/* @__PURE__ */ U("h2", {
278
283
  className: "mb-3 flex items-baseline gap-2 text-base font-semibold",
279
- children: [n("mentionedIn"), a > 0 && /* @__PURE__ */ V("span", {
284
+ children: [n("mentionedIn"), a > 0 && /* @__PURE__ */ H("span", {
280
285
  className: "text-xs font-normal text-muted-foreground tabular-nums",
281
286
  children: a
282
287
  })]
283
- }), a === 0 ? /* @__PURE__ */ V("p", {
288
+ }), a === 0 ? /* @__PURE__ */ H("p", {
284
289
  className: "text-sm text-muted-foreground",
285
290
  children: n("mentionedNone")
286
- }) : /* @__PURE__ */ H("ul", {
291
+ }) : /* @__PURE__ */ U("ul", {
287
292
  className: "divide-y divide-border overflow-hidden rounded-xl border border-border bg-card",
288
- children: [i.issues.map((t) => /* @__PURE__ */ V("li", { children: /* @__PURE__ */ H(S, {
293
+ children: [i.issues.map((t) => /* @__PURE__ */ H("li", { children: /* @__PURE__ */ U(C, {
289
294
  to: "/$workspace/issues/$identifier",
290
295
  params: {
291
296
  workspace: e,
@@ -293,20 +298,20 @@ function J({ workspace: e, entryId: t }) {
293
298
  },
294
299
  className: o,
295
300
  children: [
296
- /* @__PURE__ */ V(p, {
301
+ /* @__PURE__ */ H(m, {
297
302
  category: t.statusCategory,
298
303
  className: "size-3.5 shrink-0"
299
304
  }),
300
- /* @__PURE__ */ V("span", {
305
+ /* @__PURE__ */ H("span", {
301
306
  className: "min-w-24 shrink-0 text-xs whitespace-nowrap text-muted-foreground tabular-nums",
302
307
  children: t.identifier
303
308
  }),
304
- /* @__PURE__ */ V("span", {
309
+ /* @__PURE__ */ H("span", {
305
310
  className: "min-w-0 truncate",
306
311
  children: t.title
307
312
  })
308
313
  ]
309
- }) }, t.identifier)), i.docs.map((t) => /* @__PURE__ */ V("li", { children: /* @__PURE__ */ H(S, {
314
+ }) }, t.identifier)), i.docs.map((t) => /* @__PURE__ */ H("li", { children: /* @__PURE__ */ U(C, {
310
315
  to: "/$workspace/docs/$doc",
311
316
  params: {
312
317
  workspace: e,
@@ -314,12 +319,12 @@ function J({ workspace: e, entryId: t }) {
314
319
  },
315
320
  className: o,
316
321
  children: [
317
- /* @__PURE__ */ V(d, { className: "size-3.5 shrink-0 text-muted-foreground" }),
318
- /* @__PURE__ */ V("span", {
322
+ /* @__PURE__ */ H(p, { className: "size-3.5 shrink-0 text-muted-foreground" }),
323
+ /* @__PURE__ */ H("span", {
319
324
  className: "w-16 shrink-0 text-xs text-muted-foreground",
320
325
  children: n("doc")
321
326
  }),
322
- /* @__PURE__ */ V("span", {
327
+ /* @__PURE__ */ H("span", {
323
328
  className: "min-w-0 truncate",
324
329
  children: t.title
325
330
  })
@@ -328,15 +333,15 @@ function J({ workspace: e, entryId: t }) {
328
333
  })]
329
334
  });
330
335
  }
331
- function Y({ workspace: e, entryId: t }) {
332
- let r = z("knowledge.history"), { data: i = [] } = U(n(e, t)), { actorName: c } = b(e);
333
- return i.length === 0 ? null : /* @__PURE__ */ V(k, {
336
+ function ie({ workspace: e, entryId: t }) {
337
+ let r = B("knowledge.history"), { data: i = [] } = W(n(e, t)), { actorName: c } = x(e);
338
+ return i.length === 0 ? null : /* @__PURE__ */ H(A, {
334
339
  title: r("title"),
335
340
  variant: "bare",
336
341
  defaultOpen: !1,
337
342
  headingLevel: 2,
338
343
  className: "mt-10",
339
- children: /* @__PURE__ */ V(a, { children: i.map((t) => /* @__PURE__ */ V(o, {
344
+ children: /* @__PURE__ */ H(a, { children: i.map((t) => /* @__PURE__ */ H(o, {
340
345
  workspace: e,
341
346
  icon: s(t.type, t.data),
342
347
  actor: t.actor,
@@ -348,7 +353,7 @@ function Y({ workspace: e, entryId: t }) {
348
353
  function X(e, t, n) {
349
354
  let r = t.data ?? {}, i = {
350
355
  name: n,
351
- actor: (e) => /* @__PURE__ */ V("span", {
356
+ actor: (e) => /* @__PURE__ */ H("span", {
352
357
  className: "font-medium text-foreground",
353
358
  children: e
354
359
  })
@@ -367,4 +372,4 @@ function X(e, t, n) {
367
372
  });
368
373
  }
369
374
  }
370
- export { K as component };
375
+ export { q as component };