@parallelworks/tandem-web 0.173.0 → 0.174.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.
@@ -276,6 +276,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
276
276
  label: e.name,
277
277
  icon: /* @__PURE__ */ d(ke, {
278
278
  category: e.category,
279
+ review: e.review,
279
280
  step: e.step
280
281
  })
281
282
  })),
@@ -287,6 +288,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
287
288
  className: $,
288
289
  children: [X && /* @__PURE__ */ d(ke, {
289
290
  category: X.category,
291
+ review: X.review,
290
292
  step: X.step
291
293
  }), X?.name ?? j("status")]
292
294
  })
@@ -24,6 +24,7 @@ function h({ workspace: e, identifier: n }) {
24
24
  children: [
25
25
  /* @__PURE__ */ f(i, {
26
26
  category: e.status.category,
27
+ review: e.status.review,
27
28
  step: e.status.step
28
29
  }),
29
30
  /* @__PURE__ */ f("span", {
@@ -93,6 +93,7 @@ function C({ workspace: C, teamKey: w, isAdmin: T }) {
93
93
  children: [
94
94
  /* @__PURE__ */ g(a, {
95
95
  category: e.category,
96
+ review: e.review,
96
97
  step: e.step
97
98
  }),
98
99
  M === e.id ? /* @__PURE__ */ _("form", {
@@ -2,28 +2,29 @@ import { attachmentIdOf as e, attachmentPrefix as t, attachmentSizes as n, attac
2
2
  import { docLooks as l } from "../lib/docLooks.js";
3
3
  import { githubLinkPage as u } from "../lib/githubLink.js";
4
4
  import { glossary as d, mentions as f } from "../lib/glossary.js";
5
- import { issueKeyOfHref as p, issueKeyPattern as ee, issueRefs as m } from "../lib/issueRefs.js";
6
- import { linkedIssues as h } from "../lib/linkedIssues.js";
7
- import { mentionable as g, mentionsIn as _ } from "../lib/mentions.js";
8
- import { teamNames as v } from "../lib/teamNames.js";
5
+ import { issueKeyOfHref as p, issueKeyPattern as m, issueRefs as h } from "../lib/issueRefs.js";
6
+ import { linkedIssues as g } from "../lib/linkedIssues.js";
7
+ import { mentionable as _, mentionsIn as ee } from "../lib/mentions.js";
8
+ import { statusGroup as v } from "../lib/statusGroup.js";
9
+ import { teamNames as y } from "../lib/teamNames.js";
9
10
  import { docIcons as te } from "./DocIcon.js";
10
11
  import { iconImageURL as ne } from "./EntityIcon.js";
11
- import { createElement as y } from "react";
12
+ import { createElement as re } from "react";
12
13
  import { Extension as b } from "@tiptap/react";
13
- import { Plugin as x, PluginKey as S, TextSelection as re } from "@tiptap/pm/state";
14
+ import { Plugin as x, PluginKey as S, TextSelection as ie } from "@tiptap/pm/state";
14
15
  import { Decoration as C, DecorationSet as w } from "@tiptap/pm/view";
15
- import T from "@tiptap/extension-image";
16
- import { createRoot as E } from "react-dom/client";
16
+ import ae from "@tiptap/extension-image";
17
+ import { createRoot as oe } from "react-dom/client";
17
18
  // src/components/editorPlugins.ts
18
- var D = new S("knowledgeTerms"), O = /* @__PURE__ */ new Set([
19
+ var T = new S("knowledgeTerms"), E = /* @__PURE__ */ new Set([
19
20
  "ArrowLeft",
20
21
  "ArrowRight",
21
22
  "ArrowUp",
22
23
  "ArrowDown",
23
24
  "Home",
24
25
  "End"
25
- ]), k = "tandem:term-caret";
26
- function A(e, t) {
26
+ ]), D = "tandem:term-caret";
27
+ function O(e, t) {
27
28
  e.descendants((e, n) => {
28
29
  if (!e.isTextblock) return !0;
29
30
  if (e.type.spec.code) return !1;
@@ -36,11 +37,11 @@ function A(e, t) {
36
37
  }), t(r, n + 1), !1;
37
38
  });
38
39
  }
39
- function j(e, t) {
40
+ function k(e, t) {
40
41
  let n = d.forms();
41
42
  if (n.length === 0) return w.empty;
42
43
  let r = [];
43
- return A(e, (e, i) => {
44
+ return O(e, (e, i) => {
44
45
  for (let a of f(e, n)) r.push(C.inline(i + a.from, i + a.to, {
45
46
  class: "kb-term",
46
47
  "data-term": a.id,
@@ -51,16 +52,16 @@ function j(e, t) {
51
52
  }));
52
53
  }), w.create(e, r);
53
54
  }
54
- function ie(e) {
55
+ function A(e) {
55
56
  let t = /* @__PURE__ */ new Set();
56
57
  return e.descendants((e) => {
57
58
  for (let n of e.marks) n.type.name === "link" && t.add(String(n.attrs.href ?? ""));
58
59
  return !0;
59
60
  }), t;
60
61
  }
61
- function ae(e, t, n) {
62
+ function j(e, t, n) {
62
63
  let r = [], i = /* @__PURE__ */ new Set();
63
- return A(e, (e, a) => {
64
+ return O(e, (e, a) => {
64
65
  for (let o of f(e, t)) i.has(o.id) || (i.add(o.id), n(o.id) || r.push({
65
66
  from: a + o.from,
66
67
  to: a + o.to,
@@ -69,39 +70,39 @@ function ae(e, t, n) {
69
70
  }));
70
71
  }), r;
71
72
  }
72
- var oe = b.create({
73
+ var M = b.create({
73
74
  name: "knowledgeTerms",
74
75
  addProseMirrorPlugins() {
75
76
  let e = this.editor, t = "";
76
77
  return [new x({
77
- key: D,
78
+ key: T,
78
79
  state: {
79
- init: (t, n) => j(n.doc, !e.isEditable),
80
- apply: (t, n) => t.docChanged || t.getMeta(D) ? j(t.doc, !e.isEditable) : n.map(t.mapping, t.doc)
80
+ init: (t, n) => k(n.doc, !e.isEditable),
81
+ apply: (t, n) => t.docChanged || t.getMeta(T) ? k(t.doc, !e.isEditable) : n.map(t.mapping, t.doc)
81
82
  },
82
83
  props: {
83
- decorations: (e) => D.getState(e),
84
+ decorations: (e) => T.getState(e),
84
85
  handleKeyDown: (e, n) => (t = n.key, !1)
85
86
  },
86
87
  view: (e) => ({
87
88
  update: (e, n) => {
88
89
  let { selection: r } = e.state;
89
- if (!O.has(t) || !r.empty || n.selection.eq(r)) return;
90
+ if (!E.has(t) || !r.empty || n.selection.eq(r)) return;
90
91
  t = "";
91
92
  let i = e.domAtPos(r.from);
92
- (i.node.nodeType === 1 ? i.node : i.node.parentElement)?.closest(".kb-term")?.dispatchEvent(new CustomEvent(k, { bubbles: !0 }));
93
+ (i.node.nodeType === 1 ? i.node : i.node.parentElement)?.closest(".kb-term")?.dispatchEvent(new CustomEvent(D, { bubbles: !0 }));
93
94
  },
94
95
  destroy: d.subscribe(() => {
95
- e.isDestroyed || e.dispatch(e.state.tr.setMeta(D, !0));
96
+ e.isDestroyed || e.dispatch(e.state.tr.setMeta(T, !0));
96
97
  })
97
98
  })
98
99
  })];
99
100
  }
100
101
  });
101
- function se(e) {
102
+ function N(e) {
102
103
  return e.docLinks;
103
104
  }
104
- var ce = b.create({
105
+ var se = b.create({
105
106
  name: "docLinks",
106
107
  addStorage: () => ({ handlers: /* @__PURE__ */ new Set() }),
107
108
  addProseMirrorPlugins() {
@@ -111,7 +112,7 @@ var ce = b.create({
111
112
  return !1;
112
113
  } } })];
113
114
  }
114
- }), M = "tandem:open-image", le = T.extend({
115
+ }), P = "tandem:open-image", ce = ae.extend({
115
116
  parseHTML() {
116
117
  return [{
117
118
  tag: "img[src]",
@@ -141,7 +142,7 @@ var ce = b.create({
141
142
  if (n.src = o(t), n.className = "attachment-image", n.loading = "lazy", e.attrs.alt && (n.alt = String(e.attrs.alt)), e.attrs.title && (n.title = String(e.attrs.title)), !a(t)) return { dom: n };
142
143
  let r = document.createElement("span");
143
144
  return r.append(n), n.addEventListener("error", () => {
144
- n.replaceWith(N(t, (e) => F(e, t, !0)));
145
+ n.replaceWith(F(t, (e) => L(e, t, !0)));
145
146
  }, { once: !0 }), {
146
147
  dom: r,
147
148
  ignoreMutation: () => !0
@@ -149,33 +150,33 @@ var ce = b.create({
149
150
  };
150
151
  }
151
152
  }).configure({ inline: !0 });
152
- function N(e, t) {
153
+ function F(e, t) {
153
154
  let n = document.createElement("video");
154
155
  return n.className = "github-recording", n.src = o(e), n.controls = !0, n.preload = "metadata", n.contentEditable = "false", n.addEventListener("error", function r() {
155
156
  n.src !== e && a(e) ? n.src = e : (n.removeEventListener("error", r), t(n));
156
157
  }), n;
157
158
  }
158
- var P = { linkHint: "" };
159
- function F(e, t, n) {
159
+ var I = { linkHint: "" };
160
+ function L(e, t, n) {
160
161
  let r = document.createElement("span");
161
- r.className = "recording-unplayable", r.contentEditable = "false", n && r.append(I(t)), e.replaceWith(r), a(t) && u().then((e) => {
162
- if (!e || !P.linkHint) return;
162
+ r.className = "recording-unplayable", r.contentEditable = "false", n && r.append(R(t)), e.replaceWith(r), a(t) && u().then((e) => {
163
+ if (!e || !I.linkHint) return;
163
164
  let t = document.createElement("a");
164
- t.className = "recording-hint", t.href = e, t.textContent = P.linkHint, r.append(t);
165
+ t.className = "recording-hint", t.href = e, t.textContent = I.linkHint, r.append(t);
165
166
  });
166
167
  }
167
- function I(e) {
168
+ function R(e) {
168
169
  let t = document.createElement("a");
169
170
  return t.href = r(e), t.textContent = e, t.rel = "noopener noreferrer", t.target = "_blank", t;
170
171
  }
171
- var L = new S("attachmentFiles");
172
- function R(e, t) {
172
+ var z = new S("attachmentFiles");
173
+ function B(e, t) {
173
174
  e.descendants((e, n) => {
174
175
  if (e.type.name !== "paragraph") return !0;
175
176
  let r = e.childCount === 1 ? e.firstChild : null, i = r?.marks.find((e) => e.type.name === "link")?.attrs.href;
176
177
  return r?.isText && i && s(i) && r.text?.trim() === i && t.push(C.widget(n + e.nodeSize - 1, () => {
177
178
  let e = document.createElement("span");
178
- return e.className = "recording-box", e.contentEditable = "false", e.append(N(i, (e) => F(e, i, !1))), e;
179
+ return e.className = "recording-box", e.contentEditable = "false", e.append(F(i, (e) => L(e, i, !1))), e;
179
180
  }, {
180
181
  side: 1,
181
182
  key: `recording-${i}`,
@@ -184,9 +185,9 @@ function R(e, t) {
184
185
  })), !1;
185
186
  });
186
187
  }
187
- function z(t) {
188
+ function V(t) {
188
189
  let i = [];
189
- return R(t, i), t.descendants((t, a) => {
190
+ return B(t, i), t.descendants((t, a) => {
190
191
  if (!t.isText) return !0;
191
192
  let o = t.marks.find((e) => e.type.name === "link"), s = e(o?.attrs.href), l = s && n.get(s);
192
193
  l && i.push(C.inline(a, a + t.nodeSize, { "data-size": l }));
@@ -206,19 +207,19 @@ function z(t) {
206
207
  return !1;
207
208
  }), w.create(t, i);
208
209
  }
209
- var B = b.create({
210
+ var H = b.create({
210
211
  name: "attachmentFiles",
211
212
  priority: 1e3,
212
213
  addProseMirrorPlugins() {
213
214
  return [new x({
214
- key: L,
215
+ key: z,
215
216
  state: {
216
- init: (e, t) => z(t.doc),
217
- apply: (e, t) => e.docChanged || e.getMeta(L) ? z(e.doc) : t
217
+ init: (e, t) => V(t.doc),
218
+ apply: (e, t) => e.docChanged || e.getMeta(z) ? V(e.doc) : t
218
219
  },
219
220
  props: {
220
- decorations: (e) => L.getState(e),
221
- handleClickOn: (t, n, r, i, a) => r.type.name !== "image" || !e(r.attrs.src) ? !1 : (a.preventDefault(), t.dom.dispatchEvent(new CustomEvent(M, {
221
+ decorations: (e) => z.getState(e),
222
+ handleClickOn: (t, n, r, i, a) => r.type.name !== "image" || !e(r.attrs.src) ? !1 : (a.preventDefault(), t.dom.dispatchEvent(new CustomEvent(P, {
222
223
  bubbles: !0,
223
224
  detail: {
224
225
  src: r.attrs.src,
@@ -234,19 +235,19 @@ var B = b.create({
234
235
  }
235
236
  },
236
237
  view: (e) => ({ destroy: n.subscribe(() => {
237
- e.isDestroyed || e.dispatch(e.state.tr.setMeta(L, !0));
238
+ e.isDestroyed || e.dispatch(e.state.tr.setMeta(z, !0));
238
239
  }) })
239
240
  })];
240
241
  }
241
- }), V = new S("linkedIssues");
242
- function H(e) {
242
+ }), U = new S("linkedIssues");
243
+ function W(e) {
243
244
  let t = [], n, r = () => {
244
- let e = n && h.get(n.href);
245
+ let e = n && g.get(n.href);
245
246
  if (n && e) {
246
247
  let { identifier: r, title: i, status: a } = e;
247
248
  t.push(C.widget(n.end, () => {
248
249
  let e = document.createElement("button");
249
- return e.type = "button", e.className = "linked-issue", e.dataset.linkedIssue = r, e.dataset.category = a.category, e.contentEditable = "false", e.title = `${r} ${i}`, e.textContent = `${r} · ${a.name}`, e;
250
+ return e.type = "button", e.className = "linked-issue", e.dataset.linkedIssue = r, e.dataset.category = v(a), e.contentEditable = "false", e.title = `${r} ${i}`, e.textContent = `${r} · ${a.name}`, e;
250
251
  }, {
251
252
  side: 1,
252
253
  key: `${r}-${a.id}`
@@ -263,42 +264,42 @@ function H(e) {
263
264
  }), !1;
264
265
  }), r(), w.create(e, t);
265
266
  }
266
- var U = b.create({
267
+ var le = b.create({
267
268
  name: "linkedIssues",
268
269
  addProseMirrorPlugins() {
269
270
  return [new x({
270
- key: V,
271
+ key: U,
271
272
  state: {
272
- init: (e, t) => H(t.doc),
273
- apply: (e, t) => e.docChanged || e.getMeta(V) ? H(e.doc) : t
273
+ init: (e, t) => W(t.doc),
274
+ apply: (e, t) => e.docChanged || e.getMeta(U) ? W(e.doc) : t
274
275
  },
275
276
  props: {
276
- decorations: (e) => V.getState(e),
277
+ decorations: (e) => U.getState(e),
277
278
  handleDOMEvents: { click: (e, t) => {
278
279
  let n = t.target?.closest("[data-linked-issue]");
279
- return n ? (t.preventDefault(), h.open(n.dataset.linkedIssue ?? ""), !0) : !1;
280
+ return n ? (t.preventDefault(), g.open(n.dataset.linkedIssue ?? ""), !0) : !1;
280
281
  } }
281
282
  },
282
- view: (e) => ({ destroy: h.subscribe(() => {
283
- e.isDestroyed || e.dispatch(e.state.tr.setMeta(V, !0));
283
+ view: (e) => ({ destroy: g.subscribe(() => {
284
+ e.isDestroyed || e.dispatch(e.state.tr.setMeta(U, !0));
284
285
  }) })
285
286
  })];
286
287
  }
287
- }), W = new S("issueMentions");
288
+ }), G = new S("issueMentions");
288
289
  function ue(e) {
289
290
  let t = document.createElement("span");
290
291
  return t.className = "issue-mention-status", t.dataset.category = e, t.contentEditable = "false", t;
291
292
  }
292
- function G(e) {
293
- let t = m.workspace();
293
+ function K(e) {
294
+ let t = h.workspace();
294
295
  if (!t) return w.empty;
295
296
  let n = [], r = [], i = (e, t, i, a) => {
296
- let o = m.get(i);
297
+ let o = h.get(i);
297
298
  if (!o) {
298
299
  r.push(i);
299
300
  return;
300
301
  }
301
- let s = o.status.category;
302
+ let s = v(o.status);
302
303
  n.push(C.widget(e, () => ue(s), {
303
304
  side: -1,
304
305
  key: `dot-${i}-${s}`
@@ -314,8 +315,8 @@ function G(e) {
314
315
  key: `title-${i}-${o.title}`
315
316
  }));
316
317
  };
317
- A(e, (e, t) => {
318
- for (let n of e.matchAll(ee)) {
318
+ O(e, (e, t) => {
319
+ for (let n of e.matchAll(m)) {
319
320
  let e = n[1] ?? "";
320
321
  i(t + (n.index ?? 0), t + (n.index ?? 0) + e.length, e, !0);
321
322
  }
@@ -335,29 +336,29 @@ function G(e) {
335
336
  from: t,
336
337
  to: t + e.nodeSize
337
338
  }), !1;
338
- }), o(), r.length > 0 && m.want(r), w.create(e, n);
339
+ }), o(), r.length > 0 && h.want(r), w.create(e, n);
339
340
  }
340
341
  var de = b.create({
341
342
  name: "issueMentions",
342
343
  addProseMirrorPlugins() {
343
344
  return [new x({
344
- key: W,
345
+ key: G,
345
346
  state: {
346
- init: (e, t) => G(t.doc),
347
- apply: (e, t) => e.docChanged || e.getMeta(W) ? G(e.doc) : t.map(e.mapping, e.doc)
347
+ init: (e, t) => K(t.doc),
348
+ apply: (e, t) => e.docChanged || e.getMeta(G) ? K(e.doc) : t.map(e.mapping, e.doc)
348
349
  },
349
- props: { decorations: (e) => W.getState(e) },
350
- view: (e) => ({ destroy: m.subscribe(() => {
351
- e.isDestroyed || e.dispatch(e.state.tr.setMeta(W, !0));
350
+ props: { decorations: (e) => G.getState(e) },
351
+ view: (e) => ({ destroy: h.subscribe(() => {
352
+ e.isDestroyed || e.dispatch(e.state.tr.setMeta(G, !0));
352
353
  }) })
353
354
  })];
354
355
  }
355
- }), K = new S("teamNames");
356
- function q(e) {
357
- let t = v.forms();
356
+ }), q = new S("teamNames");
357
+ function J(e) {
358
+ let t = y.forms();
358
359
  if (t.length === 0) return w.empty;
359
360
  let n = [];
360
- return A(e, (e, r) => {
361
+ return O(e, (e, r) => {
361
362
  for (let i of f(e, t, !0)) n.push(C.inline(r + i.from, r + i.to, {
362
363
  class: "team-mention",
363
364
  "data-team": i.id
@@ -368,44 +369,44 @@ var fe = b.create({
368
369
  name: "teamNames",
369
370
  addProseMirrorPlugins() {
370
371
  return [new x({
371
- key: K,
372
+ key: q,
372
373
  state: {
373
- init: (e, t) => q(t.doc),
374
- apply: (e, t) => e.docChanged || e.getMeta(K) ? q(e.doc) : t.map(e.mapping, e.doc)
374
+ init: (e, t) => J(t.doc),
375
+ apply: (e, t) => e.docChanged || e.getMeta(q) ? J(e.doc) : t.map(e.mapping, e.doc)
375
376
  },
376
- props: { decorations: (e) => K.getState(e) },
377
- view: (e) => ({ destroy: v.subscribe(() => {
378
- e.isDestroyed || e.dispatch(e.state.tr.setMeta(K, !0));
377
+ props: { decorations: (e) => q.getState(e) },
378
+ view: (e) => ({ destroy: y.subscribe(() => {
379
+ e.isDestroyed || e.dispatch(e.state.tr.setMeta(q, !0));
379
380
  }) })
380
381
  })];
381
382
  }
382
- }), J = new S("peopleMentions");
383
- function Y(e) {
383
+ }), Y = new S("peopleMentions");
384
+ function X(e) {
384
385
  let t = [];
385
- return A(e, (e, n) => {
386
- for (let r of _(e)) g.has(r.username) && t.push(C.inline(n + r.from, n + r.to, {
386
+ return O(e, (e, n) => {
387
+ for (let r of ee(e)) _.has(r.username) && t.push(C.inline(n + r.from, n + r.to, {
387
388
  class: "person-mention",
388
389
  "data-username": r.username
389
390
  }));
390
391
  }), w.create(e, t);
391
392
  }
392
- var X = b.create({
393
+ var pe = b.create({
393
394
  name: "peopleMentions",
394
395
  addProseMirrorPlugins() {
395
396
  return [new x({
396
- key: J,
397
+ key: Y,
397
398
  state: {
398
- init: (e, t) => Y(t.doc),
399
- apply: (e, t) => e.docChanged || e.getMeta(J) ? Y(e.doc) : t.map(e.mapping, e.doc)
399
+ init: (e, t) => X(t.doc),
400
+ apply: (e, t) => e.docChanged || e.getMeta(Y) ? X(e.doc) : t.map(e.mapping, e.doc)
400
401
  },
401
- props: { decorations: (e) => J.getState(e) },
402
- view: (e) => ({ destroy: g.subscribe(() => {
403
- e.isDestroyed || e.dispatch(e.state.tr.setMeta(J, !0));
402
+ props: { decorations: (e) => Y.getState(e) },
403
+ view: (e) => ({ destroy: _.subscribe(() => {
404
+ e.isDestroyed || e.dispatch(e.state.tr.setMeta(Y, !0));
404
405
  }) })
405
406
  })];
406
407
  }
407
408
  }), Z = new S("docLinkIcons"), Q = /* @__PURE__ */ new WeakMap();
408
- function pe(e) {
409
+ function me(e) {
409
410
  let t = document.createElement("span");
410
411
  t.className = "doc-link-icon", t.contentEditable = "false";
411
412
  let n = ne(e), r = e.startsWith("icon:") ? te[e.slice(5)] : void 0;
@@ -413,8 +414,8 @@ function pe(e) {
413
414
  let e = document.createElement("img");
414
415
  e.src = n, e.alt = "", t.appendChild(e);
415
416
  } else if (r) {
416
- let e = E(t);
417
- queueMicrotask(() => e.render(y(r, { className: "size-[0.95em]" }))), Q.set(t, e);
417
+ let e = oe(t);
418
+ queueMicrotask(() => e.render(re(r, { className: "size-[0.95em]" }))), Q.set(t, e);
418
419
  } else t.textContent = e;
419
420
  return t;
420
421
  }
@@ -425,7 +426,7 @@ function $(e) {
425
426
  let a = e.marks.find((e) => e.type.name === "link"), o = String(a?.attrs.href ?? ""), s = !!a && o === r && i === n;
426
427
  if (r = a ? o : "", n = i + e.nodeSize, !a || s || !o.includes("/docs/")) return !1;
427
428
  let c = l.iconAt(o);
428
- return c && t.push(C.widget(i, () => pe(c), {
429
+ return c && t.push(C.widget(i, () => me(c), {
429
430
  side: 1,
430
431
  marks: [a],
431
432
  key: `doc-icon:${c}`,
@@ -437,7 +438,7 @@ function $(e) {
437
438
  })), !1;
438
439
  }), w.create(e, t);
439
440
  }
440
- var me = b.create({
441
+ var he = b.create({
441
442
  name: "docLinkIcons",
442
443
  addProseMirrorPlugins() {
443
444
  return [new x({
@@ -452,7 +453,7 @@ var me = b.create({
452
453
  }) })
453
454
  })];
454
455
  }
455
- }), he = b.create({
456
+ }), ge = b.create({
456
457
  name: "moveBlock",
457
458
  addKeyboardShortcuts() {
458
459
  let e = (e) => () => {
@@ -461,7 +462,7 @@ var me = b.create({
461
462
  let i = r.index(0), a = t.doc.child(i), o = i + e;
462
463
  if (o < 0 || o >= t.doc.childCount) return !0;
463
464
  let s = t.doc.child(o), c = r.before(1), l = r.pos - c, u = t.tr.delete(c, c + a.nodeSize), d = e < 0 ? c - s.nodeSize : c + s.nodeSize;
464
- return u.insert(d, a), u.setSelection(re.near(u.doc.resolve(d + l))), n.dispatch(u.scrollIntoView()), !0;
465
+ return u.insert(d, a), u.setSelection(ie.near(u.doc.resolve(d + l))), n.dispatch(u.scrollIntoView()), !0;
465
466
  };
466
467
  return {
467
468
  "Mod-Shift-ArrowUp": e(-1),
@@ -469,4 +470,4 @@ var me = b.create({
469
470
  };
470
471
  }
471
472
  });
472
- export { B as AttachmentFiles, le as AttachmentImage, me as DocLinkIcons, ce as DocLinks, de as IssueMentions, oe as KnowledgeTerms, U as LinkedIssues, he as MoveBlock, X as PeopleMentions, fe as TeamNames, ie as linksIn, M as openImageEvent, se as pickerKeys, I as plainLink, N as recordingPlayer, P as recordingText, k as termCaretEvent, ae as unlinkedMentions, F as unplayable };
473
+ export { H as AttachmentFiles, ce as AttachmentImage, he as DocLinkIcons, se as DocLinks, de as IssueMentions, M as KnowledgeTerms, le as LinkedIssues, ge as MoveBlock, pe as PeopleMentions, fe as TeamNames, A as linksIn, P as openImageEvent, N as pickerKeys, R as plainLink, F as recordingPlayer, I as recordingText, D as termCaretEvent, j as unlinkedMentions, L as unplayable };
@@ -7,25 +7,26 @@ var a = [
7
7
  "M7 3.5 A3.5 3.5 0 0 1 7 10.5 Z",
8
8
  "M7 3.5 A3.5 3.5 0 1 1 3.5 7 L7 7 Z",
9
9
  "M7 3.5 A3.5 3.5 0 1 1 4.53 4.53 L7 7 Z"
10
- ], o = {
10
+ ], ee = {
11
11
  triage: "text-status-triage",
12
12
  backlog: "text-status-backlog",
13
13
  unstarted: "text-status-unstarted",
14
14
  started: "text-status-started",
15
+ review: "text-status-review",
15
16
  completed: "text-status-completed",
16
17
  canceled: "text-status-canceled"
17
- }, s = /* @__PURE__ */ t("circle", {
18
+ }, o = /* @__PURE__ */ t("circle", {
18
19
  cx: "7",
19
20
  cy: "7",
20
21
  r: "1.75",
21
22
  fill: "currentColor"
22
23
  });
23
- function c({ category: e, step: r = 0, className: i = "" }) {
24
- let c = `${o[e]} ${i}`, l = r > 0;
25
- switch (e) {
24
+ function s({ category: e, step: r = 0, review: i = !1, className: s = "" }) {
25
+ let c = e === "review" || e === "started" && (i === !0 || i === "true"), l = e === "review" ? "started" : e, u = `${ee[c ? "review" : l]} ${s}`, d = r > 0;
26
+ switch (l) {
26
27
  case "triage": return /* @__PURE__ */ n("svg", {
27
28
  viewBox: "0 0 14 14",
28
- className: `size-3.5 shrink-0 ${c}`,
29
+ className: `size-3.5 shrink-0 ${u}`,
29
30
  "aria-hidden": "true",
30
31
  children: [/* @__PURE__ */ t("circle", {
31
32
  cx: "7",
@@ -43,7 +44,7 @@ function c({ category: e, step: r = 0, className: i = "" }) {
43
44
  });
44
45
  case "backlog": return /* @__PURE__ */ n("svg", {
45
46
  viewBox: "0 0 14 14",
46
- className: `size-3.5 shrink-0 ${c}`,
47
+ className: `size-3.5 shrink-0 ${u}`,
47
48
  "aria-hidden": "true",
48
49
  children: [/* @__PURE__ */ t("circle", {
49
50
  cx: "7",
@@ -53,11 +54,11 @@ function c({ category: e, step: r = 0, className: i = "" }) {
53
54
  stroke: "currentColor",
54
55
  strokeWidth: "1.5",
55
56
  strokeDasharray: "2 2.3"
56
- }), l && s]
57
+ }), d && o]
57
58
  });
58
59
  case "unstarted": return /* @__PURE__ */ n("svg", {
59
60
  viewBox: "0 0 14 14",
60
- className: `size-3.5 shrink-0 ${c}`,
61
+ className: `size-3.5 shrink-0 ${u}`,
61
62
  "aria-hidden": "true",
62
63
  children: [/* @__PURE__ */ t("circle", {
63
64
  cx: "7",
@@ -66,11 +67,11 @@ function c({ category: e, step: r = 0, className: i = "" }) {
66
67
  fill: "none",
67
68
  stroke: "currentColor",
68
69
  strokeWidth: "1.5"
69
- }), l && s]
70
+ }), d && o]
70
71
  });
71
72
  case "started": return /* @__PURE__ */ n("svg", {
72
73
  viewBox: "0 0 14 14",
73
- className: `size-3.5 shrink-0 ${c}`,
74
+ className: `size-3.5 shrink-0 ${u}`,
74
75
  "aria-hidden": "true",
75
76
  children: [/* @__PURE__ */ t("circle", {
76
77
  cx: "7",
@@ -80,13 +81,13 @@ function c({ category: e, step: r = 0, className: i = "" }) {
80
81
  stroke: "currentColor",
81
82
  strokeWidth: "1.5"
82
83
  }), /* @__PURE__ */ t("path", {
83
- d: a[Math.min(r, a.length - 1)],
84
+ d: c ? a[1] : a[Math.min(r, a.length - 1)],
84
85
  fill: "currentColor"
85
86
  })]
86
87
  });
87
- case "completed": return l ? /* @__PURE__ */ n("svg", {
88
+ case "completed": return d ? /* @__PURE__ */ n("svg", {
88
89
  viewBox: "0 0 14 14",
89
- className: `size-3.5 shrink-0 ${c}`,
90
+ className: `size-3.5 shrink-0 ${u}`,
90
91
  "aria-hidden": "true",
91
92
  children: [/* @__PURE__ */ t("circle", {
92
93
  cx: "7",
@@ -105,7 +106,7 @@ function c({ category: e, step: r = 0, className: i = "" }) {
105
106
  })]
106
107
  }) : /* @__PURE__ */ n("svg", {
107
108
  viewBox: "0 0 14 14",
108
- className: `size-3.5 shrink-0 ${c}`,
109
+ className: `size-3.5 shrink-0 ${u}`,
109
110
  "aria-hidden": "true",
110
111
  children: [/* @__PURE__ */ t("circle", {
111
112
  cx: "7",
@@ -123,7 +124,7 @@ function c({ category: e, step: r = 0, className: i = "" }) {
123
124
  });
124
125
  case "canceled": return /* @__PURE__ */ n("svg", {
125
126
  viewBox: "0 0 14 14",
126
- className: `size-3.5 shrink-0 ${c}`,
127
+ className: `size-3.5 shrink-0 ${u}`,
127
128
  "aria-hidden": "true",
128
129
  children: [/* @__PURE__ */ t("circle", {
129
130
  cx: "7",
@@ -131,7 +132,7 @@ function c({ category: e, step: r = 0, className: i = "" }) {
131
132
  r: "6.25",
132
133
  fill: "currentColor"
133
134
  }), /* @__PURE__ */ t("path", {
134
- d: l ? "M4.6 5.6h4.8M4.6 8.4h4.8" : "M4.9 4.9 9.1 9.1M9.1 4.9 4.9 9.1",
135
+ d: d ? "M4.6 5.6h4.8M4.6 8.4h4.8" : "M4.9 4.9 9.1 9.1M9.1 4.9 4.9 9.1",
135
136
  stroke: "var(--color-card)",
136
137
  strokeWidth: "1.6",
137
138
  strokeLinecap: "round"
@@ -139,18 +140,18 @@ function c({ category: e, step: r = 0, className: i = "" }) {
139
140
  });
140
141
  }
141
142
  }
142
- var l = [
143
+ var c = [
143
144
  "none",
144
145
  "urgent",
145
146
  "high",
146
147
  "medium",
147
148
  "low"
148
149
  ];
149
- function u() {
150
+ function l() {
150
151
  let t = e("priority");
151
- return l.map((e) => t(e));
152
+ return c.map((e) => t(e));
152
153
  }
153
- function ee({ priority: e, className: r = "" }) {
154
+ function u({ priority: e, className: r = "" }) {
154
155
  if (e === 1) return /* @__PURE__ */ n("svg", {
155
156
  viewBox: "0 0 14 14",
156
157
  className: `size-3.5 shrink-0 text-danger ${r}`,
@@ -231,7 +232,7 @@ function f(e) {
231
232
  }
232
233
  var p = f(i.AddIcon), m = f(i.ColumnsIcon), h = f(i.AttachmentIcon), g = f(i.BranchIcon), _ = f(i.CalendarIcon), v = f(i.ClockIcon), y = f(i.CheckIcon), b = f(i.ChevronDownIcon), x = f(i.ChevronRightIcon), S = f(i.CloseIcon), C = f(i.CommentIcon), w = f(i.DownloadIcon), T = f(i.UploadIcon), E = f(i.ExpandIcon), D = f(i.FileTextIcon), O = f(i.FolderIcon), k = f(i.ChartIcon), A = f(i.BucketIcon), j = f(i.CloudIcon), M = f(i.GridIcon), N = f(i.HistoryIcon), P = f(i.InboxIcon), F = f(i.KeyIcon), I = f(i.MinimizeIcon), L = f(i.LibraryIcon), R = f(i.ListViewIcon), z = f(i.MailIcon), B = f(i.MigrationIcon);
233
234
  i.NavigationIcon;
234
- var V = f(i.NotificationIcon), H = f(i.QueueIcon), U = f(i.ProjectIcon), W = f(i.PullRequestIcon), G = f(i.RepositoryIcon), K = f(i.SearchIcon), te = f(i.SettingsIcon), q = f(i.ShieldIcon), J = f(i.WarningIcon), Y = f(i.ShrinkIcon);
235
+ var V = f(i.NotificationIcon), H = f(i.QueueIcon), U = f(i.ProjectIcon), W = f(i.PullRequestIcon), G = f(i.RepositoryIcon), K = f(i.SearchIcon), q = f(i.SettingsIcon), J = f(i.ShieldIcon), te = f(i.WarningIcon), Y = f(i.ShrinkIcon);
235
236
  i.SignOutIcon;
236
237
  var X = f(i.TagIcon), Z = f(i.UserIcon), Q = f(i.UsersIcon), ne = f(i.WebhookIcon), re = f(i.WorkerIcon), ie = d("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"), ae = d("M2.5 3.5h11v9h-11ZM10 3.5v9"), oe = d("M2.5 2.5v11M4.5 4.5h5M6.5 8h7M5.5 11.5h4.5"), se = d("M3 13 13 3M3 9.5 9.5 3M6.5 13 13 6.5"), ce = d("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");
237
238
  function le({ className: e = "size-4", provider: n = "github" }) {
@@ -251,4 +252,4 @@ i.CommitIcon;
251
252
  var _e = f(i.ReleaseIcon), ve = f(i.MegaphoneIcon), ye = f(i.SwapIcon), be = f(i.TrashIcon);
252
253
  i.EyeIcon;
253
254
  var xe = f(i.SuccessIcon), Se = f(i.CancelIcon), Ce = f(i.AgentIcon), we = f(i.ArrowRightIcon);
254
- export { p as AddIcon, ue as AddUserIcon, Ce as AgentIcon, J as AlertIcon, fe as ArchiveIcon, ce as AreaIcon, we as ArrowRightIcon, h as AttachmentIcon, m as BoardIcon, g as BranchIcon, A as BucketIcon, _ as CalendarIcon, Se as CancelIcon, k as ChartIcon, y as CheckIcon, b as ChevronDownIcon, x as ChevronRightIcon, v as ClockIcon, S as CloseIcon, j as CloudIcon, le as CodeHostIcon, C as CommentIcon, ie as CycleIcon, w as DownloadIcon, $ as EditIcon, se as EstimateIcon, E as ExpandIcon, D as FileTextIcon, O as FolderIcon, M as GridIcon, N as HistoryIcon, P as InboxIcon, F as KeyIcon, L as LibraryIcon, he as LinkIcon, R as ListViewIcon, z as MailIcon, ve as MegaphoneIcon, B as MigrationIcon, I as MinimizeIcon, V as NotificationIcon, ee as PriorityIcon, U as ProjectIcon, W as PullRequestIcon, _e as ReleaseIcon, de as RemoveUserIcon, me as RenameIcon, G as RepositoryIcon, pe as RestoreIcon, K as SearchIcon, te as SettingsIcon, q as ShieldIcon, Y as ShrinkIcon, ae as SidePanelIcon, c as StatusIcon, xe as SuccessIcon, ye as SwapIcon, X as TagIcon, oe as TimelineIcon, be as TrashIcon, H as TriageIcon, ge as UnlinkIcon, T as UploadIcon, Z as UserIcon, Q as UsersIcon, ne as WebhookIcon, re as WorkerIcon, u as usePriorityNames };
255
+ export { p as AddIcon, ue as AddUserIcon, Ce as AgentIcon, te as AlertIcon, fe as ArchiveIcon, ce as AreaIcon, we as ArrowRightIcon, h as AttachmentIcon, m as BoardIcon, g as BranchIcon, A as BucketIcon, _ as CalendarIcon, Se as CancelIcon, k as ChartIcon, y as CheckIcon, b as ChevronDownIcon, x as ChevronRightIcon, v as ClockIcon, S as CloseIcon, j as CloudIcon, le as CodeHostIcon, C as CommentIcon, ie as CycleIcon, w as DownloadIcon, $ as EditIcon, se as EstimateIcon, E as ExpandIcon, D as FileTextIcon, O as FolderIcon, M as GridIcon, N as HistoryIcon, P as InboxIcon, F as KeyIcon, L as LibraryIcon, he as LinkIcon, R as ListViewIcon, z as MailIcon, ve as MegaphoneIcon, B as MigrationIcon, I as MinimizeIcon, V as NotificationIcon, u as PriorityIcon, U as ProjectIcon, W as PullRequestIcon, _e as ReleaseIcon, de as RemoveUserIcon, me as RenameIcon, G as RepositoryIcon, pe as RestoreIcon, K as SearchIcon, q as SettingsIcon, J as ShieldIcon, Y as ShrinkIcon, ae as SidePanelIcon, s as StatusIcon, xe as SuccessIcon, ye as SwapIcon, X as TagIcon, oe as TimelineIcon, be as TrashIcon, H as TriageIcon, ge as UnlinkIcon, T as UploadIcon, Z as UserIcon, Q as UsersIcon, ne as WebhookIcon, re as WorkerIcon, l as usePriorityNames };