@crewlethq/ui 0.113.1 → 0.114.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.
@@ -5,8 +5,9 @@ export interface ActivityLineProps extends Omit<HTMLAttributes<HTMLDivElement>,
5
5
  typing?: string | undefined;
6
6
  /**
7
7
  * The agents at work, drawn as one `WorkingLine`: their faces, one sentence
8
- * naming them and, on demand, a line per agent. Empty or left out, nothing
9
- * is drawn for them.
8
+ * naming them and, on demand, a line per agent. Empty, nothing is drawn and
9
+ * the line's region waits for the first to start; left out, the line has
10
+ * no working line at all (a line that only ever says who is typing).
10
11
  */
11
12
  agents?: readonly WorkingAgent[] | undefined;
12
13
  /** The working line's words, for a surface in another language. */
@@ -19,7 +20,8 @@ export interface ActivityLineProps extends Omit<HTMLAttributes<HTMLDivElement>,
19
20
  *
20
21
  * KEPT APART. People typing are words and dots, with no face; agents at work
21
22
  * are faces, names under a sweeping band and dots. Both at once stand side by
22
- * side, and wrap to two lines where the column is too narrow for both.
23
+ * side, the people first, and wrap to two lines where the column is too
24
+ * narrow for both.
23
25
  *
24
26
  * EACH ANNOUNCED ONCE PER CHANGE. Typing is a polite status as it changes;
25
27
  * the working line's own region names who starts and stops, never a phrase.
@@ -1,5 +1,5 @@
1
- export { ActivityLine } from '../chunk-ZLCPU4HW.js';
2
- import '../chunk-RNIPNSCH.js';
1
+ export { ActivityLine } from '../chunk-EXKJIL65.js';
2
+ import '../chunk-QP5XZ3QZ.js';
3
3
  import '../chunk-5SMYKL3D.js';
4
4
  import '../chunk-XZY6S3UC.js';
5
5
  import '../chunk-RRRK2KB6.js';
@@ -19,6 +19,12 @@
19
19
  max-width: 100%;
20
20
  }
21
21
 
