@crewlethq/ui 0.129.1 → 0.130.1

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/README.md CHANGED
@@ -208,6 +208,12 @@ places:
208
208
  - A surface that pans or zooms dispatches `LAYER_REPOSITION_EVENT` on its host
209
209
  when the content beneath it moves, and every panel anchored inside follows.
210
210
 
211
+ ## Changes in 0.129.2
212
+
213
+ ### The application rail
214
+
215
+ **The rail's field and rows keep their width when its middle scrolls** (`AppShell.Rail`). The middle (the field and the nav) is the rail's scroller and reserved nothing, so when a long group grew it past the window, a scrollbar drawn in the layout took its width out of the content: the field and every row ended 6px earlier, and a field's words were cut beside its shortcut ("Search everythi..."). The full rail's middle now reserves its scrollbar's gutter at every height, and the field's slot and a `SidebarNav` in the middle give that width back from their end inset, so the field and the rows are as wide as before at rest and keep that width while the middle scrolls, beside a scrolling screen or a flush one. The rail measures its middle's own bar (`--crewlet-rail-scrollbar` on the middle, 0 with overlay scrollbars), and the end inset is `--crewlet-rail-body-end`, the nav's gutter less that bar. The compact rail is unchanged. Props are unchanged.
216
+
211
217
  ## Changes in 0.129.0
212
218
 
213
219
  ### A map's trunks, legend and zoom bar say what they draw
@@ -1,4 +1,4 @@
1
- export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-V47JOO72.js';
1
+ export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-M32NBSS7.js';
2
2
  import '../chunk-SNKQNAJI.js';
3
3
  import '../chunk-JLOESTT2.js';
4
4
  import '../chunk-EGHOU7U2.js';
@@ -204,10 +204,31 @@
204
204
  padding-top: var(--size-shell-inset);
205
205
  }
206
206
 
207
+ /*
208
+ * THE MIDDLE IS THE RAIL'S SCROLLER, and it KEEPS ITS WIDTH WHEN IT SCROLLS.
209
+ * It reserved nothing, so when what it holds (a long group of running work)
210
+ * grew past the window, the scrollbar took its width out of the content: the
211
+ * field and every row ended a bar's width earlier, and the field's words were
212
+ * cut beside its shortcut. It reserves the bar's gutter at every height, and
213
+ * what stands in it (the field and the nav) gives exactly that width back from
214
+ * its end inset (`--crewlet-rail-body-end`, the nav's gutter less the bar), so
215
+ * the field and the rows stand where they stood before, scrolling or not.
216
+ *
217
+ * The bar's width is the middle's own (`--crewlet-rail-scrollbar`, measured by
218
+ * `AppShell.Rail`, 0 where scrollbars overlay the content), not the screen's
219
+ * gutter, which is 0 beside a flush screen while the middle still reserves its
220
+ * bar. A bar wider than the gutter gives back what the gutter has.
221
+ */
207
222
  .crewlet-app-shell__rail-body {
223
+ --crewlet-rail-body-end: max(0px, calc(var(--size-nav-gutter) - var(--crewlet-rail-scrollbar, 0px)));
208
224
  flex: 1 1 auto;
209
225
  min-height: 0;
210
226
  overflow-y: auto;
227
+ scrollbar-gutter: stable;
228
+ }
229
+
230
+ .crewlet-app-shell__rail-body .crewlet-sidebar-nav {
231
+ padding-inline-end: var(--crewlet-rail-body-end);
211
232
  }
212
233
 
213
234
  /* The rail's bar, only where `::-webkit-scrollbar` is not read: set where it
@@ -310,6 +331,10 @@
310
331
  .crewlet-app-shell__rail-search {
311
332
  --crewlet-rail-field-pad: calc(var(--size-nav-row-pad) - 1px);
312
333
  padding: 0 calc(var(--size-nav-gutter) + var(--size-nav-row-pad) - var(--crewlet-rail-field-pad) - 1px);
334
+ /* The end gives the middle's scrollbar back, as the nav's does (above). */
335
+ padding-inline-end: calc(
336
+ var(--crewlet-rail-body-end) + var(--size-nav-row-pad) - var(--crewlet-rail-field-pad) - 1px
337
+ );
313
338
  }
314
339
 
315
340
  /* The same gutter the nav takes, so what the foot says lines up with the rows
@@ -1046,8 +1071,12 @@
1046
1071
  margin: 0;
1047
1072
  }
1048
1073
 
1074
+ /* The compact column reserves no gutter, so its tiles stay centred in it, and
1075
+ gives none back. */
1049
1076
  .crewlet-app-shell[data-rail='compact'] .crewlet-app-shell__rail-body {
1077
+ --crewlet-rail-body-end: var(--size-nav-gutter);
1050
1078
  padding: var(--spacing-1) 0;
1079
+ scrollbar-gutter: auto;
1051
1080
  }
1052
1081
 
1053
1082
  /*
@@ -1,4 +1,4 @@
1
- export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-4FKHPUVR.js';
1
+ export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-XZB53C7U.js';
2
2
  import '../chunk-WFAJYBLX.js';
3
3
  import '../chunk-HF5L56YQ.js';
4
4
  import '../chunk-GBKBME7Q.js';
@@ -9,8 +9,8 @@ import '../chunk-475DOAWF.js';
9
9
  import '../chunk-WSIJDWUG.js';
10
10
  import '../chunk-W3A6NBUM.js';
11
11
  import '../chunk-KFTVPWG2.js';
12
- export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
13
12
  import '../chunk-DOY3KC6I.js';
13
+ export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
14
14
  import '../chunk-ARZGEHWE.js';
15
15
  import '../chunk-XZY6S3UC.js';
16
16
  import '../chunk-NN44J7BP.js';
@@ -14,6 +14,17 @@ export interface CommentThreadComment {
14
14
  editedAt?: TimeValue | undefined;
15
15
  /** The id of the remark this one answers. */
16
16
  replyTo?: string | undefined;
17
+ /** The remark's own words as its author wrote them (its markdown), which an edit starts from. */
18
+ source?: string | undefined;
19
+ /** The reader may rewrite this remark, which is theirs. Offered only with `onEdit` and a `source`. */
20
+ editable?: boolean | undefined;
21
+ /** The reader may take this remark down. Offered only with `onRemove`. */
22
+ removable?: boolean | undefined;
23
+ /**
24
+ * Taken down: its words are gone. It keeps its place, author and time, so a
25
+ * reply to it still reads in order, and offers nothing.
26
+ */
27
+ removed?: boolean | undefined;
17
28
  }
18
29
  /**
19
30
  * What a submit answers. `false` keeps the draft and the reply target, for a
@@ -39,6 +50,23 @@ export interface CommentThreadLabels {
39
50
  submitReply: string;
40
51
  /** Why the submit control waits while the field is empty. */
41
52
  emptyDraft: string;
53
+ /** Edit on one of the reader's own remarks, and its accessible name. */
54
+ edit: string;
55
+ editOwn: string;
56
+ /** The field an edit is made in. */
57
+ editField: string;
58
+ save: string;
59
+ cancel: string;
60
+ /** Why Save waits while the edited words are empty: an empty remark is taken down instead. */
61
+ emptyEdit: string;
62
+ /** Delete on a remark, its accessible name, and the question it asks before it acts. */
63
+ remove: string;
64
+ removeOwn: (name: string) => string;
65
+ removeAsk: string;
66
+ removeConfirm: string;
67
+ keep: string;
68
+ /** What a remark that was taken down reads as. */
69
+ removed: string;
42
70
  }
43
71
  export declare const COMMENT_THREAD_LABELS: CommentThreadLabels;
