@parallelworks/tandem-web 0.150.2 → 0.151.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.
- package/_virtual/_virtual_i18n/en/common.js +32 -3
- package/_virtual/_virtual_i18n/es/common.js +32 -3
- package/_virtual/_virtual_i18n/ja/common.js +32 -3
- package/_virtual/_virtual_i18n/ko/common.js +32 -3
- package/_virtual/_virtual_i18n/zh/common.js +32 -3
- package/api/queries.js +88 -77
- package/components/AccessGrants.js +6 -6
- package/components/ActivityTimeline.js +4 -4
- package/components/AgentWork.js +111 -111
- package/components/AreaLink.js +32 -0
- package/components/AreaTiles.js +10 -13
- package/components/AreaWork.js +25 -1
- package/components/BugRotation.js +3 -3
- package/components/CodeHostSettings.js +30 -30
- package/components/CommandPalette.js +53 -53
- package/components/CustomFields.js +116 -116
- package/components/DateChip.js +11 -11
- package/components/DocButton.js +6 -6
- package/components/DocHistory.js +4 -4
- package/components/DocLinkPicker.js +8 -8
- package/components/DocProperties.js +15 -15
- package/components/DocTable.js +15 -15
- package/components/DocsTree.js +80 -80
- package/components/Editor.js +35 -35
- package/components/FavoritesNav.js +53 -53
- package/components/GitHub.js +18 -18
- package/components/Graph.js +15 -15
- package/components/HostActions.js +21 -21
- package/components/HostPanel.js +6 -6
- package/components/HoverCards.js +38 -38
- package/components/IssueBoard.js +4 -4
- package/components/IssueCode.js +14 -14
- package/components/IssueEvent.js +3 -3
- package/components/IssueFilters.js +71 -71
- package/components/IssueListBlock.js +32 -32
- package/components/IssueRow.js +21 -21
- package/components/IssueTemplates.js +118 -118
- package/components/IssueTypes.js +40 -40
- package/components/NewIssueDialog.js +76 -76
- package/components/NewProjectDialog.js +145 -145
- package/components/PersonActivity.js +4 -4
- package/components/SharedViewer.js +5 -5
- package/components/SlashMenu.js +29 -29
- package/components/TeamRepositories.js +51 -51
- package/components/TeamWorkflow.js +6 -6
- package/components/UnlinkedMentions.js +20 -20
- package/components/Updates.js +3 -3
- package/components/Widgets.js +20 -20
- package/components/columns.js +17 -17
- package/components/editorPlugins.js +80 -80
- package/components/mathDiagrams.js +17 -17
- package/lib/boardMove.js +5 -5
- package/lib/issueList.js +58 -58
- package/lib/issueMenu.js +27 -27
- package/lib/knowledge.js +106 -106
- package/lib/views.js +9 -9
- package/package.json +2 -2
- package/pages/area.js +291 -0
- package/pages/areas.js +258 -287
- package/pages/decisions.js +21 -21
- package/pages/issues.js +52 -52
- package/pages/projects.js +125 -125
- package/pages/triage.js +12 -12
- package/routeTree.gen.js +186 -180
- package/routes/_workspace/agents/_slug2.js +11 -11
- package/routes/_workspace/agents/index2.js +10 -10
- package/routes/_workspace/areas/_area.js +7 -8
- package/routes/_workspace/areas/_area2.js +3 -290
- package/routes/_workspace/areas/_area3.js +7 -8
- package/routes/_workspace/docs/_doc2.js +230 -230
- package/routes/_workspace/docs/space2._space.js +27 -27
- package/routes/_workspace/issues/_identifier2.js +222 -224
- package/routes/_workspace/knowledge/_term2.js +43 -43
- package/routes/_workspace/knowledge/index.js +6 -6
- package/routes/_workspace/knowledge/index2.js +15 -15
- package/routes/_workspace/measures3.js +70 -72
- package/routes/_workspace/notifications2.js +150 -150
- package/routes/_workspace/people/_username2.js +10 -10
- package/routes/_workspace/projects/_projectId3.js +276 -276
- package/routes/_workspace/settings/audit-log3.js +136 -138
- package/routes/_workspace/settings/fields2.js +11 -11
- package/routes/_workspace/settings/github2.js +6 -6
- package/routes/_workspace/settings/groups2.js +26 -26
- package/routes/_workspace/settings/import2.js +398 -147
- package/routes/_workspace/settings/import3.js +7 -3
- package/routes/_workspace/settings/index2.js +6 -6
- package/routes/_workspace/settings/labels2.js +21 -21
- package/routes/_workspace/settings/members2.js +27 -27
- package/routes/_workspace/settings/notifications2.js +8 -8
- package/routes/_workspace/settings/parallelworks2.js +32 -32
- package/routes/_workspace/settings/roles2.js +24 -24
- package/routes/_workspace/settings/runners2.js +15 -15
- package/routes/_workspace/settings/sessions2.js +17 -17
- package/routes/_workspace/settings/slack2.js +7 -7
- package/routes/_workspace/settings/sso2.js +31 -31
- package/routes/_workspace/settings/teams2.js +25 -25
- package/routes/_workspace/settings/tokens2.js +12 -12
- package/routes/_workspace/settings/webhooks2.js +13 -13
- package/routes/_workspace/teams/_key/areas/_area.js +8 -0
- package/routes/_workspace/teams/_key/areas/_area2.js +4 -0
- package/routes/_workspace/teams/_key/areas/_area3.js +9 -0
- package/routes/_workspace/teams/_key/areas/index.js +6 -0
- package/routes/_workspace/teams/_key/areas/index2.js +4 -0
- package/routes/_workspace/teams/_key/{areas3.js → areas/index3.js} +2 -2
- package/routes/_workspace/teams/_key/cycles/_number2.js +27 -27
- package/routes/_workspace/teams/_key/cycles/index2.js +24 -24
- package/routes/_workspace/teams/_key/settings2.js +29 -29
- package/routes/_workspace2.js +368 -368
- package/routes/_workspace/teams/_key/areas.js +0 -6
- package/routes/_workspace/teams/_key/areas2.js +0 -4
|
@@ -1,101 +1,101 @@
|
|
|
1
1
|
import { usePageTitle as e } from "../../../lib/pageTitle.js";
|
|
2
2
|
import { Link as t, useNavigate as n } from "../../../lib/router.js";
|
|
3
3
|
import { docBacklinksQuery as r, docDecisionsQuery as i, docIssuesQuery as a, docQuery as o, lostSectionsQuery as s, meQuery as c, teamsQuery as l, workspaceQuery as u } from "../../../api/queries.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { useTime as se } from "../../../lib/time.js";
|
|
4
|
+
import { copyItem as d } from "../../../lib/menus.js";
|
|
5
|
+
import { docKey as ee, docPath as te, docRef as f, docURL as ne, useDocActions as re, useDocMenu as ie } from "../../../lib/docs.js";
|
|
6
|
+
import { CommentIcon as p, StatusIcon as m } from "../../../components/icons.js";
|
|
7
|
+
import { headingAnchor as ae } from "../../../lib/glossary.js";
|
|
8
|
+
import { termRef as oe } from "../../../lib/knowledgeKinds.js";
|
|
9
|
+
import { useNewIssue as se } from "../../../lib/newIssue.js";
|
|
11
10
|
import { usePeople as ce } from "../../../lib/people.js";
|
|
11
|
+
import { useTime as h } from "../../../lib/time.js";
|
|
12
12
|
import { issueURL as le, useIssueMenu as g } from "../../../lib/issueMenu.js";
|
|
13
|
-
import { useNewIssue as ue } from "../../../lib/newIssue.js";
|
|
14
|
-
import { rememberPage as de } from "../../../lib/recent.js";
|
|
15
13
|
import { DocIcon as _ } from "../../../components/DocIcon.js";
|
|
14
|
+
import { DocProperties as ue } from "../../../components/DocProperties.js";
|
|
16
15
|
import { PersonHoverCard as v } from "../../../components/PersonHoverCard.js";
|
|
17
|
-
import {
|
|
18
|
-
import { Editor as pe } from "../../../components/Editor.js";
|
|
19
|
-
import { useOthersOn as me, useReportLocation as he } from "../../../lib/live.js";
|
|
16
|
+
import { Editor as de } from "../../../components/Editor.js";
|
|
20
17
|
import { AnsweredDecision as y, DecisionCard as b } from "../../../components/AgentWork.js";
|
|
21
|
-
import { DocCover as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
18
|
+
import { DocCover as fe, DocLookControls as pe } from "../../../components/DocLook.js";
|
|
19
|
+
import { Route as x } from "./_doc.js";
|
|
20
|
+
import { rememberPage as me } from "../../../lib/recent.js";
|
|
21
|
+
import { useOthersOn as he, useReportLocation as ge } from "../../../lib/live.js";
|
|
22
|
+
import { FavoriteStar as _e } from "../../../components/FavoriteStar.js";
|
|
23
|
+
import { AreaSelect as ve } from "../../../components/AreaSelect.js";
|
|
24
|
+
import { caretColor as S, useCollabSession as C } from "../../../lib/collab.js";
|
|
25
|
+
import { CollabEditor as w } from "../../../components/CollabEditor.js";
|
|
26
|
+
import { DocComments as ye, useOpenThreads as be } from "../../../components/DocComments.js";
|
|
27
|
+
import { DocHistory as xe, DocVersion as Se } from "../../../components/DocHistory.js";
|
|
28
|
+
import { DocOutline as Ce } from "../../../components/DocOutline.js";
|
|
29
|
+
import { Connections as we } from "../../../components/Graph.js";
|
|
30
|
+
import { FieldNote as Te, Viewers as Ee } from "../../../components/Presence.js";
|
|
31
|
+
import { UnlinkedMentions as De, useUnlinkedMentions as Oe } from "../../../components/UnlinkedMentions.js";
|
|
32
|
+
import { Avatar as T, Breadcrumbs as E, Button as D, ErrorText as O, TitleInput as k, Tooltip as A, useOpenMenu as j } from "@parallelworks/ui";
|
|
33
|
+
import { useCallback as ke, useEffect as M, useMemo as Ae, useRef as N, useState as P } from "react";
|
|
34
|
+
import { useErrorMessage as je } from "@parallelworks/problem/react";
|
|
35
|
+
import { useTranslations as F } from "use-intl";
|
|
36
|
+
import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
37
|
+
import { useQuery as z, useSuspenseQuery as B } from "@tanstack/react-query";
|
|
38
|
+
import { MoreButton as Me } from "@parallelworks/ui/list";
|
|
39
39
|
// src/routes/$workspace/docs/$doc.tsx?tsr-split=component
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
let t =
|
|
43
|
-
|
|
44
|
-
doc:
|
|
40
|
+
var Ne = 120;
|
|
41
|
+
function V() {
|
|
42
|
+
let t = F("docs"), r = F("common"), i = je(), { workspace: a, doc: s } = x.useParams(), { rename: p } = x.useSearch(), { data: m } = B(o(a, ee(s))), oe = m.key, { data: ce } = B(l(a)), { data: h } = B(c), g = ce.find((e) => e.id === m.teamId), { data: _ } = B(u(a)), [v, y] = P();
|
|
43
|
+
ge({
|
|
44
|
+
doc: m.key,
|
|
45
45
|
...v && { field: v }
|
|
46
|
-
}), e(
|
|
47
|
-
let b =
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
}), e(m.title || t("untitled"), g?.name);
|
|
47
|
+
let b = he({ doc: m.key }, h?.user.username);
|
|
48
|
+
M(() => {
|
|
49
|
+
me(a, {
|
|
50
50
|
kind: "doc",
|
|
51
|
-
href:
|
|
52
|
-
label:
|
|
51
|
+
href: te(a, m),
|
|
52
|
+
label: m.title
|
|
53
53
|
});
|
|
54
|
-
}, [a,
|
|
55
|
-
let
|
|
56
|
-
|
|
57
|
-
(s !==
|
|
54
|
+
}, [a, m]);
|
|
55
|
+
let S = n(), C = j(), w = ie(a), T = re(a), E = se(), k = N(null), [A, Ae] = P(null), I = N(null), z = Oe(a, m, A), [V, Ue] = P(""), H = N(null), [U, W] = P(!1), [We, G] = P(), K = be(a, oe), [Ge, q] = P(!1), [Ke, J] = P(!1), [qe, Y] = P(!1), [X, Z] = P();
|
|
56
|
+
M(() => {
|
|
57
|
+
(s !== f(m) || p) && S({
|
|
58
58
|
to: "/$workspace/docs/$doc",
|
|
59
59
|
params: {
|
|
60
60
|
workspace: a,
|
|
61
|
-
doc:
|
|
61
|
+
doc: f(m)
|
|
62
62
|
},
|
|
63
63
|
search: {},
|
|
64
64
|
replace: !0
|
|
65
65
|
});
|
|
66
66
|
}, [
|
|
67
67
|
s,
|
|
68
|
-
|
|
68
|
+
m,
|
|
69
69
|
a,
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
p,
|
|
71
|
+
S
|
|
72
72
|
]);
|
|
73
|
-
let Je =
|
|
74
|
-
if (
|
|
73
|
+
let Je = ke((e) => {
|
|
74
|
+
if (k.current = e, Ae(e), !e) return;
|
|
75
75
|
let t = decodeURIComponent(location.hash.slice(1));
|
|
76
76
|
if (t) {
|
|
77
|
-
for (let n of e.view.dom.querySelectorAll("h1, h2, h3, h4, h5, h6")) if (
|
|
77
|
+
for (let n of e.view.dom.querySelectorAll("h1, h2, h3, h4, h5, h6")) if (ae(n.textContent ?? "") === t) {
|
|
78
78
|
n.scrollIntoView({ block: "start" });
|
|
79
79
|
break;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
e.on("selectionUpdate", () => {
|
|
83
83
|
let { from: t, to: n } = e.state.selection;
|
|
84
|
-
|
|
84
|
+
Ue(t === n ? "" : e.state.doc.textBetween(t, n, "\n\n").trim());
|
|
85
85
|
});
|
|
86
86
|
}, []);
|
|
87
|
-
|
|
88
|
-
let e =
|
|
89
|
-
if (!
|
|
87
|
+
M(() => {
|
|
88
|
+
let e = k.current;
|
|
89
|
+
if (!U || !V || !e) return;
|
|
90
90
|
let { from: t, to: n } = e.state.selection, r = e.state.doc;
|
|
91
|
-
|
|
91
|
+
G({
|
|
92
92
|
quote: r.textBetween(t, n, "\n").trim(),
|
|
93
93
|
quotePrefix: r.textBetween(Math.max(0, t - 64), t, "\n"),
|
|
94
94
|
quoteSuffix: r.textBetween(n, Math.min(r.content.size, n + 64), "\n")
|
|
95
95
|
});
|
|
96
|
-
}, [
|
|
96
|
+
}, [U, V]);
|
|
97
97
|
let Ye = (e) => {
|
|
98
|
-
let t =
|
|
98
|
+
let t = k.current;
|
|
99
99
|
if (!t || !e.quote) return;
|
|
100
100
|
let n = t.state.doc, r = n.textBetween(0, n.content.size, "\n"), i = -1, a = -1;
|
|
101
101
|
for (let t = r.indexOf(e.quote); t >= 0; t = r.indexOf(e.quote, t + 1)) {
|
|
@@ -124,20 +124,20 @@ function B() {
|
|
|
124
124
|
to: d
|
|
125
125
|
}).scrollIntoView().run();
|
|
126
126
|
}, Q = () => {
|
|
127
|
-
let e =
|
|
127
|
+
let e = V;
|
|
128
128
|
if (!e || !g) return;
|
|
129
129
|
let n = e.split("\n").map((e) => e ? `> ${e}` : ">").join("\n");
|
|
130
|
-
|
|
130
|
+
E({
|
|
131
131
|
team: g.key,
|
|
132
|
-
title: (e.split("\n")[0] ?? "").slice(0,
|
|
132
|
+
title: (e.split("\n")[0] ?? "").slice(0, Ne),
|
|
133
133
|
body: t("fromDoc", {
|
|
134
134
|
quote: n,
|
|
135
|
-
title:
|
|
136
|
-
url:
|
|
135
|
+
title: m.title,
|
|
136
|
+
url: ne(a, m)
|
|
137
137
|
}),
|
|
138
|
-
origin: { doc:
|
|
138
|
+
origin: { doc: m.key },
|
|
139
139
|
onCreated: (e) => {
|
|
140
|
-
let t =
|
|
140
|
+
let t = k.current;
|
|
141
141
|
t && t.chain().insertContentAt(t.state.selection.to, [{
|
|
142
142
|
type: "text",
|
|
143
143
|
text: " "
|
|
@@ -151,240 +151,240 @@ function B() {
|
|
|
151
151
|
}]).run();
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
|
-
}, Xe =
|
|
155
|
-
return /* @__PURE__ */
|
|
154
|
+
}, Xe = m.ancestors ?? [], $ = !!m.archivedAt;
|
|
155
|
+
return /* @__PURE__ */ R("div", {
|
|
156
156
|
className: "flex h-full flex-col",
|
|
157
|
-
children: [/* @__PURE__ */
|
|
157
|
+
children: [/* @__PURE__ */ R("header", {
|
|
158
158
|
className: "flex h-12 shrink-0 items-center gap-2 border-b border-border px-4 text-sm md:px-5",
|
|
159
|
-
onContextMenu: (e) =>
|
|
159
|
+
onContextMenu: (e) => C(e, w(m, { onRename: () => H.current?.focus() })),
|
|
160
160
|
children: [
|
|
161
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ L(Ve, {
|
|
162
162
|
workspace: a,
|
|
163
|
-
doc:
|
|
163
|
+
doc: m,
|
|
164
164
|
path: Xe,
|
|
165
165
|
space: g?.name ?? _.name
|
|
166
166
|
}),
|
|
167
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ L(_e, {
|
|
168
168
|
workspace: a,
|
|
169
169
|
kind: "doc",
|
|
170
|
-
target:
|
|
170
|
+
target: m.id
|
|
171
171
|
}),
|
|
172
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ R("span", {
|
|
173
173
|
className: "ml-auto flex shrink-0 items-center gap-3",
|
|
174
174
|
children: [
|
|
175
|
-
|
|
175
|
+
V && !$ && /* @__PURE__ */ L(D, {
|
|
176
176
|
type: "button",
|
|
177
177
|
size: "sm",
|
|
178
178
|
onMouseDown: (e) => e.preventDefault(),
|
|
179
179
|
onClick: Q,
|
|
180
180
|
children: t("createIssue")
|
|
181
181
|
}),
|
|
182
|
-
|
|
182
|
+
T.rename.isPending && /* @__PURE__ */ L("span", {
|
|
183
183
|
className: "text-xs text-muted-foreground",
|
|
184
184
|
children: r("saving")
|
|
185
185
|
}),
|
|
186
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ L(Ee, {
|
|
187
187
|
workspace: a,
|
|
188
188
|
others: b
|
|
189
189
|
}),
|
|
190
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ R(D, {
|
|
191
191
|
type: "button",
|
|
192
192
|
size: "sm",
|
|
193
|
-
"aria-pressed":
|
|
193
|
+
"aria-pressed": U,
|
|
194
194
|
onClick: () => {
|
|
195
|
-
|
|
195
|
+
W((e) => !e), G(void 0), q(!1), J(!1), Y(!1);
|
|
196
196
|
},
|
|
197
|
-
...
|
|
197
|
+
...K > 0 && { "aria-label": t("commentsCount", { count: K }) },
|
|
198
198
|
className: "relative aria-pressed:bg-muted max-md:hidden",
|
|
199
|
-
children: [t("comments"), /* @__PURE__ */
|
|
199
|
+
children: [t("comments"), /* @__PURE__ */ L(He, { count: K })]
|
|
200
200
|
}),
|
|
201
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ L(D, {
|
|
202
202
|
type: "button",
|
|
203
203
|
size: "sm",
|
|
204
|
-
"aria-pressed":
|
|
204
|
+
"aria-pressed": Ge,
|
|
205
205
|
onClick: () => {
|
|
206
|
-
q((e) => !e), Z(void 0),
|
|
206
|
+
q((e) => !e), Z(void 0), W(!1), J(!1), Y(!1);
|
|
207
207
|
},
|
|
208
208
|
className: "aria-pressed:bg-muted max-md:hidden",
|
|
209
209
|
children: t("history")
|
|
210
210
|
}),
|
|
211
|
-
!$ && /* @__PURE__ */
|
|
211
|
+
!$ && /* @__PURE__ */ R(D, {
|
|
212
212
|
type: "button",
|
|
213
213
|
size: "sm",
|
|
214
214
|
"aria-pressed": Ke,
|
|
215
215
|
onClick: () => {
|
|
216
|
-
J((e) => !e),
|
|
216
|
+
J((e) => !e), W(!1), q(!1), Z(void 0), Y(!1);
|
|
217
217
|
},
|
|
218
|
-
...
|
|
218
|
+
...z.length > 0 && { "aria-label": t("unlinkedCount", { count: z.length }) },
|
|
219
219
|
className: "relative aria-pressed:bg-muted max-md:hidden",
|
|
220
|
-
children: [t("links"), /* @__PURE__ */
|
|
220
|
+
children: [t("links"), /* @__PURE__ */ L(He, { count: z.length })]
|
|
221
221
|
}),
|
|
222
|
-
!$ && /* @__PURE__ */
|
|
222
|
+
!$ && /* @__PURE__ */ L(D, {
|
|
223
223
|
type: "button",
|
|
224
224
|
size: "sm",
|
|
225
225
|
"aria-pressed": qe,
|
|
226
226
|
onClick: () => {
|
|
227
|
-
Y((e) => !e),
|
|
227
|
+
Y((e) => !e), W(!1), q(!1), Z(void 0), J(!1);
|
|
228
228
|
},
|
|
229
229
|
className: "aria-pressed:bg-muted max-md:hidden",
|
|
230
230
|
children: t("graph")
|
|
231
231
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
items: () =>
|
|
234
|
-
label: r("moreActionsFor", { name:
|
|
232
|
+
/* @__PURE__ */ L(Me, {
|
|
233
|
+
items: () => w(m, { onRename: () => H.current?.focus() }),
|
|
234
|
+
label: r("moreActionsFor", { name: m.title }),
|
|
235
235
|
visible: !0
|
|
236
236
|
})
|
|
237
237
|
]
|
|
238
238
|
})
|
|
239
239
|
]
|
|
240
|
-
}), /* @__PURE__ */
|
|
240
|
+
}), /* @__PURE__ */ R("div", {
|
|
241
241
|
className: "flex min-h-0 flex-1",
|
|
242
242
|
children: [
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
ref:
|
|
243
|
+
/* @__PURE__ */ R("div", {
|
|
244
|
+
ref: I,
|
|
245
245
|
className: "min-h-0 flex-1 overflow-y-auto",
|
|
246
|
-
children: [!X && /* @__PURE__ */
|
|
246
|
+
children: [!X && /* @__PURE__ */ L(fe, {
|
|
247
247
|
workspace: a,
|
|
248
|
-
doc:
|
|
248
|
+
doc: m,
|
|
249
249
|
editable: !$
|
|
250
|
-
}), /* @__PURE__ */
|
|
250
|
+
}), /* @__PURE__ */ R("div", {
|
|
251
251
|
className: "flex w-full gap-10 px-4 pt-6 md:px-8 md:pt-8",
|
|
252
|
-
children: [/* @__PURE__ */
|
|
253
|
-
className: `group/doc min-w-0 flex-1 pb-24 ${
|
|
252
|
+
children: [/* @__PURE__ */ R("article", {
|
|
253
|
+
className: `group/doc min-w-0 flex-1 pb-24 ${m.fullWidth ? "" : "mx-auto max-w-3xl"}`,
|
|
254
254
|
children: [
|
|
255
|
-
$ && /* @__PURE__ */
|
|
255
|
+
$ && /* @__PURE__ */ R("div", {
|
|
256
256
|
className: "mb-6 flex items-center gap-3 rounded-md border border-border bg-muted px-3 py-2 text-sm",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ L("span", {
|
|
258
258
|
className: "flex-1",
|
|
259
259
|
children: t("archivedNotice")
|
|
260
|
-
}), /* @__PURE__ */
|
|
260
|
+
}), /* @__PURE__ */ L(D, {
|
|
261
261
|
type: "button",
|
|
262
262
|
variant: "primary",
|
|
263
263
|
size: "sm",
|
|
264
|
-
onClick: () =>
|
|
264
|
+
onClick: () => T.restore.mutate(m),
|
|
265
265
|
children: t("restore")
|
|
266
266
|
})]
|
|
267
267
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ L(pe, {
|
|
269
269
|
workspace: a,
|
|
270
|
-
doc:
|
|
270
|
+
doc: m,
|
|
271
271
|
editable: !$ && !X
|
|
272
272
|
}),
|
|
273
|
-
/* @__PURE__ */
|
|
274
|
-
doc:
|
|
275
|
-
input:
|
|
276
|
-
autoFocus: !!
|
|
273
|
+
/* @__PURE__ */ L(Pe, {
|
|
274
|
+
doc: m,
|
|
275
|
+
input: H,
|
|
276
|
+
autoFocus: !!p,
|
|
277
277
|
readOnly: $,
|
|
278
278
|
onFocus: () => y("title"),
|
|
279
279
|
onBlur: () => y(void 0),
|
|
280
|
-
onSave: (e) =>
|
|
281
|
-
doc:
|
|
280
|
+
onSave: (e) => T.rename.mutate({
|
|
281
|
+
doc: m,
|
|
282
282
|
title: e
|
|
283
283
|
})
|
|
284
|
-
},
|
|
285
|
-
/* @__PURE__ */
|
|
284
|
+
}, m.id),
|
|
285
|
+
/* @__PURE__ */ L(Te, {
|
|
286
286
|
workspace: a,
|
|
287
287
|
others: b,
|
|
288
288
|
field: "title"
|
|
289
289
|
}),
|
|
290
|
-
|
|
290
|
+
T.rename.isError && /* @__PURE__ */ L(O, {
|
|
291
291
|
className: "mt-1",
|
|
292
|
-
children: i(
|
|
292
|
+
children: i(T.rename.error)
|
|
293
293
|
}),
|
|
294
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ R("div", {
|
|
295
295
|
className: "mt-2 flex flex-wrap items-center gap-x-3 gap-y-1",
|
|
296
|
-
children: [/* @__PURE__ */
|
|
296
|
+
children: [/* @__PURE__ */ L(Fe, {
|
|
297
297
|
workspace: a,
|
|
298
|
-
doc:
|
|
299
|
-
}), /* @__PURE__ */
|
|
298
|
+
doc: m
|
|
299
|
+
}), /* @__PURE__ */ L(ve, {
|
|
300
300
|
workspace: a,
|
|
301
|
-
teamId:
|
|
302
|
-
value:
|
|
303
|
-
onChange: (e) =>
|
|
304
|
-
doc:
|
|
301
|
+
teamId: m.teamId,
|
|
302
|
+
value: m.areaId,
|
|
303
|
+
onChange: (e) => T.fileUnder.mutate({
|
|
304
|
+
doc: m,
|
|
305
305
|
area: e
|
|
306
306
|
}),
|
|
307
307
|
disabled: $,
|
|
308
308
|
className: "flex h-6 items-center gap-1.5 rounded-md px-1.5 text-xs hover:bg-muted"
|
|
309
309
|
})]
|
|
310
310
|
}),
|
|
311
|
-
!X && /* @__PURE__ */
|
|
311
|
+
!X && /* @__PURE__ */ L(ue, {
|
|
312
312
|
workspace: a,
|
|
313
|
-
doc:
|
|
313
|
+
doc: m,
|
|
314
314
|
space: g?.key ?? "workspace",
|
|
315
315
|
editable: !$
|
|
316
316
|
}),
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
-
onContextMenu: (e) =>
|
|
317
|
+
/* @__PURE__ */ L("div", {
|
|
318
|
+
onContextMenu: (e) => V && !$ && C(e, [{
|
|
319
319
|
label: t("createIssue"),
|
|
320
320
|
onClick: Q
|
|
321
|
-
},
|
|
322
|
-
children: X ? /* @__PURE__ */
|
|
321
|
+
}, d(t("copySelection"), V)]),
|
|
322
|
+
children: X ? /* @__PURE__ */ L(Se, {
|
|
323
323
|
workspace: a,
|
|
324
|
-
doc:
|
|
324
|
+
doc: m,
|
|
325
325
|
versionId: X,
|
|
326
326
|
onDone: () => Z(void 0)
|
|
327
|
-
}) : $ ? /* @__PURE__ */
|
|
327
|
+
}) : $ ? /* @__PURE__ */ L("div", {
|
|
328
328
|
className: "mt-4",
|
|
329
|
-
children: /* @__PURE__ */
|
|
330
|
-
value:
|
|
329
|
+
children: /* @__PURE__ */ L(de, {
|
|
330
|
+
value: m.body ?? "",
|
|
331
331
|
editable: !1,
|
|
332
332
|
className: "min-h-32"
|
|
333
333
|
})
|
|
334
|
-
}) : /* @__PURE__ */
|
|
334
|
+
}) : /* @__PURE__ */ L(Ie, {
|
|
335
335
|
workspace: a,
|
|
336
|
-
doc:
|
|
336
|
+
doc: m,
|
|
337
337
|
onEditor: Je,
|
|
338
338
|
onFocus: () => y("body"),
|
|
339
339
|
onBlur: () => y(void 0)
|
|
340
340
|
})
|
|
341
341
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ L(Re, {
|
|
343
343
|
workspace: a,
|
|
344
|
-
docKey:
|
|
344
|
+
docKey: m.key
|
|
345
345
|
}),
|
|
346
|
-
/* @__PURE__ */
|
|
346
|
+
/* @__PURE__ */ L(ze, {
|
|
347
347
|
workspace: a,
|
|
348
|
-
docKey:
|
|
348
|
+
docKey: m.key
|
|
349
349
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ L(Le, {
|
|
351
351
|
workspace: a,
|
|
352
|
-
docKey:
|
|
352
|
+
docKey: m.key
|
|
353
353
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ L(Be, {
|
|
355
355
|
workspace: a,
|
|
356
|
-
docKey:
|
|
356
|
+
docKey: m.key
|
|
357
357
|
})
|
|
358
358
|
]
|
|
359
|
-
}), !$ && !X && /* @__PURE__ */
|
|
360
|
-
editor:
|
|
361
|
-
scroller:
|
|
359
|
+
}), !$ && !X && /* @__PURE__ */ L(Ce, {
|
|
360
|
+
editor: A,
|
|
361
|
+
scroller: I
|
|
362
362
|
})]
|
|
363
363
|
})]
|
|
364
364
|
}),
|
|
365
|
-
|
|
365
|
+
U && /* @__PURE__ */ L(ye, {
|
|
366
366
|
workspace: a,
|
|
367
|
-
doc:
|
|
368
|
-
draft:
|
|
369
|
-
onDraftDone: () =>
|
|
367
|
+
doc: m,
|
|
368
|
+
draft: We,
|
|
369
|
+
onDraftDone: () => G(void 0),
|
|
370
370
|
onShowQuote: Ye
|
|
371
371
|
}),
|
|
372
|
-
|
|
372
|
+
Ge && /* @__PURE__ */ L(xe, {
|
|
373
373
|
workspace: a,
|
|
374
|
-
doc:
|
|
374
|
+
doc: m,
|
|
375
375
|
selected: X,
|
|
376
376
|
onSelect: Z
|
|
377
377
|
}),
|
|
378
|
-
Ke && !$ && /* @__PURE__ */
|
|
379
|
-
editor:
|
|
380
|
-
suggestions:
|
|
378
|
+
Ke && !$ && /* @__PURE__ */ L(De, {
|
|
379
|
+
editor: A,
|
|
380
|
+
suggestions: z
|
|
381
381
|
}),
|
|
382
|
-
qe && !$ && /* @__PURE__ */
|
|
382
|
+
qe && !$ && /* @__PURE__ */ L("aside", {
|
|
383
383
|
"aria-label": t("graph"),
|
|
384
384
|
className: "w-96 shrink-0 overflow-y-auto border-l border-border px-3 py-4 max-md:hidden",
|
|
385
|
-
children: /* @__PURE__ */
|
|
385
|
+
children: /* @__PURE__ */ L(we, {
|
|
386
386
|
workspace: a,
|
|
387
|
-
of: { doc:
|
|
387
|
+
of: { doc: m.key },
|
|
388
388
|
width: 352
|
|
389
389
|
})
|
|
390
390
|
})
|
|
@@ -392,12 +392,12 @@ function B() {
|
|
|
392
392
|
})]
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
let s =
|
|
397
|
-
return /* @__PURE__ */
|
|
395
|
+
function Pe({ doc: e, input: t, autoFocus: n, readOnly: r, onSave: i, onFocus: a, onBlur: o }) {
|
|
396
|
+
let s = F("docs");
|
|
397
|
+
return /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L("h1", {
|
|
398
398
|
className: "sr-only",
|
|
399
399
|
children: e.title
|
|
400
|
-
}), /* @__PURE__ */
|
|
400
|
+
}), /* @__PURE__ */ L(k, {
|
|
401
401
|
ref: t,
|
|
402
402
|
value: e.title,
|
|
403
403
|
onCommit: i,
|
|
@@ -408,15 +408,15 @@ function Fe({ doc: e, input: t, autoFocus: n, readOnly: r, onSave: i, onFocus: a
|
|
|
408
408
|
"aria-label": s("docTitle")
|
|
409
409
|
})] });
|
|
410
410
|
}
|
|
411
|
-
function
|
|
412
|
-
let n =
|
|
413
|
-
return /* @__PURE__ */
|
|
411
|
+
function Fe({ workspace: e, doc: t }) {
|
|
412
|
+
let n = F("docs"), r = h(), { actorName: i, person: a, avatarOf: o } = ce(e), s = i(t.editor);
|
|
413
|
+
return /* @__PURE__ */ R("p", {
|
|
414
414
|
className: "flex items-center gap-1.5 text-xs text-muted-foreground",
|
|
415
|
-
children: [/* @__PURE__ */
|
|
415
|
+
children: [/* @__PURE__ */ L(v, {
|
|
416
416
|
workspace: e,
|
|
417
417
|
kind: t.editor.kind,
|
|
418
418
|
handle: t.editor.handle,
|
|
419
|
-
children: /* @__PURE__ */
|
|
419
|
+
children: /* @__PURE__ */ L(T, {
|
|
420
420
|
kind: t.editor.kind === "agent" ? "agent" : "person",
|
|
421
421
|
name: s,
|
|
422
422
|
src: o(t.editor.kind, t.editor.handle),
|
|
@@ -426,9 +426,9 @@ function Ie({ workspace: e, doc: t }) {
|
|
|
426
426
|
name: s,
|
|
427
427
|
person: a(t.editor.onBehalfOf ?? "").name,
|
|
428
428
|
time: r.relative(t.updatedAt),
|
|
429
|
-
when: (e) => /* @__PURE__ */
|
|
429
|
+
when: (e) => /* @__PURE__ */ L(A, {
|
|
430
430
|
content: r.full(t.updatedAt),
|
|
431
|
-
children: /* @__PURE__ */
|
|
431
|
+
children: /* @__PURE__ */ L("time", {
|
|
432
432
|
dateTime: t.updatedAt,
|
|
433
433
|
children: e
|
|
434
434
|
})
|
|
@@ -436,23 +436,23 @@ function Ie({ workspace: e, doc: t }) {
|
|
|
436
436
|
})]
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
let a =
|
|
439
|
+
function Ie({ workspace: e, doc: t, onEditor: n, onFocus: r, onBlur: i }) {
|
|
440
|
+
let a = F("docs"), { data: o } = B(c), s = N(null), l = Ae(() => ({
|
|
441
441
|
name: o?.user.name ?? a("someone"),
|
|
442
|
-
color:
|
|
442
|
+
color: S(o?.user.username ?? "")
|
|
443
443
|
}), [
|
|
444
444
|
o?.user.name,
|
|
445
445
|
o?.user.username,
|
|
446
446
|
a
|
|
447
|
-
]), { session: u, error: d } =
|
|
447
|
+
]), { session: u, error: d } = C({
|
|
448
448
|
workspace: e,
|
|
449
449
|
target: { doc: t.key },
|
|
450
450
|
user: l,
|
|
451
451
|
getMarkdown: s
|
|
452
452
|
});
|
|
453
|
-
return /* @__PURE__ */
|
|
453
|
+
return /* @__PURE__ */ R("div", {
|
|
454
454
|
className: "mt-6 min-h-48",
|
|
455
|
-
children: [u ? /* @__PURE__ */
|
|
455
|
+
children: [u ? /* @__PURE__ */ L(w, {
|
|
456
456
|
session: u,
|
|
457
457
|
user: l,
|
|
458
458
|
getMarkdown: s,
|
|
@@ -462,27 +462,27 @@ function Le({ workspace: e, doc: t, onEditor: n, onFocus: r, onBlur: i }) {
|
|
|
462
462
|
placeholder: a("bodyPlaceholder"),
|
|
463
463
|
label: a("body"),
|
|
464
464
|
className: "min-h-48"
|
|
465
|
-
}, `${u.generation}:${u.doc.guid}`) : /* @__PURE__ */
|
|
465
|
+
}, `${u.generation}:${u.doc.guid}`) : /* @__PURE__ */ L(de, {
|
|
466
466
|
value: t.body ?? "",
|
|
467
467
|
editable: !1,
|
|
468
468
|
className: "min-h-48"
|
|
469
|
-
}), /* @__PURE__ */
|
|
469
|
+
}), /* @__PURE__ */ L(O, {
|
|
470
470
|
className: "mt-1",
|
|
471
471
|
children: d
|
|
472
472
|
})]
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
|
-
function
|
|
476
|
-
let r =
|
|
477
|
-
return i.length === 0 ? null : /* @__PURE__ */
|
|
475
|
+
function Le({ workspace: e, docKey: n }) {
|
|
476
|
+
let r = F("docs"), { data: i } = B(a(e, n)), o = j(), s = g(e);
|
|
477
|
+
return i.length === 0 ? null : /* @__PURE__ */ R("section", {
|
|
478
478
|
className: "mt-10",
|
|
479
479
|
"aria-label": r("linkedIssues"),
|
|
480
|
-
children: [/* @__PURE__ */
|
|
480
|
+
children: [/* @__PURE__ */ L("h2", {
|
|
481
481
|
className: "text-base font-semibold",
|
|
482
482
|
children: r("linkedIssues")
|
|
483
|
-
}), /* @__PURE__ */
|
|
483
|
+
}), /* @__PURE__ */ L("ul", {
|
|
484
484
|
className: "mt-2 space-y-0.5",
|
|
485
|
-
children: i.map((n) => /* @__PURE__ */
|
|
485
|
+
children: i.map((n) => /* @__PURE__ */ L("li", { children: /* @__PURE__ */ R(t, {
|
|
486
486
|
to: "/$workspace/issues/$identifier",
|
|
487
487
|
params: {
|
|
488
488
|
workspace: e,
|
|
@@ -491,12 +491,12 @@ function Re({ workspace: e, docKey: n }) {
|
|
|
491
491
|
onContextMenu: (e) => o(e, s([n])),
|
|
492
492
|
className: "flex h-8 items-center gap-2 rounded-md px-2 text-sm hover:bg-muted",
|
|
493
493
|
children: [
|
|
494
|
-
/* @__PURE__ */
|
|
495
|
-
/* @__PURE__ */
|
|
494
|
+
/* @__PURE__ */ L(m, { category: n.status.category }),
|
|
495
|
+
/* @__PURE__ */ L("span", {
|
|
496
496
|
className: "shrink-0 text-muted-foreground",
|
|
497
497
|
children: n.identifier
|
|
498
498
|
}),
|
|
499
|
-
/* @__PURE__ */
|
|
499
|
+
/* @__PURE__ */ L("span", {
|
|
500
500
|
className: "truncate",
|
|
501
501
|
children: n.title
|
|
502
502
|
})
|
|
@@ -505,27 +505,27 @@ function Re({ workspace: e, docKey: n }) {
|
|
|
505
505
|
})]
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
|
-
function
|
|
509
|
-
let r =
|
|
510
|
-
return i.length === 0 ? null : /* @__PURE__ */
|
|
508
|
+
function Re({ workspace: e, docKey: n }) {
|
|
509
|
+
let r = F("docs"), { data: i = [] } = z(s(e, n));
|
|
510
|
+
return i.length === 0 ? null : /* @__PURE__ */ R("section", {
|
|
511
511
|
className: "mt-10 rounded-lg border border-warning/60 px-4 py-3",
|
|
512
512
|
"aria-label": r("lostSections"),
|
|
513
513
|
children: [
|
|
514
|
-
/* @__PURE__ */
|
|
514
|
+
/* @__PURE__ */ L("h2", {
|
|
515
515
|
className: "text-sm font-semibold",
|
|
516
516
|
children: r("lostSections")
|
|
517
517
|
}),
|
|
518
|
-
/* @__PURE__ */
|
|
518
|
+
/* @__PURE__ */ L("p", {
|
|
519
519
|
className: "mt-1 text-xs text-muted-foreground",
|
|
520
520
|
children: r("lostSectionsHelp")
|
|
521
521
|
}),
|
|
522
|
-
/* @__PURE__ */
|
|
522
|
+
/* @__PURE__ */ L("ul", {
|
|
523
523
|
className: "mt-2 space-y-1 text-sm",
|
|
524
|
-
children: i.map((n) => /* @__PURE__ */
|
|
524
|
+
children: i.map((n) => /* @__PURE__ */ L("li", { children: /* @__PURE__ */ L(t, {
|
|
525
525
|
to: "/$workspace/knowledge/$term",
|
|
526
526
|
params: {
|
|
527
527
|
workspace: e,
|
|
528
|
-
term:
|
|
528
|
+
term: oe(n)
|
|
529
529
|
},
|
|
530
530
|
className: "hover:underline",
|
|
531
531
|
children: r("lostSection", {
|
|
@@ -537,54 +537,54 @@ function ze({ workspace: e, docKey: n }) {
|
|
|
537
537
|
]
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
function
|
|
541
|
-
let n =
|
|
542
|
-
return a.length === 0 ? null : /* @__PURE__ */
|
|
540
|
+
function ze({ workspace: e, docKey: t }) {
|
|
541
|
+
let n = F("docs"), { data: r } = B(i(e, t)), a = r.filter((e) => !e.canceled);
|
|
542
|
+
return a.length === 0 ? null : /* @__PURE__ */ R("section", {
|
|
543
543
|
className: "mt-10 space-y-3",
|
|
544
544
|
"aria-label": n("questions"),
|
|
545
|
-
children: [/* @__PURE__ */
|
|
545
|
+
children: [/* @__PURE__ */ L("h2", {
|
|
546
546
|
className: "text-sm font-semibold",
|
|
547
547
|
children: n("questions")
|
|
548
|
-
}), a.map((t) => t.answer ? /* @__PURE__ */
|
|
548
|
+
}), a.map((t) => t.answer ? /* @__PURE__ */ L(y, {
|
|
549
549
|
workspace: e,
|
|
550
550
|
decision: t,
|
|
551
551
|
showIssue: !0
|
|
552
|
-
}, t.id) : /* @__PURE__ */
|
|
552
|
+
}, t.id) : /* @__PURE__ */ L(b, {
|
|
553
553
|
workspace: e,
|
|
554
554
|
decision: t,
|
|
555
555
|
showIssue: !0
|
|
556
556
|
}, t.id))]
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
let i =
|
|
561
|
-
return a.docs.length + a.issues.length + a.comments.length === 0 ? null : /* @__PURE__ */
|
|
559
|
+
function Be({ workspace: e, docKey: n }) {
|
|
560
|
+
let i = F("docs"), { data: a } = B(r(e, n)), o = j(), s = ie(e), c = g(e), l = "flex h-8 items-center gap-2 rounded-md px-2 text-sm hover:bg-muted";
|
|
561
|
+
return a.docs.length + a.issues.length + a.comments.length === 0 ? null : /* @__PURE__ */ R("section", {
|
|
562
562
|
className: "mt-10",
|
|
563
563
|
"aria-label": i("linkedFrom"),
|
|
564
|
-
children: [/* @__PURE__ */
|
|
564
|
+
children: [/* @__PURE__ */ L("h2", {
|
|
565
565
|
className: "text-base font-semibold",
|
|
566
566
|
children: i("linkedFrom")
|
|
567
|
-
}), /* @__PURE__ */
|
|
567
|
+
}), /* @__PURE__ */ R("ul", {
|
|
568
568
|
className: "mt-2 space-y-0.5",
|
|
569
569
|
children: [
|
|
570
|
-
a.docs.map((n) => /* @__PURE__ */
|
|
570
|
+
a.docs.map((n) => /* @__PURE__ */ L("li", { children: /* @__PURE__ */ R(t, {
|
|
571
571
|
to: "/$workspace/docs/$doc",
|
|
572
572
|
params: {
|
|
573
573
|
workspace: e,
|
|
574
|
-
doc:
|
|
574
|
+
doc: f(n)
|
|
575
575
|
},
|
|
576
576
|
onContextMenu: (e) => o(e, s(n)),
|
|
577
577
|
className: l,
|
|
578
|
-
children: [/* @__PURE__ */
|
|
578
|
+
children: [/* @__PURE__ */ L(_, {
|
|
579
579
|
icon: n.icon,
|
|
580
580
|
className: "size-3.5",
|
|
581
581
|
emojiClassName: "text-xs"
|
|
582
|
-
}), /* @__PURE__ */
|
|
582
|
+
}), /* @__PURE__ */ L("span", {
|
|
583
583
|
className: "truncate",
|
|
584
584
|
children: n.title
|
|
585
585
|
})]
|
|
586
586
|
}) }, n.id)),
|
|
587
|
-
a.issues.map((n) => /* @__PURE__ */
|
|
587
|
+
a.issues.map((n) => /* @__PURE__ */ L("li", { children: /* @__PURE__ */ R(t, {
|
|
588
588
|
to: "/$workspace/issues/$identifier",
|
|
589
589
|
params: {
|
|
590
590
|
workspace: e,
|
|
@@ -593,18 +593,18 @@ function Ve({ workspace: e, docKey: n }) {
|
|
|
593
593
|
onContextMenu: (e) => o(e, c([n])),
|
|
594
594
|
className: l,
|
|
595
595
|
children: [
|
|
596
|
-
/* @__PURE__ */
|
|
597
|
-
/* @__PURE__ */
|
|
596
|
+
/* @__PURE__ */ L(m, { category: n.status.category }),
|
|
597
|
+
/* @__PURE__ */ L("span", {
|
|
598
598
|
className: "shrink-0 text-muted-foreground",
|
|
599
599
|
children: n.identifier
|
|
600
600
|
}),
|
|
601
|
-
/* @__PURE__ */
|
|
601
|
+
/* @__PURE__ */ L("span", {
|
|
602
602
|
className: "truncate",
|
|
603
603
|
children: n.title
|
|
604
604
|
})
|
|
605
605
|
]
|
|
606
606
|
}) }, n.id)),
|
|
607
|
-
a.comments.map((n) => /* @__PURE__ */
|
|
607
|
+
a.comments.map((n) => /* @__PURE__ */ L("li", { children: /* @__PURE__ */ R(t, {
|
|
608
608
|
to: "/$workspace/issues/$identifier",
|
|
609
609
|
params: {
|
|
610
610
|
workspace: e,
|
|
@@ -613,12 +613,12 @@ function Ve({ workspace: e, docKey: n }) {
|
|
|
613
613
|
hash: `comment-${n.comment.id}`,
|
|
614
614
|
className: l,
|
|
615
615
|
children: [
|
|
616
|
-
/* @__PURE__ */
|
|
617
|
-
/* @__PURE__ */
|
|
616
|
+
/* @__PURE__ */ L(p, { className: "size-3.5 text-muted-foreground" }),
|
|
617
|
+
/* @__PURE__ */ L("span", {
|
|
618
618
|
className: "shrink-0 text-muted-foreground",
|
|
619
619
|
children: i("commentOn", { identifier: n.identifier })
|
|
620
620
|
}),
|
|
621
|
-
/* @__PURE__ */
|
|
621
|
+
/* @__PURE__ */ L("span", {
|
|
622
622
|
className: "truncate",
|
|
623
623
|
children: n.issueTitle
|
|
624
624
|
})
|
|
@@ -628,9 +628,9 @@ function Ve({ workspace: e, docKey: n }) {
|
|
|
628
628
|
})]
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
let i =
|
|
633
|
-
return /* @__PURE__ */
|
|
631
|
+
function Ve({ workspace: e, doc: t, path: n, space: r }) {
|
|
632
|
+
let i = F("docs");
|
|
633
|
+
return /* @__PURE__ */ L(E, {
|
|
634
634
|
label: i("breadcrumbs"),
|
|
635
635
|
className: "min-w-0",
|
|
636
636
|
crumbs: [
|
|
@@ -641,8 +641,8 @@ function He({ workspace: e, doc: t, path: n, space: r }) {
|
|
|
641
641
|
{ label: r },
|
|
642
642
|
...n.map((t) => ({
|
|
643
643
|
label: t.title,
|
|
644
|
-
href: `/${e}/docs/${
|
|
645
|
-
icon: t.icon && /* @__PURE__ */
|
|
644
|
+
href: `/${e}/docs/${f(t)}`,
|
|
645
|
+
icon: t.icon && /* @__PURE__ */ L(_, {
|
|
646
646
|
icon: t.icon,
|
|
647
647
|
className: "size-3.5",
|
|
648
648
|
emojiClassName: "text-xs"
|
|
@@ -650,7 +650,7 @@ function He({ workspace: e, doc: t, path: n, space: r }) {
|
|
|
650
650
|
})),
|
|
651
651
|
{
|
|
652
652
|
label: t.title,
|
|
653
|
-
icon: t.icon && /* @__PURE__ */
|
|
653
|
+
icon: t.icon && /* @__PURE__ */ L(_, {
|
|
654
654
|
icon: t.icon,
|
|
655
655
|
className: "size-3.5",
|
|
656
656
|
emojiClassName: "text-xs"
|
|
@@ -659,11 +659,11 @@ function He({ workspace: e, doc: t, path: n, space: r }) {
|
|
|
659
659
|
]
|
|
660
660
|
});
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
return e <= 0 ? null : /* @__PURE__ */
|
|
662
|
+
function He({ count: e }) {
|
|
663
|
+
return e <= 0 ? null : /* @__PURE__ */ L("span", {
|
|
664
664
|
"aria-hidden": !0,
|
|
665
665
|
className: "pointer-events-none absolute -top-1.5 -right-1.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-semibold text-primary-foreground tabular-nums",
|
|
666
666
|
children: e > 99 ? "99+" : e
|
|
667
667
|
});
|
|
668
668
|
}
|
|
669
|
-
export {
|
|
669
|
+
export { V as component };
|