22
+ /* The working line takes the room the typing before it leaves, and wraps
23
+ under it below 16rem. */
24
+ .crewlet-activity-line > .crewlet-working-line {
25
+ flex: 1 1 16rem;
26
+ }
27
+
22
28
  .crewlet-activity-line__typing {
23
29
  display: inline-flex;
24
30
  align-items: center;
@@ -8,6 +8,11 @@
8
8
  * whose final crumb links to the page it is on teaches a reader that the
9
9
  * control does nothing.
10
10
  *
11
+ * THE HEADING IS WHERE A PAGE SENDS FOCUS when the control holding it goes
12
+ * away (a removed card, a closed view). It is a reading position, not a
13
+ * control: focusable by script only (`tabIndex={-1}`), never a tab stop, and
14
+ * drawn with no ring.
15
+ *
11
16
  * A PAGE WHOSE SUBJECT CAN BE SWITCHED draws its control as that heading's
12
17
  * words (`current`): a switcher's button names the project the page is about
13
18
  * and opens the list of the others, so the reader changes the subject where
@@ -1,4 +1,4 @@
1
- export { Breadcrumb } from '../chunk-LHCEPSWP.js';
1
+ export { Breadcrumb } from '../chunk-NNW5MZGO.js';
2
2
  import '../chunk-HBDA76EZ.js';
3
3
  import '../chunk-XLMURU75.js';
4
4
  import '../chunk-WSIJDWUG.js';
@@ -169,6 +169,13 @@ a.crewlet-breadcrumb__crumb:focus-visible {
169
169
  line-height: inherit;
170
170
  }
171
171
 
172
+ /* A READING POSITION, focused by script only (see Breadcrumb.tsx): no ring,
173
+ since a ring says a reader can act on it. The outline stays, transparent,
174
+ so forced colours still paints one. */
175
+ .crewlet-breadcrumb__here:focus-visible {
176
+ outline-color: transparent;
177
+ }
178
+
172
179
  /*
173
180
  * AND IT NEVER COLLAPSES TO NOTHING: a floor of a few characters keeps an
174
181
  * ellipsised stub, which is what tells a reader the trail has a last part at
@@ -25,6 +25,8 @@ export interface WorkingLineLabels {
25
25
  others: (count: number) => string;
26
26
  /** The first two of three or more names, before `others`: "A, B". */
27
27
  series: (names: readonly string[]) => string;
28
+ /** Three or more agents, counted, where the line is too narrow for names: "6 agents". */
29
+ agents: (count: number) => string;
28
30
  /** Queued agents beside the ones at work: "1 queued". */
29
31
  queuedCount: (count: number) => string;
30
32
  /** Names a list: "A, B and C". */
@@ -53,6 +55,8 @@ export interface WorkingSentence {
53
55
  names: string;
54
56
  /** "and 4 others" after three or more names; empty otherwise. Drawn whole where the names truncate. */
55
57
  others: string;
58
+ /** "6 agents", for three or more, drawn in place of the names where the line is narrow; empty otherwise. */
59
+ count: string;
56
60
  /** "is thinking", "are working", "are queued". */
57
61
  verb: string;
58
62
  /** "1 queued", beside agents at work; empty otherwise. */
@@ -85,6 +89,10 @@ export declare function workingAnnouncement(agents: readonly WorkingAgent[], ove
85
89
  * agents does not move at all. Under reduced motion every part holds still
86
90
  * and the words carry the meaning.
87
91
  *
92
+ * NARROW COLUMNS. Only the names give way, so the count of the rest, the verb
93
+ * and the dots always read whole; on a line under 21rem, three or more agents
94
+ * are counted ("6 agents are working") rather than named by a few letters.
95
+ *
88
96
  * DETAIL ON DEMAND. With more than one agent, a chevron at the line's end
89
97
  * (its target the whole line) opens one compact line per agent, its face,
90
98
  * name and own phrase, queued agents included.
@@ -1,4 +1,4 @@
1
- export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-RNIPNSCH.js';
1
+ export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-QP5XZ3QZ.js';
2
2
  import '../chunk-5SMYKL3D.js';
3
3
  import '../chunk-XZY6S3UC.js';
4
4
  import '../chunk-RRRK2KB6.js';
@@ -8,8 +8,13 @@
8
8
  .crewlet-working-line {
9
9
  /* The ground the faces' cut-out is drawn in: the transcript's. */
10
10
  --crewlet-avatar-stack-ground: var(--crewlet-chat-ground);
11
+ /* Its own width decides how it words three or more agents (below), so it
12
+ takes its column's width rather than its words'. */
13
+ container: crewlet-working-line / inline-size;
11
14
  display: flex;
15
+ box-sizing: border-box;
12
16
  flex-direction: column;
17
+ width: 100%;
13
18
  min-width: 0;
14
19
  max-width: 100%;
15
20
  color: var(--color-text-secondary);
@@ -24,12 +29,14 @@
24
29
  display: contents;
25
30
  }
26
31
 
27
- /* One line as tall as its 20px faces, never wider than its column. */
32
+ /* One line as tall as its 20px faces, as wide as its words and never wider
33
+ than its column: the toggle's target is the words, not the empty column. */
28
34
  .crewlet-working-line__summary {
29
35
  position: relative;
30
36
  display: flex;
31
37
  align-items: center;
32
38
  gap: var(--spacing-2);
39
+ width: fit-content;
33
40
  min-width: 0;
34
41
  max-width: 100%;
35
42
  min-height: 20px;
@@ -79,6 +86,24 @@
79
86
  text-overflow: ellipsis;
80
87
  }
81
88
 
89
+ /* "6 agents": in place of the names where the line is narrow (below). */
90
+ .crewlet-working-line__count {
91
+ display: none;
92
+ }
93
+
94
+ /* Under 21rem three or more names would be cut to a few letters, so they are
95
+ counted instead: "6 agents are working". */
96
+ @container crewlet-working-line (max-width: 21rem) {
97
+ .crewlet-working-line__who.is-counted > .crewlet-working-line__names,
98
+ .crewlet-working-line__who.is-counted > .crewlet-working-line__others {
99
+ display: none;
100
+ }
101
+
102
+ .crewlet-working-line__who.is-counted > .crewlet-working-line__count {
103
+ display: block;
104
+ }
105
+ }
106
+
82
107
  .crewlet-working-line__verb {
83
108
  flex: none;
84
109
  animation: crewlet-working-line-phase var(--motion-duration-slow) var(--motion-easing-out);
@@ -1,16 +1,16 @@
1
- import { WorkingLine, BouncingDots } from './chunk-RNIPNSCH.js';
1
+ import { BouncingDots, WorkingLine } from './chunk-QP5XZ3QZ.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './ChatScale-6NM4TP7R.css';
4
- import './ActivityLine-TIMSOQGU.css';
4
+ import './ActivityLine-6RZHUYAC.css';
5
5
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
6
6
 
7
7
  function ActivityLine({ typing, agents, workingLabels, className, ...rest }) {
8
8
  return /* @__PURE__ */ jsxs("div", { ...rest, className: cx("crewlet-activity-line", className), children: [
9
- /* @__PURE__ */ jsx(WorkingLine, { agents: agents ?? [], labels: workingLabels, className: "crewlet-activity-line__working" }),
10
9
  /* @__PURE__ */ jsx("span", { className: "crewlet-activity-line__typing", role: "status", children: typing ? /* @__PURE__ */ jsxs(Fragment, { children: [
11
10
  typing,
12
11
  /* @__PURE__ */ jsx(BouncingDots, {})
13
- ] }) : null })
12
+ ] }) : null }),
13
+ agents === void 0 ? null : /* @__PURE__ */ jsx(WorkingLine, { agents, labels: workingLabels, className: "crewlet-activity-line__working" })
14
14
  ] });
15
15
  }
16
16
 
@@ -1,7 +1,7 @@
1
1
  import { KeyChip } from './chunk-HBDA76EZ.js';
2
2
  import { Text } from './chunk-XLMURU75.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
- import './Breadcrumb-4RWP72R6.css';
4
+ import './Breadcrumb-SENMIAG2.css';
5
5
  import { useRef, useState, useLayoutEffect } from 'react';
6
6
  import { ChevronRightGlyph } from '@crewlethq/icons/glyphs';