44
72
  export interface CommentThreadProps {
@@ -55,6 +83,18 @@ export interface CommentThreadProps {
55
83
  disabledReason?: string | undefined;
56
84
  /** A post in flight that the host is tracking. The thread also tracks its own. */
57
85
  busy?: boolean | undefined;
86
+ /**
87
+ * Rewrites one of the reader's own remarks (`editable`, with its `source`).
88
+ * Without it no remark offers Edit. Resolve to `false` to keep the editor
89
+ * open with what was typed, such as when the server refused the write.
90
+ */
91
+ onEdit?: ((comment: CommentThreadComment, body: string) => CommentThreadSubmitResult | Promise<CommentThreadSubmitResult>) | undefined;
92
+ /**
93
+ * Takes a remark down (`removable`), once the reader has confirmed it in
94
+ * place. Without it no remark offers Delete. Resolve to `false` to keep the
95
+ * question open, such as when the server refused the write.
96
+ */
97
+ onRemove?: ((comment: CommentThreadComment) => CommentThreadSubmitResult | Promise<CommentThreadSubmitResult>) | undefined;
58
98
  /** A line beside the submit control: who is told, how the remark is shared. */
59
99
  hint?: ReactNode;
60
100
  /** Under the field: the server's refusal of the last post, as the host words it. */
@@ -81,5 +121,12 @@ export interface CommentThreadProps {
81
121
  * A SUBMIT IS ONE AT A TIME. The submit control is disabled while a post is in
82
122
  * flight, so a second press cannot send the same remark twice, and the draft
83
123
  * is cleared only once the host says the post landed.
124
+ *
125
+ * THE READER'S OWN REMARKS ARE EDITED AND TAKEN DOWN IN PLACE. Edit swaps the
126
+ * remark's words for a field holding what was written (`source`), saved or
127
+ * left with Cancel; Delete asks in place before it acts, since the words go
128
+ * for everybody. Which remarks offer either is the host's to say (`editable`,
129
+ * `removable`): who may is the server's rule. A remark taken down keeps its
130
+ * row, so a reply to it still reads in order.
84
131
  */
85
- export declare function CommentThread({ comments, subject, onSubmit, disabledReason, busy, hint, notice, heading, now, labels: overrides, className, }: CommentThreadProps): import("react").JSX.Element;
132
+ export declare function CommentThread({ comments, subject, onSubmit, onEdit, onRemove, disabledReason, busy, hint, notice, heading, now, labels: overrides, className, }: CommentThreadProps): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-BF3PFRBE.js';
1
+ export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-WLCPN22T.js';
2
2
  import '../chunk-HF5L56YQ.js';
3
3
  import '../chunk-GBKBME7Q.js';
4
4
  import '../chunk-WGLOH33S.js';
@@ -73,14 +73,38 @@
73
73
  font-size: var(--font-size-xs);
74
74
  }
75
75
 
76
- /* Reply sits at the row's far end, wherever the head wraps, its padding and
77
- edge pulled out as a card foot's ghost is (StatusCard.css), so the word ends
78
- on the line the hairline under the remark ends on rather than 9px inside. */
79
- .crewlet-comment-thread__reply {
76
+ /* The remark's controls (Edit, Delete, Reply) sit at the row's far end,
77
+ wherever the head wraps, the last one's padding and edge pulled out as a
78
+ card foot's ghost is (StatusCard.css), so the word ends on the line the
79
+ hairline under the remark ends on rather than 9px inside. */
80
+ .crewlet-comment-thread__actions {
81
+ display: inline-flex;
82
+ align-items: center;
83
+ gap: var(--spacing-1);
80
84
  margin-inline-start: auto;
81
85
  margin-inline-end: calc(-1 * (var(--spacing-2) + 1px));
82
86
  }
83
87
 
88
+ .crewlet-comment-thread__removed {
89
+ margin: 0;
90
+ color: var(--color-text-tertiary);
91
+ font-size: var(--font-size-compact);
92
+ font-style: italic;
93
+ }
94
+
95
+ .crewlet-comment-thread__confirm {
96
+ display: flex;
97
+ flex-wrap: wrap;
98
+ align-items: center;
99
+ gap: var(--spacing-2);
100
+ color: var(--color-text-secondary);
101
+ font-size: var(--font-size-compact);
102
+ }
103
+
104
+ .crewlet-comment-thread__confirm > span {
105
+ margin-inline-end: auto;
106
+ }
107
+
84
108
  .crewlet-comment-thread__compose {
85
109
  display: flex;
86
110
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- export { RichEditor, preloadRichEditor } from '../chunk-KQFOPY2P.js';
1
+ export { RichEditor, preloadRichEditor } from '../chunk-Q6QKY7EZ.js';
2
2
  export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
3
3
  import '../chunk-KOJPDCGQ.js';
4
4
  import '../chunk-KBZO4B33.js';
@@ -13,7 +13,7 @@ import { returnFocus } from './chunk-4ITETIGZ.js';
13
13
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
14
14
  import { cx } from './chunk-ODEQTPFM.js';
15
15
  import './HitArea-QUOS6ZDJ.css';
16
- import './AppShell-S5FHXWNS.css';
16
+ import './AppShell-N5IHITJM.css';
17
17
  import './ResizeHandle-W6GA5OO6.css';
18
18
  import { createContext, forwardRef, useContext, useSyncExternalStore, useCallback, useId, useState, useRef, useEffect, useLayoutEffect } from 'react';
19
19
  import { breakpoint } from '@crewlethq/tokens';
@@ -621,6 +621,17 @@ function RailFold({
621
621
  function AppShellRail({ header, search, status, footer, className, children }) {
622
622
  const compact = useRailShape() === "compact";
623
623
  const leaving = useContext(RailLeavingContext) || void 0;
624
+ const [middle, setMiddle] = useState(null);
625
+ const [scrollbar, setScrollbar] = useState(0);
626
+ useLayoutEffect(() => {
627
+ if (!middle) return void 0;
628
+ const measure = () => setScrollbar(Math.max(0, middle.offsetWidth - middle.clientWidth));
629
+ measure();
630
+ if (typeof ResizeObserver === "undefined") return void 0;
631
+ const observer = new ResizeObserver(measure);
632
+ observer.observe(middle);
633
+ return () => observer.disconnect();
634
+ }, [middle]);
624
635
  const statusSlot = status ? /* @__PURE__ */ jsx("div", { className: "crewlet-app-shell__rail-status", inert: leaving, children: status }) : null;
625
636
  return /* @__PURE__ */ jsxs("div", { className: cx("crewlet-app-shell__rail-inner", className), children: [
626
637
  header || status && !compact ? /* @__PURE__ */ jsxs("div", { className: "crewlet-app-shell__rail-head", children: [
@@ -628,10 +639,19 @@ function AppShellRail({ header, search, status, footer, className, children }) {
628
639
  compact ? null : statusSlot
629
640
  ] }) : null,
630
641
  compact ? statusSlot : null,
631
- /* @__PURE__ */ jsxs("div", { className: "crewlet-app-shell__rail-body", inert: leaving, children: [
632
- search && !compact ? /* @__PURE__ */ jsx("div", { className: "crewlet-app-shell__rail-search", children: search }) : null,
633
- children
634
- ] }),
642
+ /* @__PURE__ */ jsxs(
643
+ "div",
644
+ {
645
+ ref: setMiddle,
646
+ className: "crewlet-app-shell__rail-body",
647
+ inert: leaving,
648
+ style: { ["--crewlet-rail-scrollbar"]: `${scrollbar}px` },
649
+ children: [
650
+ search && !compact ? /* @__PURE__ */ jsx("div", { className: "crewlet-app-shell__rail-search", children: search }) : null,
651
+ children
652
+ ]
653
+ }
654
+ ),
635
655
  footer ? /* @__PURE__ */ jsx("div", { className: "crewlet-app-shell__rail-foot", inert: leaving, children: footer }) : null
636
656
  ] });
637
657
  }
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
9
9
  var engine = null;
10
10
  var loading = null;
11
11
  function loadEngine() {
12
- loading ??= import('./Editor-MEPTWBY5.js').then(
12
+ loading ??= import('./Editor-2TWJE7OR.js').then(
13
13
  (module) => {
14
14
  engine = module.Editor;
15
15
  return engine;
@@ -7,10 +7,10 @@ import { IconButton } from './chunk-X5YI6E5X.js';
7
7
  import { Count } from './chunk-Y5CMDLQM.js';
8
8
  import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
9
9
  import { cx } from './chunk-ODEQTPFM.js';
10
- import './CommentThread-FRXTDNV6.css';
11
- import { useState, useRef, useId, useMemo } from 'react';
10
+ import './CommentThread-544KCZT7.css';
11
+ import { useState, useRef, useId, useMemo, useEffect } from 'react';
12
12
  import { MessageSquareGlyph, XGlyph } from '@crewlethq/icons/glyphs';
13
- import { jsxs, jsx } from 'react/jsx-runtime';
13
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
14
14
 
15
15
  var COMMENT_THREAD_LABELS = {
16
16
  heading: "Comments",
@@ -26,12 +26,26 @@ var COMMENT_THREAD_LABELS = {
26
26
  placeholder: "Write a comment",
27
27
  submit: "Comment",
28
28
  submitReply: "Reply",
29
- emptyDraft: "Write the comment first."
29
+ emptyDraft: "Write the comment first.",
30
+ edit: "Edit",
31
+ editOwn: "Edit your comment",
32
+ editField: "Edit your comment",
33
+ save: "Save",
34
+ cancel: "Cancel",
35
+ emptyEdit: "A comment needs words. Delete it instead.",
36
+ remove: "Delete",
37
+ removeOwn: (name) => `Delete the comment by ${name}`,
38
+ removeAsk: "Delete this comment? Its words are gone for everybody; replies to it stay.",
39
+ removeConfirm: "Delete",
40
+ keep: "Keep it",
41
+ removed: "Comment removed."
30
42
  };
31
43
  function CommentThread({
32
44
  comments,
33
45
  subject,
34
46
  onSubmit,
47
+ onEdit,
48
+ onRemove,
35
49
  disabledReason,
36
50
  busy = false,
37
51
  hint,
@@ -72,6 +86,38 @@ function CommentThread({
72
86
  setReplyTo(comment);
73
87
  field.current?.focus();
74
88
  };
89
+ const [editing, setEditing] = useState(null);
90
+ const [editDraft, setEditDraft] = useState("");
91
+ const [confirming, setConfirming] = useState(null);
92
+ const [acting, setActing] = useState(false);
93
+ const editField = useRef(null);
94
+ useEffect(() => {
95
+ if (editing !== null) editField.current?.focus();
96
+ }, [editing]);
97
+ const startEdit = (comment) => {
98
+ setConfirming(null);
99
+ setEditing(comment.id);
100
+ setEditDraft(comment.source ?? "");
101
+ };
102
+ const saveEdit = async (comment) => {
103
+ const words = editDraft.trim();
104
+ if (!onEdit || acting || words === "") return;
105
+ setActing(true);
106
+ try {
107
+ if (await onEdit(comment, words) !== false) setEditing(null);
108
+ } finally {
109
+ setActing(false);
110
+ }
111
+ };
112
+ const confirmRemove = async (comment) => {
113
+ if (!onRemove || acting) return;
114
+ setActing(true);
115
+ try {
116
+ if (await onRemove(comment) !== false) setConfirming(null);
117
+ } finally {
118
+ setActing(false);
119
+ }
120
+ };
75
121
  return /* @__PURE__ */ jsxs(
76
122
  "section",
77
123
  {
@@ -93,6 +139,12 @@ function CommentThread({
93
139
  const created = toInstant(comment.createdAt);
94
140
  const edited = toInstant(comment.editedAt);
95
141
  const name = nameOf(comment);
142
+ const live = !comment.removed;
143
+ const canReply = !!onSubmit && live;
144
+ const canEdit = !!onEdit && live && !!comment.editable && comment.source !== void 0;
145
+ const canRemove = !!onRemove && live && !!comment.removable;
146
+ const isEditing = canEdit && editing === comment.id;
147
+ const isConfirming = canRemove && confirming === comment.id;
96
148
  return /* @__PURE__ */ jsxs("li", { className: "crewlet-comment-thread__comment", children: [
97
149
  /* @__PURE__ */ jsxs("div", { className: "crewlet-comment-thread__head", children: [
98
150
  comment.author ? /* @__PURE__ */ jsxs("span", { className: "crewlet-comment-thread__author", children: [
@@ -100,7 +152,7 @@ function CommentThread({
100
152
  /* @__PURE__ */ jsx("span", { className: "crewlet-comment-thread__name", children: comment.author.name })
101
153
  ] }) : /* @__PURE__ */ jsx("span", { className: "crewlet-comment-thread__name", children: labels.system }),
102
154
  /* @__PURE__ */ jsx(RelativeTime, { value: comment.createdAt, now, className: "crewlet-comment-thread__meta" }),
103
- edited !== null && edited !== created && /* @__PURE__ */ jsx(
155
+ live && edited !== null && edited !== created && /* @__PURE__ */ jsx(
104
156
  "time",
105
157
  {
106
158
  className: "crewlet-comment-thread__meta",
@@ -110,19 +162,83 @@ function CommentThread({
110
162
  }
111
163
  ),
112
164
  parent && /* @__PURE__ */ jsx("span", { className: "crewlet-comment-thread__meta", children: labels.inReplyTo(nameOf(parent)) }),
113
- onSubmit && /* @__PURE__ */ jsx(
165
+ (canReply || canEdit || canRemove) && /* @__PURE__ */ jsxs("span", { className: "crewlet-comment-thread__actions", children: [
166
+ canEdit && /* @__PURE__ */ jsx(
167
+ Button,
168
+ {
169
+ size: "small",
170
+ variant: "ghost",
171
+ "aria-label": labels.editOwn,
172
+ disabled: acting,
173
+ onClick: () => startEdit(comment),
174
+ children: labels.edit
175
+ }
176
+ ),
177
+ canRemove && /* @__PURE__ */ jsx(
178
+ Button,
179
+ {
180
+ size: "small",
181
+ variant: "ghost",
182
+ "aria-label": labels.removeOwn(name),
183
+ disabled: acting,
184
+ onClick: () => {
185
+ setEditing(null);
186
+ setConfirming(comment.id);
187
+ },
188
+ children: labels.remove
189
+ }
190
+ ),
191
+ canReply && /* @__PURE__ */ jsx(
192
+ Button,
193
+ {
194
+ size: "small",
195
+ variant: "ghost",
196
+ className: "crewlet-comment-thread__reply",
197
+ "aria-label": labels.replyTo(name),
198
+ onClick: () => startReply(comment),
199
+ children: labels.reply
200
+ }
201
+ )
202
+ ] })
203
+ ] }),
204
+ comment.removed ? /* @__PURE__ */ jsx("p", { className: "crewlet-comment-thread__removed", children: labels.removed }) : isEditing ? /* @__PURE__ */ jsx(
205
+ Composer,
206
+ {
207
+ ref: editField,
208
+ value: editDraft,
209
+ onChange: setEditDraft,
210
+ onSubmit: () => void saveEdit(comment),
211
+ label: labels.editField,
212
+ actions: /* @__PURE__ */ jsxs(Fragment, { children: [
213
+ /* @__PURE__ */ jsx(Button, { size: "small", variant: "ghost", disabled: acting, onClick: () => setEditing(null), children: labels.cancel }),
214
+ /* @__PURE__ */ jsx(
215
+ Button,
216
+ {
217
+ size: "small",
218
+ variant: "secondary",
219
+ loading: acting,
220
+ disabledReason: acting || editDraft.trim() !== "" ? void 0 : labels.emptyEdit,
221
+ onClick: () => void saveEdit(comment),
222
+ children: labels.save
223
+ }
224
+ )
225
+ ] })
226
+ }
227
+ ) : /* @__PURE__ */ jsx(Document, { size: "sm", measure: "none", children: comment.body }),
228
+ isConfirming && /* @__PURE__ */ jsxs("div", { className: "crewlet-comment-thread__confirm", role: "group", "aria-label": labels.removeAsk, children: [
229
+ /* @__PURE__ */ jsx("span", { children: labels.removeAsk }),
230
+ /* @__PURE__ */ jsx(Button, { size: "small", variant: "ghost", disabled: acting, onClick: () => setConfirming(null), children: labels.keep }),
231
+ /* @__PURE__ */ jsx(
114
232
  Button,
115
233
  {
116
234
  size: "small",
117
- variant: "ghost",
118
- className: "crewlet-comment-thread__reply",
119
- "aria-label": labels.replyTo(name),
120
- onClick: () => startReply(comment),
121
- children: labels.reply
235
+ variant: "danger",
236
+ loading: acting,
237
+ onClick: () => void confirmRemove(comment),
238
+ children: labels.removeConfirm
122
239
  }
123
240
  )
124
- ] }),
125
- /* @__PURE__ */ jsx(Document, { size: "sm", measure: "none", children: comment.body })
241
+ ] })
126
242
  ] }, comment.id);
127
243
  }) })
128
244
  ),
@@ -1,51 +1,51 @@
1
1
  import '../chunk-2KUAO2CX.js';
2
- export { SLIDE_COMPARE_LABELS, SlideCompare } from '../chunk-FSCJV5M5.js';
3
2
  export { ElementToPngError, elementToPng, parseCsv, peelPunctuation, serializeElement, toCsv } from '../chunk-BALBOOKX.js';
3
+ export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from '../chunk-Q4JX6UO7.js';
4
4
  export { TypeSpecimen } from '../chunk-JKAFEFFC.js';
5
- export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-3DAIOPAV.js';
6
5
  export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-QDXSBVZR.js';
6
+ export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-3DAIOPAV.js';
7
7
  export { VersionTimeline } from '../chunk-RM5RKPFV.js';
8
8
  export { WidgetFrame } from '../chunk-5ZTH54O6.js';
9
+ export { TileGrid } from '../chunk-UFID3DSP.js';
9
10
  export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-3P24SMTI.js';
10
11
  export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-GQPKDPMS.js';
11
12
  export { ToastProvider, Toaster, readingDuration, toasterInsetStyle, useToast } from '../chunk-B6AQY6FH.js';
12
- export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from '../chunk-Q4JX6UO7.js';
13
+ export { TagsInput } from '../chunk-A5VNNA3V.js';
13
14
  export { ThemeGallery } from '../chunk-35ALKQC5.js';
14
- export { DensitySwitcher, ThemeSwitcher } from '../chunk-AIYSPVVZ.js';
15
15
  export { ThemeSwatch } from '../chunk-3XQUEF5C.js';
16
+ export { DensitySwitcher, ThemeSwitcher } from '../chunk-AIYSPVVZ.js';
16
17
  export { ThemeToggle } from '../chunk-5RXY2RL4.js';
17
18
  export { applyStoredPreferences, resolveTheme, useDensityPreference, useSystemTheme, useThemePreference } from '../chunk-Z24ZUSTX.js';
18
19
  export { ThinkingIndicator } from '../chunk-DX7ZHO47.js';
19
- export { TileGrid } from '../chunk-UFID3DSP.js';
20
20
  export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-U4HA6LRQ.js';
21
21
  export { Switcher } from '../chunk-GPEXCG5K.js';
22
22
  export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from '../chunk-JKFA2F7J.js';
23
- export { TagsInput } from '../chunk-A5VNNA3V.js';
23
+ export { StatCard } from '../chunk-2YADDY4A.js';
24
24
  export { StatGroup } from '../chunk-OUD75UB2.js';
25
25
  export { Statement } from '../chunk-MZJKPTA5.js';
26
26
  export { StatusLegend } from '../chunk-CXFMNOPV.js';
27
27
  export { StatusLine } from '../chunk-435WY2WT.js';
28
- import '../chunk-ZZMXJTII.js';
28
+ export { SLIDE_COMPARE_LABELS, SlideCompare } from '../chunk-FSCJV5M5.js';
29
29
  export { SlideFilmstrip } from '../chunk-7FSIBX4S.js';
30
30
  export { SlideGrid } from '../chunk-73L3774J.js';
31
31
  export { SOURCE_EDITOR_KEYS, SourceEditor, lineStart } from '../chunk-S656HY4W.js';
32
- export { StatCard } from '../chunk-2YADDY4A.js';
33
32
  export { SetupWizard } from '../chunk-2DZV4PHK.js';
34
33
  export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-WZ5TDJ2K.js';
35
34
  export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-MNACKUBB.js';
36
35
  export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-E3AFQTWT.js';
37
36
  export { TagGroup } from '../chunk-FOUIZS7Q.js';
38
37
  export { matchesShortcut, useShortcut } from '../chunk-K6PKXCR2.js';
38
+ import '../chunk-ZZMXJTII.js';
39
39
  export { SectionFrame, SectionFrameBody, SectionFrameNav } from '../chunk-EFY7R766.js';
40
40
  export { SegmentedMeter, segmentedMeterLabel } from '../chunk-4AK52VHB.js';
41
41
  export { SelectionBar } from '../chunk-XIKU44QE.js';
42
42
  export { SEND_BUTTON_LABELS, SendButton } from '../chunk-PNSUXNNY.js';
43
43
  export { SettingsTable, SettingsTableRow } from '../chunk-FRXOUBN2.js';
44
44
  export { ReviewList } from '../chunk-7XYU5PSQ.js';
45
- export { RichEditor, preloadRichEditor } from '../chunk-KQFOPY2P.js';
46
- export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
47
45
  export { canonicalMarkdown, roundTripMarkdown } from '../chunk-GBASM5EV.js';
48
46
  import '../chunk-7CSTEH5I.js';
47
+ export { RichEditor, preloadRichEditor } from '../chunk-Q6QKY7EZ.js';
48
+ export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
49
49
  export { RoomRow } from '../chunk-45OOFAL6.js';
50
50
  export { RUN_STATES, RunChip } from '../chunk-L6SYLG3F.js';
51
51
  export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from '../chunk-4EKHHHOQ.js';
@@ -94,8 +94,8 @@ export { ActionDivider, MessageAction, MessageActions, QuickReaction } from '../
94
94
  export { ListDetail, ListDetailBack } from '../chunk-DNBIBLT2.js';
95
95
  export { ListInput, withDraft } from '../chunk-Z64KEJ3N.js';
96
96
  export { LIVE_CURSOR_HIDE_MS, LIVE_CURSOR_REST_MS, LiveCursor } from '../chunk-DPNVKWJX.js';
97
- export { LogoSlot, LogoSlotGroup } from '../chunk-4Q7AWZ6O.js';
98
97
  export { LIVE_PREVIEW_DWELL_MS, LIVE_PREVIEW_MARGIN, LIVE_PREVIEW_MAX, LIVE_PREVIEW_MAX_FRAMES, LIVE_PREVIEW_RENDER_MS, LIVE_PREVIEW_STILLS_KEPT, LivePreview, LivePreviewBudgetProvider, PREVIEW_FILL_MAX_CUT, PreviewScale, createLivePreviewBudget, createLivePreviewStills, immediately, perFrame, useLivePreview } from '../chunk-CQFQGAZI.js';
98
+ export { LogoSlot, LogoSlotGroup } from '../chunk-4Q7AWZ6O.js';
99
99
  export { KeyValueRows, keyValueRowsLabels } from '../chunk-Q7WKCU2U.js';
100
100
  export { LAYERS_LIST_LABELS, LayersList } from '../chunk-TEOUMHAI.js';
101
101
  export { AutoGrid, Inline, Spacer, Stack } from '../chunk-ZAC7SKUN.js';
@@ -115,8 +115,8 @@ export { FULLSCREEN_TOGGLE_LABELS, FullscreenToggle, IDLE_AFTER_MS, useFullscree
115
115
  export { Highlight, highlightRanges, highlightTerms } from '../chunk-H6VKCIWV.js';
116
116
  import '../chunk-MICRGE3J.js';
117
117
  import '../chunk-FFMCMSJB.js';
118
- export { ImageUpload } from '../chunk-K6Y6CDEZ.js';
119
118
  export { IconTile } from '../chunk-VRVNLJUA.js';
119
+ export { ImageUpload } from '../chunk-K6Y6CDEZ.js';
120
120
  export { FileDrop, FilePickButton, droppedFiles, pickedFiles } from '../chunk-XF5PDUDH.js';
121
121
  export { FileList } from '../chunk-FQBSYMEW.js';
122
122
  export { FILTER_CHIP_ATTRIBUTE, FilterChip, FilterChipGroup } from '../chunk-L6HUVA33.js';
@@ -131,7 +131,7 @@ export { EntityList } from '../chunk-WC5UG64S.js';
131
131
  export { ErrorBoundary } from '../chunk-H45TEWVU.js';
132
132
  export { Eyebrow } from '../chunk-RK4XPHVG.js';
133
133
  export { FactList } from '../chunk-OYV7BFRC.js';
134
- export { DirectoryList } from '../chunk-5KTLQ436.js';
134
+ export { DescriptionList, DescriptionListItem } from '../chunk-LH4OF7FI.js';
135
135
  export { Divider } from '../chunk-6KWNXIDE.js';
136
136
  export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from '../chunk-3WSDAVE6.js';
137
137
  export { DockColumn } from '../chunk-UXTW4GOT.js';
@@ -148,8 +148,8 @@ export { STEP_STATES, STEP_STATE_LABELS, StepList, StepStateMark, Stepper, stepD
148
148
  export { DEFAULT_METER_THRESHOLDS, METER_STATES, Meter, meterState, meterStateTone, meterTone, progressTone } from '../chunk-MXOT2CWL.js';
149
149
  export { REFUSAL_STRIP_LABELS, ReceiptStrip, RefusalStrip } from '../chunk-TMHG4576.js';
150
150
  export { DELIVERY_RECEIPT_LABELS, DeliveryReceipt } from '../chunk-GTNXDLYH.js';
151
- export { DescriptionList, DescriptionListItem } from '../chunk-LH4OF7FI.js';
152
151
  export { DIFF_SUMMARY_LABELS, DIFF_VIEW_LABELS, DiffSummary, DiffView, MAX_DIFF_LINES, collapseDiff, diffLines, diffStat, firstChangedLines, splitLines } from '../chunk-U3LHWQQK.js';
152
+ export { DirectoryList } from '../chunk-5KTLQ436.js';
153
153
  export { Container } from '../chunk-HJO4WCH6.js';
154
154
  export { ContrastHelp } from '../chunk-SIL5WE55.js';
155
155
  export { ContrastBadge, ContrastLevelTag, contrastLevel, contrastRatio, formatContrastRatio } from '../chunk-3YOLD7WG.js';
@@ -162,7 +162,7 @@ export { Combobox } from '../chunk-WUJ54OTI.js';
162
162
  export { CommandPalette } from '../chunk-XYZA7OSE.js';
163
163
  export { ConfirmModal, Modal } from '../chunk-VSD3536L.js';
164
164
  export { HIGHLIGHT_REST_MS, TYPE_AHEAD_WINDOW, useHighlightRest, useListbox, useOptionKeys } from '../chunk-KW7T23RT.js';
165
- export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-BF3PFRBE.js';
165
+ export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-WLCPN22T.js';
166
166
  export { CompactNav, CompactNavGroup, CompactNavItem, CompactNavSeparator, groupBadge, placeFlyout } from '../chunk-QFI5C4YF.js';
167
167
  export { LockedLabel } from '../chunk-TODOBUXO.js';
168
168
  export { ConfirmField, confirmMatches } from '../chunk-BODW4JH3.js';
@@ -181,16 +181,16 @@ export { useOutcome } from '../chunk-DTIW4CHZ.js';
181
181
  export { ColorChip } from '../chunk-C6T4VBEY.js';
182
182
  export { ColorField } from '../chunk-UQA7SV3B.js';
183
183
  import '../chunk-3L5NHASN.js';
184
- export { ActivityStrip, BarList, ChartEmpty, ChartTooltip, DATA_COLORS, DATA_COLOR_OTHER, Histogram, Legend, Sparkline, StackedBar, StackedColumns, StackedRing, TimeSeries, dataColor, histogramTicks, niceScale, useChartHover } from '../chunk-TQ6ZPQI4.js';
185
184
  export { ChatDay, ChatDayPill } from '../chunk-RBQOS3JC.js';
185
+ export { ActivityStrip, BarList, ChartEmpty, ChartTooltip, DATA_COLORS, DATA_COLOR_OTHER, Histogram, Legend, Sparkline, StackedBar, StackedColumns, StackedRing, TimeSeries, dataColor, histogramTicks, niceScale, useChartHover } from '../chunk-TQ6ZPQI4.js';
186
186
  export { ChatDivider } from '../chunk-EI242VTX.js';
187
187
  import '../chunk-5QJNA7KD.js';
188
188
  export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-KTKPC3CV.js';
189
189
  export { CHAT_MESSAGE_CLASS, CHAT_MESSAGE_FAILURE_LABELS, ChatMessage, ChatMessageFailure } from '../chunk-Y3EV3Q2U.js';
190
190
  export { CheckGrid } from '../chunk-AYLFZW27.js';
191
+ export { CanvasSchematic } from '../chunk-NBWNLYWZ.js';
191
192
  export { BOARD_NAME_MIN_CHARS, CANVAS_BOARD_MAX_LIVE, CANVAS_BOARD_MIN_LIVE_WIDTH, CANVAS_BOARD_MIN_ZOOM, CANVAS_NOTE_COLORS, CanvasBoard, TITLE_GLYPH_EM, boardName, boardRoom, liveBoards, titleSize } from '../chunk-QM2QFKIA.js';
192
193
  export { Note } from '../chunk-YJPQJVRJ.js';
193
- export { CanvasSchematic } from '../chunk-NBWNLYWZ.js';
194
194
  export { CanvasToolbar, toolForKey } from '../chunk-AKCIF6XN.js';
195
195
  export { TOOLBAR_FOLD_WIDTH, Toolbar, ToolbarOverflow, ToolbarSeparator, ToolbarWide } from '../chunk-NPEI2QAN.js';
196
196
  export { CatalogTile } from '../chunk-JKEGFDBG.js';
@@ -225,7 +225,7 @@ export { CHARACTER_PICKER_COLUMNS, CharacterPicker } from '../chunk-ZIL6MTMZ.js'
225
225
  export { NODE_HUES, NODE_HUE_NAMES, isNodeHue } from '../chunk-AYKXMIOR.js';
226
226
  export { BrandChip } from '../chunk-UH44L7OJ.js';
227
227
  export { BrandLockup } from '../chunk-KXWJJWBD.js';
228
- export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-4FKHPUVR.js';
228
+ export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-XZB53C7U.js';
229
229
  export { Skeleton } from '../chunk-WFAJYBLX.js';
230
230
  export { PRINCIPAL_KINDS, PrincipalAvatar } from '../chunk-HF5L56YQ.js';
231
231
  export { RelativeTime, currentNow, formatElapsed, formatExact, formatRelative, formatUntil, toISO, toInstant, useNow } from '../chunk-GBKBME7Q.js';
@@ -237,9 +237,9 @@ import '../chunk-WSIJDWUG.js';
237
237
  export { DashboardCover, DocCover, SHEET_COVER_COLUMNS, SHEET_COVER_ROWS, SheetCover } from '../chunk-MMV7NEAC.js';
238
238
  export { Document, DocumentTitle, DocumentTitleField } from '../chunk-I4PBFJGX.js';
239
239
  export { ArtifactKindGround, ArtifactKindIllustration, ArtifactKindTile } from '../chunk-W3A6NBUM.js';
240
- export { ArtifactNameCell } from '../chunk-3SCASXQH.js';
241
240
  export { ArtifactMakeRow } from '../chunk-A3SQWUWG.js';
242
- export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-V47JOO72.js';
241
+ export { ArtifactNameCell } from '../chunk-3SCASXQH.js';
242
+ export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-M32NBSS7.js';
243
243
  export { afterMotion, releaseFocus, runningMotion, usePresence } from '../chunk-SNKQNAJI.js';
244
244
  import '../chunk-JLOESTT2.js';
245
245
  export { ArrangeBoard } from '../chunk-QO7QEQKV.js';
@@ -250,6 +250,7 @@ export { ArrangeList, DEFAULT_ARRANGE_LABELS } from '../chunk-XVKTZ2AC.js';
250
250
  export { Switch } from '../chunk-6YYRFGXO.js';
251
251
  export { DEFAULT_REORDER_LABELS, moveKey, useReorder, useReorderLists } from '../chunk-JMBPMSNI.js';
252
252
  export { Checkbox, CheckboxGroup } from '../chunk-KFTVPWG2.js';
253
+ export { ARTIFACT_ACCESSES, ARTIFACT_ACCESS_LABELS, ArtifactAccessGlyph, ArtifactAccessLabel } from '../chunk-DOY3KC6I.js';
253
254
  export { ARTIFACT_BAR_LABELS, ArtifactBar, ArtifactVersionChip } from '../chunk-NLGRDKCK.js';
254
255
  import '../chunk-7U4V36SB.js';
255
256
  export { SegmentedControl } from '../chunk-V2FD4RPS.js';
@@ -259,7 +260,6 @@ export { StatusDot } from '../chunk-QRE6JCHS.js';
259
260
  export { ARTIFACT_ICON_WORDS, ArtifactIcon, artifactIconGlyph } from '../chunk-AVL52EME.js';
260
261
  export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
261
262
  export { Menu } from '../chunk-EGHOU7U2.js';
262
- export { ARTIFACT_ACCESSES, ARTIFACT_ACCESS_LABELS, ArtifactAccessGlyph, ArtifactAccessLabel } from '../chunk-DOY3KC6I.js';
263
263
  export { ACCESS_DENIED_REASONS, AccessDeniedCard } from '../chunk-QTMUKRTN.js';
264
264
  export { EmptyState } from '../chunk-PPUR46MK.js';
265
265
  export { Accordion, AccordionItem } from '../chunk-3QEAANRP.js';
package/dist/index.js CHANGED
@@ -1,51 +1,51 @@
1
1
  import './chunk-2KUAO2CX.js';
2
- export { SLIDE_COMPARE_LABELS, SlideCompare } from './chunk-FSCJV5M5.js';
3
2
  export { ElementToPngError, elementToPng, parseCsv, peelPunctuation, serializeElement, toCsv } from './chunk-BALBOOKX.js';
3
+ export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from './chunk-Q4JX6UO7.js';
4
4
  export { TypeSpecimen } from './chunk-JKAFEFFC.js';
5
- export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from './chunk-3DAIOPAV.js';
6
5
  export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from './chunk-QDXSBVZR.js';
6
+ export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from './chunk-3DAIOPAV.js';
7
7
  export { VersionTimeline } from './chunk-RM5RKPFV.js';
8
8
  export { WidgetFrame } from './chunk-5ZTH54O6.js';
9
+ export { TileGrid } from './chunk-UFID3DSP.js';
9
10
  export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from './chunk-3P24SMTI.js';
10
11
  export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from './chunk-GQPKDPMS.js';
11
12
  export { ToastProvider, Toaster, readingDuration, toasterInsetStyle, useToast } from './chunk-B6AQY6FH.js';
12
- export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from './chunk-Q4JX6UO7.js';
13
+ export { TagsInput } from './chunk-A5VNNA3V.js';
13
14
  export { ThemeGallery } from './chunk-35ALKQC5.js';
14
- export { DensitySwitcher, ThemeSwitcher } from './chunk-AIYSPVVZ.js';
15
15
  export { ThemeSwatch } from './chunk-3XQUEF5C.js';
16
+ export { DensitySwitcher, ThemeSwitcher } from './chunk-AIYSPVVZ.js';
16
17
  export { ThemeToggle } from './chunk-5RXY2RL4.js';
17
18
  export { applyStoredPreferences, resolveTheme, useDensityPreference, useSystemTheme, useThemePreference } from './chunk-Z24ZUSTX.js';
18
19
  export { ThinkingIndicator } from './chunk-DX7ZHO47.js';
19
- export { TileGrid } from './chunk-UFID3DSP.js';
20
20
  export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from './chunk-U4HA6LRQ.js';
21
21
  export { Switcher } from './chunk-GPEXCG5K.js';
22
22
  export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from './chunk-JKFA2F7J.js';
23
- export { TagsInput } from './chunk-A5VNNA3V.js';
23
+ export { StatCard } from './chunk-2YADDY4A.js';
24
24
  export { StatGroup } from './chunk-OUD75UB2.js';
25
25
  export { Statement } from './chunk-MZJKPTA5.js';
26
26
  export { StatusLegend } from './chunk-CXFMNOPV.js';
27
27
  export { StatusLine } from './chunk-435WY2WT.js';
28
- import './chunk-ZZMXJTII.js';
28
+ export { SLIDE_COMPARE_LABELS, SlideCompare } from './chunk-FSCJV5M5.js';
29
29
  export { SlideFilmstrip } from './chunk-7FSIBX4S.js';
30
30
  export { SlideGrid } from './chunk-73L3774J.js';
31
31
  export { SOURCE_EDITOR_KEYS, SourceEditor, lineStart } from './chunk-S656HY4W.js';
32
- export { StatCard } from './chunk-2YADDY4A.js';
33
32
  export { SetupWizard } from './chunk-2DZV4PHK.js';
34
33
  export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from './chunk-WZ5TDJ2K.js';
35
34
  export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from './chunk-MNACKUBB.js';
36
35
  export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from './chunk-E3AFQTWT.js';
37
36
  export { TagGroup } from './chunk-FOUIZS7Q.js';
38
37
  export { matchesShortcut, useShortcut } from './chunk-K6PKXCR2.js';
38
+ import './chunk-ZZMXJTII.js';
39
39
  export { SectionFrame, SectionFrameBody, SectionFrameNav } from './chunk-EFY7R766.js';
40
40
  export { SegmentedMeter, segmentedMeterLabel } from './chunk-4AK52VHB.js';
41
41
  export { SelectionBar } from './chunk-XIKU44QE.js';
42
42
  export { SEND_BUTTON_LABELS, SendButton } from './chunk-PNSUXNNY.js';
43
43
  export { SettingsTable, SettingsTableRow } from './chunk-FRXOUBN2.js';
44
44
  export { ReviewList } from './chunk-7XYU5PSQ.js';
45
- export { RichEditor, preloadRichEditor } from './chunk-KQFOPY2P.js';
46
- export { RICH_EDITOR_LABELS, richEditorLabels } from './chunk-2DMTW2Y3.js';
47
45
  export { canonicalMarkdown, roundTripMarkdown } from './chunk-GBASM5EV.js';
48
46
  import './chunk-7CSTEH5I.js';
47
+ export { RichEditor, preloadRichEditor } from './chunk-Q6QKY7EZ.js';
48
+ export { RICH_EDITOR_LABELS, richEditorLabels } from './chunk-2DMTW2Y3.js';
49
49
  export { RoomRow } from './chunk-45OOFAL6.js';
50
50
  export { RUN_STATES, RunChip } from './chunk-L6SYLG3F.js';
51
51
  export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from './chunk-4EKHHHOQ.js';
@@ -94,8 +94,8 @@ export { ActionDivider, MessageAction, MessageActions, QuickReaction } from './c
94
94
  export { ListDetail, ListDetailBack } from './chunk-DNBIBLT2.js';
95
95
  export { ListInput, withDraft } from './chunk-Z64KEJ3N.js';
96
96
  export { LIVE_CURSOR_HIDE_MS, LIVE_CURSOR_REST_MS, LiveCursor } from './chunk-DPNVKWJX.js';
97
- export { LogoSlot, LogoSlotGroup } from './chunk-4Q7AWZ6O.js';
98
97
  export { LIVE_PREVIEW_DWELL_MS, LIVE_PREVIEW_MARGIN, LIVE_PREVIEW_MAX, LIVE_PREVIEW_MAX_FRAMES, LIVE_PREVIEW_RENDER_MS, LIVE_PREVIEW_STILLS_KEPT, LivePreview, LivePreviewBudgetProvider, PREVIEW_FILL_MAX_CUT, PreviewScale, createLivePreviewBudget, createLivePreviewStills, immediately, perFrame, useLivePreview } from './chunk-CQFQGAZI.js';
98
+ export { LogoSlot, LogoSlotGroup } from './chunk-4Q7AWZ6O.js';
99
99
  export { KeyValueRows, keyValueRowsLabels } from './chunk-Q7WKCU2U.js';
100
100
  export { LAYERS_LIST_LABELS, LayersList } from './chunk-TEOUMHAI.js';
101
101
  export { AutoGrid, Inline, Spacer, Stack } from './chunk-ZAC7SKUN.js';
@@ -115,8 +115,8 @@ export { FULLSCREEN_TOGGLE_LABELS, FullscreenToggle, IDLE_AFTER_MS, useFullscree
115
115
  export { Highlight, highlightRanges, highlightTerms } from './chunk-H6VKCIWV.js';
116
116
  import './chunk-MICRGE3J.js';
117
117
  import './chunk-FFMCMSJB.js';
118
- export { ImageUpload } from './chunk-K6Y6CDEZ.js';
119
118
  export { IconTile } from './chunk-VRVNLJUA.js';
119
+ export { ImageUpload } from './chunk-K6Y6CDEZ.js';
120
120
  export { FileDrop, FilePickButton, droppedFiles, pickedFiles } from './chunk-XF5PDUDH.js';
121
121
  export { FileList } from './chunk-FQBSYMEW.js';
122
122
  export { FILTER_CHIP_ATTRIBUTE, FilterChip, FilterChipGroup } from './chunk-L6HUVA33.js';
@@ -131,7 +131,7 @@ export { EntityList } from './chunk-WC5UG64S.js';
131
131
  export { ErrorBoundary } from './chunk-H45TEWVU.js';
132
132
  export { Eyebrow } from './chunk-RK4XPHVG.js';
133
133
  export { FactList } from './chunk-OYV7BFRC.js';
134
- export { DirectoryList } from './chunk-5KTLQ436.js';
134
+ export { DescriptionList, DescriptionListItem } from './chunk-LH4OF7FI.js';
135
135
  export { Divider } from './chunk-6KWNXIDE.js';
136
136
  export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from './chunk-3WSDAVE6.js';
137
137
  export { DockColumn } from './chunk-UXTW4GOT.js';
@@ -148,8 +148,8 @@ export { STEP_STATES, STEP_STATE_LABELS, StepList, StepStateMark, Stepper, stepD
148
148
  export { DEFAULT_METER_THRESHOLDS, METER_STATES, Meter, meterState, meterStateTone, meterTone, progressTone } from './chunk-MXOT2CWL.js';
149
149
  export { REFUSAL_STRIP_LABELS, ReceiptStrip, RefusalStrip } from './chunk-TMHG4576.js';
150
150
  export { DELIVERY_RECEIPT_LABELS, DeliveryReceipt } from './chunk-GTNXDLYH.js';
151
- export { DescriptionList, DescriptionListItem } from './chunk-LH4OF7FI.js';
152
151
  export { DIFF_SUMMARY_LABELS, DIFF_VIEW_LABELS, DiffSummary, DiffView, MAX_DIFF_LINES, collapseDiff, diffLines, diffStat, firstChangedLines, splitLines } from './chunk-U3LHWQQK.js';
152
+ export { DirectoryList } from './chunk-5KTLQ436.js';
153
153
  export { Container } from './chunk-HJO4WCH6.js';
154
154
  export { ContrastHelp } from './chunk-SIL5WE55.js';
155
155
  export { ContrastBadge, ContrastLevelTag, contrastLevel, contrastRatio, formatContrastRatio } from './chunk-3YOLD7WG.js';
@@ -162,7 +162,7 @@ export { Combobox } from './chunk-WUJ54OTI.js';
162
162
  export { CommandPalette } from './chunk-XYZA7OSE.js';
163
163
  export { ConfirmModal, Modal } from './chunk-VSD3536L.js';
164
164
  export { HIGHLIGHT_REST_MS, TYPE_AHEAD_WINDOW, useHighlightRest, useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
165
- export { COMMENT_THREAD_LABELS, CommentThread } from './chunk-BF3PFRBE.js';
165
+ export { COMMENT_THREAD_LABELS, CommentThread } from './chunk-WLCPN22T.js';
166
166
  export { CompactNav, CompactNavGroup, CompactNavItem, CompactNavSeparator, groupBadge, placeFlyout } from './chunk-QFI5C4YF.js';
167
167
  export { LockedLabel } from './chunk-TODOBUXO.js';
168
168
  export { ConfirmField, confirmMatches } from './chunk-BODW4JH3.js';
@@ -181,16 +181,16 @@ export { useOutcome } from './chunk-DTIW4CHZ.js';
181
181
  export { ColorChip } from './chunk-C6T4VBEY.js';
182
182
  export { ColorField } from './chunk-UQA7SV3B.js';
183
183
  import './chunk-3L5NHASN.js';
184
- export { ActivityStrip, BarList, ChartEmpty, ChartTooltip, DATA_COLORS, DATA_COLOR_OTHER, Histogram, Legend, Sparkline, StackedBar, StackedColumns, StackedRing, TimeSeries, dataColor, histogramTicks, niceScale, useChartHover } from './chunk-TQ6ZPQI4.js';
185
184
  export { ChatDay, ChatDayPill } from './chunk-RBQOS3JC.js';
185
+ export { ActivityStrip, BarList, ChartEmpty, ChartTooltip, DATA_COLORS, DATA_COLOR_OTHER, Histogram, Legend, Sparkline, StackedBar, StackedColumns, StackedRing, TimeSeries, dataColor, histogramTicks, niceScale, useChartHover } from './chunk-TQ6ZPQI4.js';
186
186
  export { ChatDivider } from './chunk-EI242VTX.js';
187
187
  import './chunk-5QJNA7KD.js';
188
188
  export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from './chunk-KTKPC3CV.js';
189
189
  export { CHAT_MESSAGE_CLASS, CHAT_MESSAGE_FAILURE_LABELS, ChatMessage, ChatMessageFailure } from './chunk-Y3EV3Q2U.js';
190
190
  export { CheckGrid } from './chunk-AYLFZW27.js';
191
+ export { CanvasSchematic } from './chunk-NBWNLYWZ.js';
191
192
  export { BOARD_NAME_MIN_CHARS, CANVAS_BOARD_MAX_LIVE, CANVAS_BOARD_MIN_LIVE_WIDTH, CANVAS_BOARD_MIN_ZOOM, CANVAS_NOTE_COLORS, CanvasBoard, TITLE_GLYPH_EM, boardName, boardRoom, liveBoards, titleSize } from './chunk-QM2QFKIA.js';
192
193
  export { Note } from './chunk-YJPQJVRJ.js';
193
- export { CanvasSchematic } from './chunk-NBWNLYWZ.js';
194
194
  export { CanvasToolbar, toolForKey } from './chunk-AKCIF6XN.js';
195
195
  export { TOOLBAR_FOLD_WIDTH, Toolbar, ToolbarOverflow, ToolbarSeparator, ToolbarWide } from './chunk-NPEI2QAN.js';
196
196
  export { CatalogTile } from './chunk-JKEGFDBG.js';
@@ -225,7 +225,7 @@ export { CHARACTER_PICKER_COLUMNS, CharacterPicker } from './chunk-ZIL6MTMZ.js';
225
225
  export { NODE_HUES, NODE_HUE_NAMES, isNodeHue } from './chunk-AYKXMIOR.js';
226
226
  export { BrandChip } from './chunk-UH44L7OJ.js';
227
227
  export { BrandLockup } from './chunk-KXWJJWBD.js';
228
- export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from './chunk-4FKHPUVR.js';
228
+ export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from './chunk-XZB53C7U.js';
229
229
  export { Skeleton } from './chunk-WFAJYBLX.js';
230
230
  export { PRINCIPAL_KINDS, PrincipalAvatar } from './chunk-HF5L56YQ.js';
231
231
  export { RelativeTime, currentNow, formatElapsed, formatExact, formatRelative, formatUntil, toISO, toInstant, useNow } from './chunk-GBKBME7Q.js';
@@ -237,9 +237,9 @@ import './chunk-WSIJDWUG.js';
237
237
  export { DashboardCover, DocCover, SHEET_COVER_COLUMNS, SHEET_COVER_ROWS, SheetCover } from './chunk-MMV7NEAC.js';
238
238
  export { Document, DocumentTitle, DocumentTitleField } from './chunk-I4PBFJGX.js';
239
239
  export { ArtifactKindGround, ArtifactKindIllustration, ArtifactKindTile } from './chunk-W3A6NBUM.js';
240
- export { ArtifactNameCell } from './chunk-3SCASXQH.js';
241
240
  export { ArtifactMakeRow } from './chunk-A3SQWUWG.js';
242
- export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from './chunk-V47JOO72.js';
241
+ export { ArtifactNameCell } from './chunk-3SCASXQH.js';
242
+ export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from './chunk-M32NBSS7.js';
243
243
  export { afterMotion, releaseFocus, runningMotion, usePresence } from './chunk-SNKQNAJI.js';
244
244
  import './chunk-JLOESTT2.js';
245
245
  export { ArrangeBoard } from './chunk-QO7QEQKV.js';
@@ -250,6 +250,7 @@ export { ArrangeList, DEFAULT_ARRANGE_LABELS } from './chunk-XVKTZ2AC.js';
250
250
  export { Switch } from './chunk-6YYRFGXO.js';
251
251
  export { DEFAULT_REORDER_LABELS, moveKey, useReorder, useReorderLists } from './chunk-JMBPMSNI.js';
252
252
  export { Checkbox, CheckboxGroup } from './chunk-KFTVPWG2.js';
253
+ export { ARTIFACT_ACCESSES, ARTIFACT_ACCESS_LABELS, ArtifactAccessGlyph, ArtifactAccessLabel } from './chunk-DOY3KC6I.js';
253
254
  export { ARTIFACT_BAR_LABELS, ArtifactBar, ArtifactVersionChip } from './chunk-NLGRDKCK.js';
254
255
  import './chunk-7U4V36SB.js';
255
256
  export { SegmentedControl } from './chunk-V2FD4RPS.js';
@@ -259,7 +260,6 @@ export { StatusDot } from './chunk-QRE6JCHS.js';
259
260
  export { ARTIFACT_ICON_WORDS, ArtifactIcon, artifactIconGlyph } from './chunk-AVL52EME.js';
260
261
  export { ARTIFACT_KINDS, ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
261
262
  export { Menu } from './chunk-EGHOU7U2.js';
262
- export { ARTIFACT_ACCESSES, ARTIFACT_ACCESS_LABELS, ArtifactAccessGlyph, ArtifactAccessLabel } from './chunk-DOY3KC6I.js';
263
263
  export { ACCESS_DENIED_REASONS, AccessDeniedCard } from './chunk-QTMUKRTN.js';
264
264
  export { EmptyState } from './chunk-PPUR46MK.js';
265
265
  export { Accordion, AccordionItem } from './chunk-3QEAANRP.js';
package/dist/styles.css CHANGED
@@ -941,7 +941,7 @@
941
941
  }
942
942
 
943
943
 
944
- /* AppShell-S5FHXWNS.css */
944
+ /* AppShell-N5IHITJM.css */
945
945
  /*
946
946
  * The application frame: a rail on the FRAME, and the screen on a SHEET that
947
947
  * floats beside it.
@@ -1148,10 +1148,31 @@
1148
1148
  padding-top: var(--size-shell-inset);
1149
1149
  }
1150
1150
 
1151
+ /*
1152
+ * THE MIDDLE IS THE RAIL'S SCROLLER, and it KEEPS ITS WIDTH WHEN IT SCROLLS.
1153
+ * It reserved nothing, so when what it holds (a long group of running work)
1154
+ * grew past the window, the scrollbar took its width out of the content: the
1155
+ * field and every row ended a bar's width earlier, and the field's words were
1156
+ * cut beside its shortcut. It reserves the bar's gutter at every height, and
1157
+ * what stands in it (the field and the nav) gives exactly that width back from
1158
+ * its end inset (`--crewlet-rail-body-end`, the nav's gutter less the bar), so
1159
+ * the field and the rows stand where they stood before, scrolling or not.
1160
+ *
1161
+ * The bar's width is the middle's own (`--crewlet-rail-scrollbar`, measured by
1162
+ * `AppShell.Rail`, 0 where scrollbars overlay the content), not the screen's
1163
+ * gutter, which is 0 beside a flush screen while the middle still reserves its
1164
+ * bar. A bar wider than the gutter gives back what the gutter has.
1165
+ */
1151
1166
  .crewlet-app-shell__rail-body {
1167
+ --crewlet-rail-body-end: max(0px, calc(var(--size-nav-gutter) - var(--crewlet-rail-scrollbar, 0px)));
1152
1168
  flex: 1 1 auto;
1153
1169
  min-height: 0;
1154
1170
  overflow-y: auto;
1171
+ scrollbar-gutter: stable;
1172
+ }
1173
+
1174
+ .crewlet-app-shell__rail-body .crewlet-sidebar-nav {
1175
+ padding-inline-end: var(--crewlet-rail-body-end);
1155
1176
  }
1156
1177
 
1157
1178
  /* The rail's bar, only where `::-webkit-scrollbar` is not read: set where it
@@ -1254,6 +1275,10 @@
1254
1275
  .crewlet-app-shell__rail-search {
1255
1276
  --crewlet-rail-field-pad: calc(var(--size-nav-row-pad) - 1px);
1256
1277
  padding: 0 calc(var(--size-nav-gutter) + var(--size-nav-row-pad) - var(--crewlet-rail-field-pad) - 1px);
1278
+ /* The end gives the middle's scrollbar back, as the nav's does (above). */
1279
+ padding-inline-end: calc(
1280
+ var(--crewlet-rail-body-end) + var(--size-nav-row-pad) - var(--crewlet-rail-field-pad) - 1px
1281
+ );
1257
1282
  }
1258
1283
 
1259
1284
  /* The same gutter the nav takes, so what the foot says lines up with the rows
@@ -1990,8 +2015,12 @@
1990
2015
  margin: 0;
1991
2016
  }
1992
2017
 
2018
+ /* The compact column reserves no gutter, so its tiles stay centred in it, and
2019
+ gives none back. */
1993
2020
  .crewlet-app-shell[data-rail='compact'] .crewlet-app-shell__rail-body {
2021
+ --crewlet-rail-body-end: var(--size-nav-gutter);
1994
2022
  padding: var(--spacing-1) 0;
2023
+ scrollbar-gutter: auto;
1995
2024
  }
1996
2025
 
1997
2026
  /*
@@ -14390,7 +14419,7 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
14390
14419
  }
14391
14420
 
14392
14421
 
14393
- /* CommentThread-FRXTDNV6.css */
14422
+ /* CommentThread-544KCZT7.css */
14394
14423
  /* CommentThread: a document's remarks, one per row with a hairline between,
14395
14424
  then the field to add one. */
14396
14425
  .crewlet-comment-thread {
@@ -14466,14 +14495,38 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
14466
14495
  font-size: var(--font-size-xs);
14467
14496
  }
14468
14497
 
14469
- /* Reply sits at the row's far end, wherever the head wraps, its padding and
14470
- edge pulled out as a card foot's ghost is (StatusCard.css), so the word ends
14471
- on the line the hairline under the remark ends on rather than 9px inside. */
14472
- .crewlet-comment-thread__reply {
14498
+ /* The remark's controls (Edit, Delete, Reply) sit at the row's far end,
14499
+ wherever the head wraps, the last one's padding and edge pulled out as a
14500
+ card foot's ghost is (StatusCard.css), so the word ends on the line the
14501
+ hairline under the remark ends on rather than 9px inside. */
14502
+ .crewlet-comment-thread__actions {
14503
+ display: inline-flex;
14504
+ align-items: center;
14505
+ gap: var(--spacing-1);
14473
14506
  margin-inline-start: auto;
14474
14507
  margin-inline-end: calc(-1 * (var(--spacing-2) + 1px));
14475
14508
  }
14476
14509
 
14510
+ .crewlet-comment-thread__removed {
14511
+ margin: 0;
14512
+ color: var(--color-text-tertiary);
14513
+ font-size: var(--font-size-compact);
14514
+ font-style: italic;
14515
+ }
14516
+
14517
+ .crewlet-comment-thread__confirm {
14518
+ display: flex;
14519
+ flex-wrap: wrap;
14520
+ align-items: center;
14521
+ gap: var(--spacing-2);
14522
+ color: var(--color-text-secondary);
14523
+ font-size: var(--font-size-compact);
14524
+ }
14525
+
14526
+ .crewlet-comment-thread__confirm > span {
14527
+ margin-inline-end: auto;
14528
+ }
14529
+
14477
14530
  .crewlet-comment-thread__compose {
14478
14531
  display: flex;
14479
14532
  flex-direction: column;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.129.1",
3
+ "version": "0.130.1",
4
4
  "description": "Crewlet shared React components built on @crewlethq/tokens and @crewlethq/icons.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -42,8 +42,8 @@
42
42
  "clean": "rm -rf dist src/generated"
43
43
  },
44
44
  "dependencies": {
45
- "@crewlethq/icons": "0.129.1",
46
- "@crewlethq/tokens": "0.129.1",
45
+ "@crewlethq/icons": "0.130.1",
46
+ "@crewlethq/tokens": "0.130.1",
47
47
  "prosemirror-commands": "1.7.2",
48
48
  "prosemirror-gapcursor": "1.4.1",
49
49
  "prosemirror-history": "1.5.1",
@@ -1,5 +1,5 @@
1
- import { richEditorLabels } from './chunk-2DMTW2Y3.js';
2
1
  import { schema, readMarkdown, writeMarkdown } from './chunk-7CSTEH5I.js';
2
+ import { richEditorLabels } from './chunk-2DMTW2Y3.js';
3
3
  import './chunk-KOJPDCGQ.js';
4
4
  import { safeHref, MARKDOWN_CALLOUT_TONES } from './chunk-KBZO4B33.js';
5
5
  import { Toolbar } from './chunk-NPEI2QAN.js';
@@ -4,8 +4,8 @@ import { RelativeTime } from './chunk-GBKBME7Q.js';
4
4
  import { Card } from './chunk-RABEMWTA.js';
5
5
  import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
6
6
  import { Checkbox } from './chunk-KFTVPWG2.js';
7
- import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
8
7
  import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
8
+ import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
9
9
  import { AvatarStack } from './chunk-ARZGEHWE.js';
10
10
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
11
11
  import { cx } from './chunk-ODEQTPFM.js';