7
7
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -43,6 +43,7 @@ function Breadcrumb({ crumbs, current, label = "Breadcrumb", className, style, .
43
43
  {
44
44
  className: cx("crewlet-breadcrumb__here", current !== void 0 && "crewlet-breadcrumb__here--control", face),
45
45
  "aria-current": "page",
46
+ tabIndex: -1,
46
47
  children: current !== void 0 ? current : words
47
48
  }
48
49
  ) : crumb.href ? /* @__PURE__ */ jsx("a", { className: cx("crewlet-breadcrumb__crumb", face), href: crumb.href, children: words }) : (
@@ -3,7 +3,7 @@ import { Avatar } from './chunk-XZY6S3UC.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './ChatScale-6NM4TP7R.css';
6
- import './WorkingLine-NUFSSAOL.css';
6
+ import './WorkingLine-SHD2AZQ2.css';
7
7
  import { useState, useId } from 'react';
8
8
  import { ChevronDownGlyph } from '@crewlethq/icons/glyphs';
9
9
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -22,10 +22,12 @@ var WORKING_LINE_LABELS = {
22
22
  queuedOne: "is queued",
23
23
  others: (count) => `and ${count} ${count === 1 ? "other" : "others"}`,
24
24
  series: (names) => names.join(", "),
25
+ agents: (count) => `${count} agents`,
25
26
  queuedCount: (count) => `${count} queued`,
26
27
  list: (names) => names.length < 2 ? names.join("") : `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}`,
27
28
  detail: "Each agent at work"
28
29
  };
30
+ var FACE = 20;
29
31
  function phrase(status) {
30
32
  return (status ?? "").trim().replace(/(?:\.{3}|…)$/u, "").trimEnd();
31
33
  }
@@ -40,9 +42,10 @@ function workingSentence(agents, overrides) {
40
42
  const counted = lead.length > 2;
41
43
  const names = counted ? labels.series(lead.slice(0, 2).map((agent) => agent.name)) : labels.list(lead.map((agent) => agent.name));
42
44
  const others = counted ? labels.others(lead.length - 2) : "";
45
+ const count = counted ? labels.agents(lead.length) : "";
43
46
  const verb = lead.length === 1 ? agentPhrase(lead[0], labels) : active.length > 0 ? labels.working : labels.queued;
44
47
  const queued = active.length > 0 && waiting.length > 0 ? labels.queuedCount(waiting.length) : "";
45
- return { names, others, verb, queued, everyone: !counted && queued === "", waiting: active.length === 0 };
48
+ return { names, others, count, verb, queued, everyone: !counted && queued === "", waiting: active.length === 0 };
46
49
  }
47
50
  function workingAnnouncement(agents, overrides) {
48
51
  const labels = overrides ? { ...WORKING_LINE_LABELS, ...overrides } : WORKING_LINE_LABELS;
@@ -96,17 +99,18 @@ function WorkingLine({
96
99
  className: "crewlet-working-line__faces",
97
100
  members: ordered,
98
101
  max,
99
- size: "xs",
102
+ size: FACE,
100
103
  decorative: sentence.everyone,
101
104
  label: labels.list(ordered.map((agent) => agent.name))
102
105
  }
103
106
  ),
104
107
  /* @__PURE__ */ jsxs("span", { className: "crewlet-working-line__text", children: [
105
- /* @__PURE__ */ jsxs("span", { className: "crewlet-working-line__who", children: [
108
+ /* @__PURE__ */ jsxs("span", { className: cx("crewlet-working-line__who", sentence.count && "is-counted"), children: [
106
109
  /* @__PURE__ */ jsx("span", { className: "crewlet-working-line__names", children: sentence.names }),
107
110
  sentence.others ? /* @__PURE__ */ jsxs(Fragment, { children: [
108
111
  " ",
109
- /* @__PURE__ */ jsx("span", { className: "crewlet-working-line__others", children: sentence.others })
112
+ /* @__PURE__ */ jsx("span", { className: "crewlet-working-line__others", children: sentence.others }),
113
+ /* @__PURE__ */ jsx("span", { className: "crewlet-working-line__count", children: sentence.count })
110
114
  ] }) : null
111
115
  ] }),
112
116
  " ",
@@ -141,7 +145,7 @@ function WorkingLine({
141
145
  src: agent.src,
142
146
  character: agent.character,
143
147
  hue: agent.hue,
144
- size: "xs",
148
+ size: FACE,
145
149
  decorative: true
146
150
  }
147
151
  ),
@@ -23,9 +23,9 @@ export { StatusLegend } from '../chunk-5LIWAA7S.js';
23
23
  export { StatusLine } from '../chunk-435WY2WT.js';
24
24
  export { Switcher } from '../chunk-QMEKGAEA.js';
25
25
  export { SlideGrid } from '../chunk-73L3774J.js';
26
- export { SOURCE_EDITOR_KEYS, SourceEditor, lineStart } from '../chunk-S656HY4W.js';
27
26
  export { StatCard } from '../chunk-2YADDY4A.js';
28
27
  export { StatGroup } from '../chunk-OUD75UB2.js';
28
+ export { SOURCE_EDITOR_KEYS, SourceEditor, lineStart } from '../chunk-S656HY4W.js';
29
29
  export { Statement } from '../chunk-MZJKPTA5.js';
30
30
  export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-2NUQBD3O.js';
31
31
  export { TagGroup } from '../chunk-FOUIZS7Q.js';
@@ -36,10 +36,10 @@ export { SlideFilmstrip } from '../chunk-DRI6OXWY.js';
36
36
  export { SegmentedMeter, segmentedMeterLabel } from '../chunk-4AK52VHB.js';
37
37
  export { SelectionBar } from '../chunk-FZY4TTR4.js';
38
38
  export { SEND_BUTTON_LABELS, SendButton } from '../chunk-T75L3PFN.js';
39
- export { SettingsTable, SettingsTableRow } from '../chunk-SOYPCCSJ.js';
40
39
  export { SetupWizard } from '../chunk-YXY6B5VB.js';
41
- export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-UJ7SHDE7.js';
40
+ export { SettingsTable, SettingsTableRow } from '../chunk-SOYPCCSJ.js';
42
41
  export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-QLGZBN6A.js';
42
+ export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-UJ7SHDE7.js';
43
43
  export { canonicalMarkdown, roundTripMarkdown } from '../chunk-GBASM5EV.js';
44
44
  import '../chunk-7CSTEH5I.js';
45
45
  export { RoomRow } from '../chunk-7MB7RUZZ.js';
@@ -47,8 +47,8 @@ export { RUN_STATES, RunChip } from '../chunk-L6SYLG3F.js';
47
47
  export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from '../chunk-ANIJQ25E.js';
48
48
  export { SearchTrigger } from '../chunk-ERNT3UTB.js';
49
49
  export { SectionFrame, SectionFrameBody, SectionFrameNav } from '../chunk-4KU5LLXU.js';
50
- export { RecordChip, RecordChipList } from '../chunk-GMQ54OQF.js';
51
50
  export { REFUSAL_CARD_LABELS, RefusalCard } from '../chunk-PMP2WNF4.js';
51
+ export { RecordChip, RecordChipList } from '../chunk-GMQ54OQF.js';
52
52
  export { RelatedRow } from '../chunk-AJCPRBYJ.js';
53
53
  export { RESULT_TABLE_CARD_LABELS, RESULT_TABLE_COLLAPSED_ROWS, RESULT_TABLE_MAX_ROWS, ResultTableCard } from '../chunk-IHJRLVU3.js';
54
54
  export { Table } from '../chunk-YGN4SBNP.js';
@@ -77,8 +77,8 @@ export { PEOPLE_RAIL_LABELS, PeopleRail, peopleRailKey } from '../chunk-BGFWCOFR
77
77
  import '../chunk-CENOOTAV.js';
78
78
  export { PinTile } from '../chunk-L4YD6SVT.js';
79
79
  export { NewItemsNotice } from '../chunk-NCQC5Y4E.js';
80
- export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from '../chunk-GG5CFBSE.js';
81
80
  export { FactLine, ObjectHeader, SetByLine } from '../chunk-PYVP4LA5.js';
81
+ export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from '../chunk-GG5CFBSE.js';
82
82
  export { OrgNodeDisclosure, OrgNodeLabel, OrgNodeLead } from '../chunk-5AORKQ5Q.js';
83
83
  export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-R4PZUVPD.js';
84
84
  export { TreeGrid } from '../chunk-TXTYTIIH.js';
@@ -124,8 +124,8 @@ export { DEFAULT_FRAME_THEME, EXTERNAL_URL_MAX, FRAME_BRIDGE, FRAME_MESSAGE, FRA
124
124
  export { DENSITY_PREFERENCES, PALETTE_ID, THEME_PREFERENCES, applyDensity, applyPalette, applyTheme, isDensityPreference, isPaletteId, isThemePreference } from '../chunk-ZXXDZJQN.js';
125
125
  export { IDLE_AFTER_MS, useFullscreen, useIdle } from '../chunk-W5XCNEZC.js';
126
126
  export { EntityChip } from '../chunk-VDQGWPGQ.js';
127
- export { ErrorBoundary } from '../chunk-T63HK6T5.js';
128
127
  export { EntityList } from '../chunk-VRDLNMST.js';
128
+ export { ErrorBoundary } from '../chunk-T63HK6T5.js';
129
129
  export { Eyebrow } from '../chunk-RK4XPHVG.js';
130
130
  export { FactList } from '../chunk-OYV7BFRC.js';
131
131
  export { FileDrop, FilePickButton, droppedFiles, pickedFiles } from '../chunk-BLFHFMXQ.js';
@@ -168,8 +168,8 @@ export { CONFLICT_NOTE_LABELS, ConflictNote } from '../chunk-AXMXXAGB.js';
168
168
  export { Container } from '../chunk-HJO4WCH6.js';
169
169
  export { CHIP_FIELD_LABELS, ChipField } from '../chunk-YUW4DD2Z.js';
170
170
  export { ChoiceButtons } from '../chunk-AHW3K3SH.js';
171
- export { ChoiceCards } from '../chunk-FHPHRIPO.js';
172
171
  export { ChoiceList } from '../chunk-XU7RQNT6.js';
172
+ export { ChoiceCards } from '../chunk-FHPHRIPO.js';
173
173
  export { CodeBlock } from '../chunk-3GF2PTYZ.js';
174
174
  export { ColorChip } from '../chunk-C6T4VBEY.js';
175
175
  export { ColorField } from '../chunk-M7EALYXZ.js';
@@ -178,8 +178,8 @@ export { CopyButton, Copyable } from '../chunk-T2RRTICC.js';
178
178
  export { useClipboard, writeClipboard } from '../chunk-STJ7QBC3.js';
179
179
  export { useOutcome } from '../chunk-DTIW4CHZ.js';
180
180
  import '../chunk-3L5NHASN.js';
181
- export { ActivityStrip, BarList, ChartEmpty, ChartTooltip, DATA_COLORS, DATA_COLOR_OTHER, Histogram, Legend, Sparkline, StackedBar, StackedColumns, TimeSeries, dataColor, histogramTicks, niceScale, useChartHover } from '../chunk-MNTN5ESE.js';
182
181
  export { ChatDay, ChatDayPill } from '../chunk-CHB7T3PT.js';
182
+ export { ActivityStrip, BarList, ChartEmpty, ChartTooltip, DATA_COLORS, DATA_COLOR_OTHER, Histogram, Legend, Sparkline, StackedBar, StackedColumns, TimeSeries, dataColor, histogramTicks, niceScale, useChartHover } from '../chunk-MNTN5ESE.js';
183
183
  export { ChatDivider } from '../chunk-RTDFRFTF.js';
184
184
  import '../chunk-Q5LDZPFF.js';
185
185
  export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-5FOJLJYN.js';
@@ -200,7 +200,7 @@ export { BrandSample } from '../chunk-IJCMOAM3.js';
200
200
  export { BrandScope, brandScopeInputs } from '../chunk-X7WEE3EK.js';
201
201
  import '../chunk-5SGHW42B.js';
202
202
  import '../chunk-7W3LYIOC.js';
203
- export { Breadcrumb } from '../chunk-LHCEPSWP.js';
203
+ export { Breadcrumb } from '../chunk-NNW5MZGO.js';
204
204
  export { KeyChip } from '../chunk-HBDA76EZ.js';
205
205
  export { BRIEF_CARD_LABELS, BRIEF_CARD_MAX_FOLLOW_UPS, BRIEF_CARD_MAX_NEEDS, BRIEF_CARD_MAX_POINTS, BriefCard } from '../chunk-P5AOTCGQ.js';
206
206
  export { SuggestionList, SuggestionRow } from '../chunk-IR3OWPAZ.js';
@@ -213,13 +213,13 @@ import '../chunk-X4HBZSXA.js';
213
213
  export { ASIDE_LAYOUT_SPLIT_REM, AsideLayout } from '../chunk-7UQQEUOT.js';
214
214
  export { ATTACHMENT_CHIP_LABELS, AttachmentChip } from '../chunk-GZSEIFWB.js';
215
215
  export { Tag } from '../chunk-SJ3EUCFD.js';
216
- export { ATTENTION_LIST_LABELS, AttentionList } from '../chunk-3SAJXMM6.js';
217
216
  export { AuthLayout } from '../chunk-CVXQWNSM.js';
218
217
  export { AvatarPicker } from '../chunk-32QH3CAO.js';
219
218
  export { HuePicker, HueSwatch } from '../chunk-QVNEQSOL.js';
220
219
  export { Popover } from '../chunk-KDRJZWE3.js';
221
220
  export { CHARACTER_PICKER_COLUMNS, CharacterPicker } from '../chunk-S4JRQJEP.js';
222
221
  export { NODE_HUES, NODE_HUE_NAMES, isNodeHue } from '../chunk-AYKXMIOR.js';
222
+ export { ATTENTION_LIST_LABELS, AttentionList } from '../chunk-3SAJXMM6.js';
223
223
  export { BrandChip } from '../chunk-UH44L7OJ.js';
224
224
  export { BrandLockup } from '../chunk-KXWJJWBD.js';
225
225
  export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-TEOJ7OKD.js';
@@ -262,11 +262,11 @@ export { Menu } from '../chunk-QHUKJN33.js';
262
262
  export { ACCESS_DENIED_REASONS, AccessDeniedCard } from '../chunk-QTMUKRTN.js';
263
263
  export { EmptyState } from '../chunk-PPUR46MK.js';
264
264
  export { Accordion, AccordionItem } from '../chunk-3QEAANRP.js';
265
- export { ActivityLine } from '../chunk-ZLCPU4HW.js';
266
- export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-RNIPNSCH.js';
265
+ export { ACTION_CARD_GROUND, ActionCard, ActionCardRow } from '../chunk-OM2LABPS.js';
266
+ export { ActivityLine } from '../chunk-EXKJIL65.js';
267
+ export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-QP5XZ3QZ.js';
267
268
  export { AvatarStack, avatarStackLabel } from '../chunk-5SMYKL3D.js';
268
269
  export { AVATAR_CHARACTER_FULL_DETAIL, AVATAR_CORNER_RANGE, AVATAR_CORNER_RATIO, AVATAR_SIZES, AVATAR_STATUSES, AVATAR_STATUS_LABELS, Avatar, avatarCorner, avatarInitialsName, avatarPixels, avatarTint, getInitials } from '../chunk-XZY6S3UC.js';
269
- export { ACTION_CARD_GROUND, ActionCard, ActionCardRow } from '../chunk-OM2LABPS.js';
270
270
  export { ADD_PILL_MS, AddPill } from '../chunk-5W3EYO5Q.js';
271
271
  export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-5SBMYPWG.js';
272
272
  export { Timeline, TimelineItem } from '../chunk-XDUXAQIS.js';
package/dist/index.js CHANGED
@@ -23,9 +23,9 @@ export { StatusLegend } from './chunk-5LIWAA7S.js';
23
23
  export { StatusLine } from './chunk-435WY2WT.js';
24
24
  export { Switcher } from './chunk-QMEKGAEA.js';
25
25
  export { SlideGrid } from './chunk-73L3774J.js';
26
- export { SOURCE_EDITOR_KEYS, SourceEditor, lineStart } from './chunk-S656HY4W.js';
27
26
  export { StatCard } from './chunk-2YADDY4A.js';
28
27
  export { StatGroup } from './chunk-OUD75UB2.js';
28
+ export { SOURCE_EDITOR_KEYS, SourceEditor, lineStart } from './chunk-S656HY4W.js';
29
29
  export { Statement } from './chunk-MZJKPTA5.js';
30
30
  export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from './chunk-2NUQBD3O.js';
31
31
  export { TagGroup } from './chunk-FOUIZS7Q.js';
@@ -36,10 +36,10 @@ export { SlideFilmstrip } from './chunk-DRI6OXWY.js';
36
36
  export { SegmentedMeter, segmentedMeterLabel } from './chunk-4AK52VHB.js';
37
37
  export { SelectionBar } from './chunk-FZY4TTR4.js';
38
38
  export { SEND_BUTTON_LABELS, SendButton } from './chunk-T75L3PFN.js';
39
- export { SettingsTable, SettingsTableRow } from './chunk-SOYPCCSJ.js';
40
39
  export { SetupWizard } from './chunk-YXY6B5VB.js';
41
- export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from './chunk-UJ7SHDE7.js';
40
+ export { SettingsTable, SettingsTableRow } from './chunk-SOYPCCSJ.js';
42
41
  export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from './chunk-QLGZBN6A.js';
42
+ export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from './chunk-UJ7SHDE7.js';
43
43
  export { canonicalMarkdown, roundTripMarkdown } from './chunk-GBASM5EV.js';
44
44
  import './chunk-7CSTEH5I.js';
45
45
  export { RoomRow } from './chunk-7MB7RUZZ.js';
@@ -47,8 +47,8 @@ export { RUN_STATES, RunChip } from './chunk-L6SYLG3F.js';
47
47
  export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from './chunk-ANIJQ25E.js';
48
48
  export { SearchTrigger } from './chunk-ERNT3UTB.js';
49
49
  export { SectionFrame, SectionFrameBody, SectionFrameNav } from './chunk-4KU5LLXU.js';
50
- export { RecordChip, RecordChipList } from './chunk-GMQ54OQF.js';
51
50
  export { REFUSAL_CARD_LABELS, RefusalCard } from './chunk-PMP2WNF4.js';
51
+ export { RecordChip, RecordChipList } from './chunk-GMQ54OQF.js';
52
52
  export { RelatedRow } from './chunk-AJCPRBYJ.js';
53
53
  export { RESULT_TABLE_CARD_LABELS, RESULT_TABLE_COLLAPSED_ROWS, RESULT_TABLE_MAX_ROWS, ResultTableCard } from './chunk-IHJRLVU3.js';
54
54
  export { Table } from './chunk-YGN4SBNP.js';
@@ -77,8 +77,8 @@ export { PEOPLE_RAIL_LABELS, PeopleRail, peopleRailKey } from './chunk-BGFWCOFR.
77
77
  import './chunk-CENOOTAV.js';
78
78
  export { PinTile } from './chunk-L4YD6SVT.js';
79
79
  export { NewItemsNotice } from './chunk-NCQC5Y4E.js';
80
- export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from './chunk-GG5CFBSE.js';
81
80
  export { FactLine, ObjectHeader, SetByLine } from './chunk-PYVP4LA5.js';
81
+ export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from './chunk-GG5CFBSE.js';
82
82
  export { OrgNodeDisclosure, OrgNodeLabel, OrgNodeLead } from './chunk-5AORKQ5Q.js';
83
83
  export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from './chunk-R4PZUVPD.js';
84
84
  export { TreeGrid } from './chunk-TXTYTIIH.js';
@@ -124,8 +124,8 @@ export { DEFAULT_FRAME_THEME, EXTERNAL_URL_MAX, FRAME_BRIDGE, FRAME_MESSAGE, FRA
124
124
  export { DENSITY_PREFERENCES, PALETTE_ID, THEME_PREFERENCES, applyDensity, applyPalette, applyTheme, isDensityPreference, isPaletteId, isThemePreference } from './chunk-ZXXDZJQN.js';
125
125
  export { IDLE_AFTER_MS, useFullscreen, useIdle } from './chunk-W5XCNEZC.js';
126
126
  export { EntityChip } from './chunk-VDQGWPGQ.js';
127
- export { ErrorBoundary } from './chunk-T63HK6T5.js';
128
127
  export { EntityList } from './chunk-VRDLNMST.js';
128
+ export { ErrorBoundary } from './chunk-T63HK6T5.js';
129
129
  export { Eyebrow } from './chunk-RK4XPHVG.js';
130
130
  export { FactList } from './chunk-OYV7BFRC.js';
131
131
  export { FileDrop, FilePickButton, droppedFiles, pickedFiles } from './chunk-BLFHFMXQ.js';
@@ -168,8 +168,8 @@ export { CONFLICT_NOTE_LABELS, ConflictNote } from './chunk-AXMXXAGB.js';
168
168
  export { Container } from './chunk-HJO4WCH6.js';
169
169
  export { CHIP_FIELD_LABELS, ChipField } from './chunk-YUW4DD2Z.js';
170
170
  export { ChoiceButtons } from './chunk-AHW3K3SH.js';
171
- export { ChoiceCards } from './chunk-FHPHRIPO.js';
172
171
  export { ChoiceList } from './chunk-XU7RQNT6.js';
172
+ export { ChoiceCards } from './chunk-FHPHRIPO.js';
173
173
  export { CodeBlock } from './chunk-3GF2PTYZ.js';
174
174
  export { ColorChip } from './chunk-C6T4VBEY.js';
175
175
  export { ColorField } from './chunk-M7EALYXZ.js';
@@ -178,8 +178,8 @@ export { CopyButton, Copyable } from './chunk-T2RRTICC.js';
178
178
  export { useClipboard, writeClipboard } from './chunk-STJ7QBC3.js';
179
179
  export { useOutcome } from './chunk-DTIW4CHZ.js';
180
180
  import './chunk-3L5NHASN.js';
181
- export { ActivityStrip, BarList, ChartEmpty, ChartTooltip, DATA_COLORS, DATA_COLOR_OTHER, Histogram, Legend, Sparkline, StackedBar, StackedColumns, TimeSeries, dataColor, histogramTicks, niceScale, useChartHover } from './chunk-MNTN5ESE.js';
182
181
  export { ChatDay, ChatDayPill } from './chunk-CHB7T3PT.js';
182
+ export { ActivityStrip, BarList, ChartEmpty, ChartTooltip, DATA_COLORS, DATA_COLOR_OTHER, Histogram, Legend, Sparkline, StackedBar, StackedColumns, TimeSeries, dataColor, histogramTicks, niceScale, useChartHover } from './chunk-MNTN5ESE.js';
183
183
  export { ChatDivider } from './chunk-RTDFRFTF.js';
184
184
  import './chunk-Q5LDZPFF.js';
185
185
  export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from './chunk-5FOJLJYN.js';
@@ -200,7 +200,7 @@ export { BrandSample } from './chunk-IJCMOAM3.js';
200
200
  export { BrandScope, brandScopeInputs } from './chunk-X7WEE3EK.js';
201
201
  import './chunk-5SGHW42B.js';
202
202
  import './chunk-7W3LYIOC.js';
203
- export { Breadcrumb } from './chunk-LHCEPSWP.js';
203
+ export { Breadcrumb } from './chunk-NNW5MZGO.js';
204
204
  export { KeyChip } from './chunk-HBDA76EZ.js';
205
205
  export { BRIEF_CARD_LABELS, BRIEF_CARD_MAX_FOLLOW_UPS, BRIEF_CARD_MAX_NEEDS, BRIEF_CARD_MAX_POINTS, BriefCard } from './chunk-P5AOTCGQ.js';
206
206
  export { SuggestionList, SuggestionRow } from './chunk-IR3OWPAZ.js';
@@ -213,13 +213,13 @@ import './chunk-X4HBZSXA.js';
213
213
  export { ASIDE_LAYOUT_SPLIT_REM, AsideLayout } from './chunk-7UQQEUOT.js';
214
214
  export { ATTACHMENT_CHIP_LABELS, AttachmentChip } from './chunk-GZSEIFWB.js';
215
215
  export { Tag } from './chunk-SJ3EUCFD.js';
216
- export { ATTENTION_LIST_LABELS, AttentionList } from './chunk-3SAJXMM6.js';
217
216
  export { AuthLayout } from './chunk-CVXQWNSM.js';
218
217
  export { AvatarPicker } from './chunk-32QH3CAO.js';
219
218
  export { HuePicker, HueSwatch } from './chunk-QVNEQSOL.js';
220
219
  export { Popover } from './chunk-KDRJZWE3.js';
221
220
  export { CHARACTER_PICKER_COLUMNS, CharacterPicker } from './chunk-S4JRQJEP.js';
222
221
  export { NODE_HUES, NODE_HUE_NAMES, isNodeHue } from './chunk-AYKXMIOR.js';
222
+ export { ATTENTION_LIST_LABELS, AttentionList } from './chunk-3SAJXMM6.js';
223
223
  export { BrandChip } from './chunk-UH44L7OJ.js';
224
224
  export { BrandLockup } from './chunk-KXWJJWBD.js';
225
225
  export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from './chunk-TEOJ7OKD.js';
@@ -262,11 +262,11 @@ export { Menu } from './chunk-QHUKJN33.js';
262
262
  export { ACCESS_DENIED_REASONS, AccessDeniedCard } from './chunk-QTMUKRTN.js';
263
263
  export { EmptyState } from './chunk-PPUR46MK.js';
264
264
  export { Accordion, AccordionItem } from './chunk-3QEAANRP.js';
265
- export { ActivityLine } from './chunk-ZLCPU4HW.js';
266
- export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from './chunk-RNIPNSCH.js';
265
+ export { ACTION_CARD_GROUND, ActionCard, ActionCardRow } from './chunk-OM2LABPS.js';
266
+ export { ActivityLine } from './chunk-EXKJIL65.js';
267
+ export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from './chunk-QP5XZ3QZ.js';
267
268
  export { AvatarStack, avatarStackLabel } from './chunk-5SMYKL3D.js';
268
269
  export { AVATAR_CHARACTER_FULL_DETAIL, AVATAR_CORNER_RANGE, AVATAR_CORNER_RATIO, AVATAR_SIZES, AVATAR_STATUSES, AVATAR_STATUS_LABELS, Avatar, avatarCorner, avatarInitialsName, avatarPixels, avatarTint, getInitials } from './chunk-XZY6S3UC.js';
269
- export { ACTION_CARD_GROUND, ActionCard, ActionCardRow } from './chunk-OM2LABPS.js';
270
270
  export { ADD_PILL_MS, AddPill } from './chunk-5W3EYO5Q.js';
271
271
  export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from './chunk-5SBMYPWG.js';
272
272
  export { Timeline, TimelineItem } from './chunk-XDUXAQIS.js';
package/dist/styles.css CHANGED
@@ -242,7 +242,7 @@
242
242
  }
243
243
 
244
244
 
245
- /* ActivityLine-TIMSOQGU.css */
245
+ /* ActivityLine-6RZHUYAC.css */
246
246
  /*
247
247
  * Who is typing and which agents are working, under a composer, in the meta
248
248
  * step and the tertiary ink.
@@ -264,6 +264,12 @@
264
264
  max-width: 100%;
265
265
  }
266
266
 
267
+ /* The working line takes the room the typing before it leaves, and wraps
268
+ under it below 16rem. */
269
+ .crewlet-activity-line > .crewlet-working-line {
270
+ flex: 1 1 16rem;
271
+ }
272
+
267
273
  .crewlet-activity-line__typing {
268
274
  display: inline-flex;
269
275
  align-items: center;
@@ -6402,7 +6408,7 @@ button.crewlet-avatar-picker:hover .crewlet-avatar-picker__pip {
6402
6408
  }
6403
6409
 
6404
6410
 
6405
- /* Breadcrumb-4RWP72R6.css */
6411
+ /* Breadcrumb-SENMIAG2.css */
6406
6412
  /*
6407
6413
  * The trail in a top bar.
6408
6414
  *
@@ -6574,6 +6580,13 @@ a.crewlet-breadcrumb__crumb:focus-visible {
6574
6580
  line-height: inherit;
6575
6581
  }
6576
6582
 
6583
+ /* A READING POSITION, focused by script only (see Breadcrumb.tsx): no ring,
6584
+ since a ring says a reader can act on it. The outline stays, transparent,
6585
+ so forced colours still paints one. */
6586
+ .crewlet-breadcrumb__here:focus-visible {
6587
+ outline-color: transparent;
6588
+ }
6589
+
6577
6590
  /*
6578
6591
  * AND IT NEVER COLLAPSES TO NOTHING: a floor of a few characters keeps an
6579
6592
  * ellipsised stub, which is what tells a reader the trail has a last part at
@@ -49568,7 +49581,7 @@ svg.crewlet-time-window__tick {
49568
49581
  }
49569
49582
 
49570
49583
 
49571
- /* WorkingLine-NUFSSAOL.css */
49584
+ /* WorkingLine-SHD2AZQ2.css */
49572
49585
  /*
49573
49586
  * Every agent at work on one line (WorkingLine.tsx): a stack of faces, one
49574
49587
  * sentence under a sweeping band, bouncing dots, and one line per agent on
@@ -49579,8 +49592,13 @@ svg.crewlet-time-window__tick {
49579
49592
  .crewlet-working-line {
49580
49593
  /* The ground the faces' cut-out is drawn in: the transcript's. */
49581
49594
  --crewlet-avatar-stack-ground: var(--crewlet-chat-ground);
49595
+ /* Its own width decides how it words three or more agents (below), so it
49596
+ takes its column's width rather than its words'. */
49597
+ container: crewlet-working-line / inline-size;
49582
49598
  display: flex;
49599
+ box-sizing: border-box;
49583
49600
  flex-direction: column;
49601
+ width: 100%;
49584
49602
  min-width: 0;
49585
49603
  max-width: 100%;
49586
49604
  color: var(--color-text-secondary);
@@ -49595,12 +49613,14 @@ svg.crewlet-time-window__tick {
49595
49613
  display: contents;
49596
49614
  }
49597
49615
 
49598
- /* One line as tall as its 20px faces, never wider than its column. */
49616
+ /* One line as tall as its 20px faces, as wide as its words and never wider
49617
+ than its column: the toggle's target is the words, not the empty column. */
49599
49618
  .crewlet-working-line__summary {
49600
49619
  position: relative;
49601
49620
  display: flex;
49602
49621
  align-items: center;
49603
49622
  gap: var(--spacing-2);
49623
+ width: fit-content;
49604
49624
  min-width: 0;
49605
49625
  max-width: 100%;
49606
49626
  min-height: 20px;
@@ -49650,6 +49670,24 @@ svg.crewlet-time-window__tick {
49650
49670
  text-overflow: ellipsis;
49651
49671
  }
49652
49672
 
49673
+ /* "6 agents": in place of the names where the line is narrow (below). */
49674
+ .crewlet-working-line__count {
49675
+ display: none;
49676
+ }
49677
+
49678
+ /* Under 21rem three or more names would be cut to a few letters, so they are
49679
+ counted instead: "6 agents are working". */
49680
+ @container crewlet-working-line (max-width: 21rem) {
49681
+ .crewlet-working-line__who.is-counted > .crewlet-working-line__names,
49682
+ .crewlet-working-line__who.is-counted > .crewlet-working-line__others {
49683
+ display: none;
49684
+ }
49685
+
49686
+ .crewlet-working-line__who.is-counted > .crewlet-working-line__count {
49687
+ display: block;
49688
+ }
49689
+ }
49690
+
49653
49691
  .crewlet-working-line__verb {
49654
49692
  flex: none;
49655
49693
  animation: crewlet-working-line-phase var(--motion-duration-slow) var(--motion-easing-out);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.113.1",
3
+ "version": "0.114.0",
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.113.1",
46
- "@crewlethq/tokens": "0.113.1",
45
+ "@crewlethq/icons": "0.114.0",
46
+ "@crewlethq/tokens": "0.114.0",
47
47
  "prosemirror-commands": "1.7.2",
48
48
  "prosemirror-gapcursor": "1.4.1",
49
49
  "prosemirror-history": "1.5.1",