@crewlethq/ui 0.111.0 → 0.113.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.
Files changed (173) hide show
  1. package/README.md +1 -1
  2. package/dist/ActivityLine/ActivityLine.d.ts +16 -22
  3. package/dist/ActivityLine/index.js +4 -2
  4. package/dist/ActivityLine-TIMSOQGU.css +32 -0
  5. package/dist/AgentHandoffPanel/index.js +4 -3
  6. package/dist/AppShell/index.js +2 -2
  7. package/dist/ArrangeList/index.js +4 -3
  8. package/dist/ArtifactBar/index.js +4 -4
  9. package/dist/ArtifactCard/index.js +6 -5
  10. package/dist/Avatar/AvatarStack.d.ts +9 -3
  11. package/dist/Avatar/index.js +1 -1
  12. package/dist/AvatarPicker/index.js +8 -8
  13. package/dist/{AvatarStack-EQZZJZ3V.css → AvatarStack-GNEJHEU6.css} +20 -0
  14. package/dist/CharacterPicker/index.js +2 -2
  15. package/dist/ChatDay/ChatDay.d.ts +3 -1
  16. package/dist/ChatDay/index.js +2 -2
  17. package/dist/ChatDivider/ChatDivider.d.ts +8 -1
  18. package/dist/ChatDivider/index.js +1 -1
  19. package/dist/{ChatDivider-7SPCQXUQ.css → ChatDivider-BRODST2E.css} +23 -0
  20. package/dist/ChatMessage/ChatMessage.d.ts +10 -3
  21. package/dist/ChatMessage/index.js +2 -2
  22. package/dist/{ChatMessage-5AMJCGZY.css → ChatMessage-SZGZT7O2.css} +15 -0
  23. package/dist/ChatThread/index.js +2 -2
  24. package/dist/CheckGrid/index.js +4 -3
  25. package/dist/Checkbox/index.js +3 -2
  26. package/dist/ColorField/index.js +3 -2
  27. package/dist/Combobox/index.js +3 -2
  28. package/dist/CommandPalette/index.js +3 -2
  29. package/dist/CommentThread/index.js +6 -5
  30. package/dist/Composer/index.js +3 -2
  31. package/dist/ConfirmField/index.js +3 -2
  32. package/dist/ContrastHelp/index.js +2 -2
  33. package/dist/DataGrid/index.js +4 -3
  34. package/dist/DataTable/index.js +5 -4
  35. package/dist/DataView/index.js +8 -7
  36. package/dist/DateTimePicker/index.js +2 -2
  37. package/dist/DocTabsEditor/index.js +4 -3
  38. package/dist/{Editor-VAEC6MIJ.js → Editor-XT73VTSJ.js} +3 -2
  39. package/dist/EmojiPicker/EmojiPicker.d.ts +23 -5
  40. package/dist/EmojiPicker/index.d.ts +1 -1
  41. package/dist/EmojiPicker/index.js +5 -3
  42. package/dist/EmojiPicker-V6XM56GJ.css +180 -0
  43. package/dist/EntityChip/index.js +1 -1
  44. package/dist/HuePicker/index.js +4 -4
  45. package/dist/ImageUpload/index.js +1 -1
  46. package/dist/Input/index.js +2 -1
  47. package/dist/KeyValueRows/index.js +3 -2
  48. package/dist/Layer/index.d.ts +1 -1
  49. package/dist/Layer/place.d.ts +6 -0
  50. package/dist/ListInput/index.js +3 -2
  51. package/dist/MarkdownEditor/index.js +4 -4
  52. package/dist/MemberPicker/index.js +4 -3
  53. package/dist/MentionMenu/MentionMenu.d.ts +18 -2
  54. package/dist/MentionMenu/index.d.ts +4 -1
  55. package/dist/MentionMenu/index.js +2 -1
  56. package/dist/{MentionMenu-77P7C4F7.css → MentionMenu-AWZSOTNU.css} +45 -1
  57. package/dist/Menu/Menu.d.ts +4 -1
  58. package/dist/Menu/index.js +1 -1
  59. package/dist/{Menu-UY2O4OCZ.css → Menu-PXOAJ4DP.css} +5 -0
  60. package/dist/MergeConflicts/index.js +4 -4
  61. package/dist/MessageActions/index.js +5 -4
  62. package/dist/OrgLabel/index.js +1 -1
  63. package/dist/OrgNode/index.js +1 -1
  64. package/dist/OrgTable/index.js +8 -7
  65. package/dist/PeopleRail/index.js +1 -1
  66. package/dist/Popover/Popover.d.ts +4 -2
  67. package/dist/Popover/index.js +1 -1
  68. package/dist/{Popover-QCINR7WG.css → Popover-EKG6OBZL.css} +5 -0
  69. package/dist/PresenceStack/index.js +1 -1
  70. package/dist/Principal/index.js +1 -1
  71. package/dist/PrincipalPicker/index.js +5 -4
  72. package/dist/ProposalCard/index.js +4 -3
  73. package/dist/ReactionBar/ReactionBar.d.ts +4 -2
  74. package/dist/ReactionBar/index.js +6 -4
  75. package/dist/RecordChip/index.js +2 -2
  76. package/dist/RichEditor/index.js +1 -1
  77. package/dist/SegmentedControl/index.js +3 -3
  78. package/dist/ShareDialog/index.js +2 -2
  79. package/dist/SheetColumnEditor/index.js +8 -7
  80. package/dist/SheetGrid/index.js +5 -5
  81. package/dist/SlideFilmstrip/index.js +2 -2
  82. package/dist/Switcher/index.js +4 -3
  83. package/dist/TableCells/index.js +2 -2
  84. package/dist/Tabs/index.js +2 -2
  85. package/dist/ThemeSwitcher/index.js +4 -4
  86. package/dist/ThreadSummary/ThreadSummary.d.ts +3 -1
  87. package/dist/ThreadSummary/index.d.ts +1 -1
  88. package/dist/ThreadSummary/index.js +3 -3
  89. package/dist/{ThreadSummary-CFAHYY57.css → ThreadSummary-2AFEU6NH.css} +2 -1
  90. package/dist/TimeRangePicker/index.js +6 -5
  91. package/dist/TimeWindowPicker/index.js +4 -3
  92. package/dist/TreeGrid/index.js +5 -4
  93. package/dist/ValueField/index.js +4 -3
  94. package/dist/VersionCompare/index.js +4 -4
  95. package/dist/VersionTimeline/index.js +1 -1
  96. package/dist/WorkingLine/BouncingDots.d.ts +8 -0
  97. package/dist/WorkingLine/WorkingLine.d.ts +97 -0
  98. package/dist/WorkingLine/index.d.ts +5 -0
  99. package/dist/WorkingLine/index.js +5 -0
  100. package/dist/WorkingLine-NUFSSAOL.css +332 -0
  101. package/dist/{chunk-S4AQ7HAA.js → chunk-2NUQBD3O.js} +3 -3
  102. package/dist/{chunk-GMBXRSC5.js → chunk-32QH3CAO.js} +3 -3
  103. package/dist/{chunk-QEGOVWYP.js → chunk-3UFIYOVD.js} +1 -1
  104. package/dist/chunk-47V3ASMW.js +74 -0
  105. package/dist/{chunk-ADIJ6TLF.js → chunk-5FOJLJYN.js} +1 -1
  106. package/dist/{chunk-A2BL2EF6.js → chunk-5G3KASPV.js} +1 -1
  107. package/dist/{chunk-FXRXV6QH.js → chunk-5SBMYPWG.js} +1 -1
  108. package/dist/{chunk-WUCRLA25.js → chunk-5SMYKL3D.js} +9 -3
  109. package/dist/{chunk-NQKHOLC7.js → chunk-6S2Q4DGN.js} +1 -1
  110. package/dist/{chunk-LTNWLZLG.js → chunk-76LJUPDA.js} +2 -2
  111. package/dist/{chunk-ECTHM76P.js → chunk-7TLM7E5N.js} +2 -2
  112. package/dist/{chunk-5272PYQD.js → chunk-BBE656JU.js} +1 -1
  113. package/dist/{chunk-BM76TWJ7.js → chunk-CHB7T3PT.js} +4 -4
  114. package/dist/{chunk-XKU733RV.js → chunk-CJRWESDZ.js} +1 -1
  115. package/dist/{chunk-WIMKLLMH.js → chunk-CTIJTW4R.js} +1 -1
  116. package/dist/{chunk-MV56SO2V.js → chunk-D7NXK77P.js} +1 -1
  117. package/dist/{chunk-XR6IZOLT.js → chunk-DRI6OXWY.js} +1 -1
  118. package/dist/{chunk-E7NTBXXE.js → chunk-DTEDUAEW.js} +1 -1
  119. package/dist/{chunk-RG6X2EQP.js → chunk-DTZ72KVX.js} +2 -2
  120. package/dist/{chunk-TWNOYES7.js → chunk-GFOPTRRY.js} +1 -1
  121. package/dist/{chunk-PH5APLMB.js → chunk-GMQ54OQF.js} +1 -1
  122. package/dist/{chunk-TZNNLLXI.js → chunk-HHRYIXBM.js} +1 -1
  123. package/dist/{chunk-ETFBEHMH.js → chunk-J4OL6KHY.js} +1 -1
  124. package/dist/{chunk-VYUEAMA4.js → chunk-KDRJZWE3.js} +3 -1
  125. package/dist/{chunk-IW7EEYBS.js → chunk-KG3PHAUX.js} +2 -2
  126. package/dist/{chunk-GYLXJ6VC.js → chunk-KVNVLBCB.js} +1 -1
  127. package/dist/{chunk-EBIYEUE3.js → chunk-KYWIUH5R.js} +5 -5
  128. package/dist/{chunk-TDE6MUAQ.js → chunk-LGJJIPYZ.js} +1 -1
  129. package/dist/{chunk-XL6DTL36.js → chunk-M7EALYXZ.js} +1 -1
  130. package/dist/{chunk-L544S4UU.js → chunk-NOP55WRY.js} +107 -44
  131. package/dist/{chunk-WMLXOW7D.js → chunk-P366K4RX.js} +3 -2
  132. package/dist/{chunk-3ZIGF6LK.js → chunk-PBDMJHXV.js} +1 -1
  133. package/dist/chunk-PJV5HVZY.js +67 -0
  134. package/dist/{chunk-57SISFHX.js → chunk-PWB2LWBE.js} +1 -1
  135. package/dist/chunk-Q5LDZPFF.js +2 -0
  136. package/dist/{chunk-JLL7KQV5.js → chunk-QCJ3UBCZ.js} +1 -1
  137. package/dist/{chunk-YBPBSLGY.js → chunk-QHUKJN33.js} +3 -1
  138. package/dist/{chunk-3DUNIA3E.js → chunk-QLGZBN6A.js} +4 -4
  139. package/dist/{chunk-7ZIKXGIJ.js → chunk-QMEKGAEA.js} +2 -2
  140. package/dist/{chunk-TTQOKYTO.js → chunk-QVNEQSOL.js} +1 -1
  141. package/dist/{chunk-OTGWNFBE.js → chunk-RHD46WIZ.js} +1 -1
  142. package/dist/chunk-RNIPNSCH.js +158 -0
  143. package/dist/{chunk-4A75O7NL.js → chunk-RTDFRFTF.js} +8 -3
  144. package/dist/{chunk-6ZC2LPCM.js → chunk-SDYLFZKZ.js} +2 -2
  145. package/dist/{chunk-OIFITGYL.js → chunk-SJNJBXUA.js} +2 -2
  146. package/dist/{chunk-CJNSPA5F.js → chunk-STJPIP3R.js} +1 -1
  147. package/dist/{chunk-HKCOGDXN.js → chunk-TE3OMB3Z.js} +2 -28
  148. package/dist/{chunk-2DXZ2ZJR.js → chunk-TEOJ7OKD.js} +2 -2
  149. package/dist/{chunk-2SHRZ42G.js → chunk-TP7PRSGX.js} +1 -1
  150. package/dist/{chunk-YECS3C4D.js → chunk-V6BEBGO3.js} +2 -2
  151. package/dist/{chunk-LKBJE5J7.js → chunk-VZ42TS3C.js} +1 -1
  152. package/dist/{chunk-PZ4RVNSC.js → chunk-WEZU4DX2.js} +1 -1
  153. package/dist/{chunk-HKJTZG75.js → chunk-Y36N7TB7.js} +1 -1
  154. package/dist/{chunk-SRID7K37.js → chunk-Y3FLNQEE.js} +1 -1
  155. package/dist/{chunk-BHR72Z7M.js → chunk-YD5UCBFV.js} +1 -1
  156. package/dist/{chunk-MWKJEZBY.js → chunk-YE76GTQU.js} +2 -2
  157. package/dist/{chunk-SQSFVBDF.js → chunk-ZGJCVXFU.js} +1 -1
  158. package/dist/{chunk-PGMKJ4OD.js → chunk-ZJVGVTC3.js} +19 -5
  159. package/dist/chunk-ZLCPU4HW.js +17 -0
  160. package/dist/{chunk-EXYO45GN.js → chunk-ZUFV7753.js} +5 -4
  161. package/dist/generated/index.d.ts +1 -0
  162. package/dist/generated/index.js +76 -74
  163. package/dist/index.js +76 -74
  164. package/dist/styles.css +552 -71
  165. package/dist/utils/fieldMirror.d.ts +22 -0
  166. package/package.json +3 -3
  167. package/dist/ActivityLine-AMSERTOB.css +0 -74
  168. package/dist/EmojiPicker-W722WJ5M.css +0 -105
  169. package/dist/chunk-3KLVK655.js +0 -2
  170. package/dist/chunk-5YFQMMTJ.js +0 -29
  171. package/dist/chunk-VZ7DNXCW.js +0 -58
  172. package/dist/{chunk-LNQSNXGJ.js → chunk-S4JRQJEP.js} +1 -1
  173. /package/dist/{chunk-2DYEPDT7.js → chunk-XDBCWSM5.js} +0 -0
@@ -0,0 +1,97 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import { type AvatarStackMember } from '../Avatar/index.js';
3
+ /** One agent on the line: its face, as a stack draws it, and what it is doing. */
4
+ export interface WorkingAgent extends AvatarStackMember {
5
+ /**
6
+ * The words after its name: "is thinking", "is mulling it over...". A
7
+ * trailing ellipsis is dropped, because the line draws its own dots. Left
8
+ * out, a working agent "is working" and a queued one "is queued".
9
+ */
10
+ status?: string | undefined;
11
+ /** It has not started: the request waits behind something it is already doing. */
12
+ queued?: boolean | undefined;
13
+ }
14
+ /** Every word the line prints or announces, for a surface in another language. */
15
+ export interface WorkingLineLabels {
16
+ /** After two or more names at work. */
17
+ working: string;
18
+ /** After two or more names, all queued. */
19
+ queued: string;
20
+ /** After one name at work with no status of its own. */
21
+ workingOne: string;
22
+ /** After one queued name with no status of its own. */
23
+ queuedOne: string;
24
+ /** The names past the first two, after them: "and 4 others". */
25
+ others: (count: number) => string;
26
+ /** The first two of three or more names, before `others`: "A, B". */
27
+ series: (names: readonly string[]) => string;
28
+ /** Queued agents beside the ones at work: "1 queued". */
29
+ queuedCount: (count: number) => string;
30
+ /** Names a list: "A, B and C". */
31
+ list: (names: readonly string[]) => string;
32
+ /** The toggle that opens one line per agent. */
33
+ detail: string;
34
+ }
35
+ export declare const WORKING_LINE_LABELS: WorkingLineLabels;
36
+ export interface WorkingLineProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
37
+ /** Every agent at work on the request, in the order they started. Empty, the line draws nothing and keeps its live region. */
38
+ agents: readonly WorkingAgent[];
39
+ /** How many faces are drawn before the rest are counted in a chip. Three by default. */
40
+ max?: number | undefined;
41
+ /**
42
+ * Say who is at work through the line's own polite region. On by default;
43
+ * off where another line on screen already announces the same agents.
44
+ */
45
+ announce?: boolean | undefined;
46
+ /** The per-agent lines start open (a story, a screenshot). */
47
+ defaultExpanded?: boolean | undefined;
48
+ labels?: Partial<WorkingLineLabels> | undefined;
49
+ }
50
+ /** The pieces of the line as it is drawn: whose names, the words after them, and how many wait. */
51
+ export interface WorkingSentence {
52
+ /** The names printed: "Backend Engineer", "Backend Engineer and App Engineer", or "Backend Engineer, App Engineer" before `others`. */
53
+ names: string;
54
+ /** "and 4 others" after three or more names; empty otherwise. Drawn whole where the names truncate. */
55
+ others: string;
56
+ /** "is thinking", "are working", "are queued". */
57
+ verb: string;
58
+ /** "1 queued", beside agents at work; empty otherwise. */
59
+ queued: string;
60
+ /** Whether `names` prints every agent on the line. */
61
+ everyone: boolean;
62
+ /** Nothing on the line has started. */
63
+ waiting: boolean;
64
+ }
65
+ /**
66
+ * The line in words. The agents at work lead; queued ones are counted after
67
+ * them, and lead only when none has started. One leading agent keeps its own
68
+ * phrase, so its variety shows; two or more share one verb.
69
+ */
70
+ export declare function workingSentence(agents: readonly WorkingAgent[], overrides?: Partial<WorkingLineLabels>): WorkingSentence;
71
+ /**
72
+ * What the line's region says: every name, at work and queued, and never a
73
+ * phrase, so a reader hears who starts and stops rather than every step.
74
+ */
75
+ export declare function workingAnnouncement(agents: readonly WorkingAgent[], overrides?: Partial<WorkingLineLabels>): string;
76
+ /**
77
+ * Every agent at work on a request, on one line: their faces in a small
78
+ * stack, each in its own character's colour, then one sentence. "Backend
79
+ * Engineer is thinking", "Backend Engineer and App Engineer are working",
80
+ * "Backend Engineer, App Engineer and 4 others are working".
81
+ *
82
+ * ALIVE WHILE IT WORKS. A lighter band sweeps across the names and rests, a
83
+ * single agent's phrase fades in as it changes, and three dots bounce after
84
+ * the verb. Queued agents are counted, still; a line of nothing but queued
85
+ * agents does not move at all. Under reduced motion every part holds still
86
+ * and the words carry the meaning.
87
+ *
88
+ * DETAIL ON DEMAND. With more than one agent, a chevron at the line's end
89
+ * (its target the whole line) opens one compact line per agent, its face,
90
+ * name and own phrase, queued agents included.
91
+ *
92
+ * ONE ANNOUNCEMENT. A polite region names who is at work and who waits, and
93
+ * changes only when that does: a phrase changing is never read out. The
94
+ * region stays mounted while the line is empty, so the first agent to start
95
+ * is heard. Where the names are counted, the stack names every face.
96
+ */
97
+ export declare function WorkingLine({ agents, max, announce, defaultExpanded, labels: overrides, className, ...rest }: WorkingLineProps): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import '../ChatMessage/ChatScale.css';
2
+ import './WorkingLine.css';
3
+ export { WorkingLine, WORKING_LINE_LABELS, workingAnnouncement, workingSentence } from './WorkingLine.js';
4
+ export type { WorkingAgent, WorkingLineLabels, WorkingLineProps, WorkingSentence } from './WorkingLine.js';
5
+ export { BouncingDots } from './BouncingDots.js';
@@ -0,0 +1,5 @@
1
+ export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-RNIPNSCH.js';
2
+ import '../chunk-5SMYKL3D.js';
3
+ import '../chunk-XZY6S3UC.js';
4
+ import '../chunk-RRRK2KB6.js';
5
+ import '../chunk-ODEQTPFM.js';
@@ -0,0 +1,332 @@
1
+ /*
2
+ * Every agent at work on one line (WorkingLine.tsx): a stack of faces, one
3
+ * sentence under a sweeping band, bouncing dots, and one line per agent on
4
+ * demand. In the chat's meta step, so it sits under a message, at the end of
5
+ * a thread and under a composer alike.
6
+ */
7
+
8
+ .crewlet-working-line {
9
+ /* The ground the faces' cut-out is drawn in: the transcript's. */
10
+ --crewlet-avatar-stack-ground: var(--crewlet-chat-ground);
11
+ display: flex;
12
+ flex-direction: column;
13
+ min-width: 0;
14
+ max-width: 100%;
15
+ color: var(--color-text-secondary);
16
+ font-family: var(--font-family-sans);
17
+ font-size: var(--crewlet-chat-meta);
18
+ line-height: 20px;
19
+ }
20
+
21
+ /* Nobody at work: no box at all, only the live region, which is positioned
22
+ out of the flow, so a host's gap and height never count an empty line. */
23
+ .crewlet-working-line.is-idle {
24
+ display: contents;
25
+ }
26
+
27
+ /* One line as tall as its 20px faces, never wider than its column. */
28
+ .crewlet-working-line__summary {
29
+ position: relative;
30
+ display: flex;
31
+ align-items: center;
32
+ gap: var(--spacing-2);
33
+ min-width: 0;
34
+ max-width: 100%;
35
+ min-height: 20px;
36
+ border-radius: var(--radius-sm);
37
+ }
38
+
39
+ .crewlet-working-line__faces {
40
+ flex: none;
41
+ }
42
+
43
+ /*
44
+ * THE WORDS. Only the names give way where the column is narrow, down to a
45
+ * few letters, so the count of the rest, the verb and the dots always read
46
+ * whole: any shrink at all would put an ellipsis in the verb. Past that, in a
47
+ * column too narrow for the line, the words are clipped rather than spilling
48
+ * out of it.
49
+ */
50
+ .crewlet-working-line__text {
51
+ display: flex;
52
+ align-items: baseline;
53
+ gap: var(--spacing-1);
54
+ min-width: 0;
55
+ overflow: hidden;
56
+ white-space: nowrap;
57
+ }
58
+
59
+ /*
60
+ * Who: the names and, after three or more, the count of the rest, which is
61
+ * drawn whole. A grid, because its names track (at least a few letters, at
62
+ * most every name) is what bounds how far the pair shrinks; unwrapped text in
63
+ * a flex row would count its whole width as its minimum. The sweep crosses
64
+ * both, clipped to their glyphs.
65
+ */
66
+ .crewlet-working-line__who {
67
+ display: grid;
68
+ flex: 0 1 auto;
69
+ grid-auto-columns: max-content;
70
+ grid-auto-flow: column;
71
+ grid-template-columns: minmax(var(--spacing-6), max-content);
72
+ column-gap: var(--spacing-1);
73
+ color: var(--color-text-secondary);
74
+ font-weight: var(--font-weight-medium);
75
+ }
76
+
77
+ .crewlet-working-line__names {
78
+ overflow: hidden;
79
+ text-overflow: ellipsis;
80
+ }
81
+
82
+ .crewlet-working-line__verb {
83
+ flex: none;
84
+ animation: crewlet-working-line-phase var(--motion-duration-slow) var(--motion-easing-out);
85
+ }
86
+
87
+ .crewlet-working-line__queued {
88
+ flex: none;
89
+ color: var(--color-text-tertiary);
90
+ }
91
+
92
+ .crewlet-working-line__queued::before {
93
+ content: '\00b7';
94
+ margin-inline-end: var(--spacing-1);
95
+ }
96
+
97
+ /*
98
+ * THE SWEEP: a lighter band crosses the names, left to right, then rests off
99
+ * the end for the last 30% of the period before it loops. The names are the
100
+ * secondary ink at rest and the band is the primary ink, so they read at every
101
+ * point of it in both palettes. The gradient is twice the names' width and
102
+ * repeats, so the band enters from beyond the start and leaves past the end.
103
+ */
104
+ @supports (background-clip: text) or (-webkit-background-clip: text) {
105
+ .crewlet-working-line__who {
106
+ background-image: linear-gradient(
107
+ 90deg,
108
+ var(--color-text-secondary) 0%,
109
+ var(--color-text-secondary) 43%,
110
+ var(--color-text-primary) 50%,
111
+ var(--color-text-secondary) 57%,
112
+ var(--color-text-secondary) 100%
113
+ );
114
+ background-size: 200% 100%;
115
+ -webkit-background-clip: text;
116
+ background-clip: text;
117
+ color: transparent;
118
+ animation: crewlet-working-line-sweep var(--motion-duration-breath) linear infinite;
119
+ }
120
+ }
121
+
122
+ @keyframes crewlet-working-line-sweep {
123
+ 0% {
124
+ background-position: 150% 0;
125
+ }
126
+
127
+ 70%,
128
+ 100% {
129
+ background-position: -50% 0;
130
+ }
131
+ }
132
+
133
+ /* A new phrase arrives from a third of its strength, so the change is seen
134
+ without the words ever vanishing. */
135
+ @keyframes crewlet-working-line-phase {
136
+ from {
137
+ opacity: 0.3;
138
+ }
139
+
140
+ to {
141
+ opacity: 1;
142
+ }
143
+ }
144
+
145
+ /* QUEUED: nothing has started, so nothing moves. */
146
+ .crewlet-working-line.is-queued .crewlet-working-line__who {
147
+ background-image: none;
148
+ color: var(--color-text-secondary);
149
+ animation: none;
150
+ }
151
+
152
+ .crewlet-working-line.is-queued .crewlet-working-line__verb {
153
+ color: var(--color-text-tertiary);
154
+ }
155
+
156
+ /*
157
+ * THE TOGGLE: a chevron at the line's end whose target is the whole line, so
158
+ * the line opens wherever it is pressed while the button stays one control
159
+ * with one name. The ring is drawn round the whole line.
160
+ */
161
+ .crewlet-working-line__toggle {
162
+ display: inline-flex;
163
+ flex: none;
164
+ align-items: center;
165
+ justify-content: center;
166
+ width: 20px;
167
+ height: 20px;
168
+ margin: 0;
169
+ padding: 0;
170
+ border: 0;
171
+ background: transparent;
172
+ color: var(--color-text-tertiary);
173
+ font: inherit;
174
+ cursor: pointer;
175
+ }
176
+
177
+ .crewlet-working-line__toggle::after {
178
+ content: '';
179
+ position: absolute;
180
+ inset: 0;
181
+ border-radius: inherit;
182
+ }
183
+
184
+ /* The ring is the line's (below); the button keeps a transparent outline,
185
+ which forced-colors mode paints in the system ink. */
186
+ .crewlet-working-line__toggle:focus-visible {
187
+ outline: 2px solid transparent;
188
+ }
189
+
190
+ .crewlet-working-line__summary:has(.crewlet-working-line__toggle:focus-visible) {
191
+ outline: 2px solid var(--color-focus);
192
+ outline-offset: 2px;
193
+ }
194
+
195
+ .crewlet-working-line__summary:has(.crewlet-working-line__toggle:hover) .crewlet-working-line__toggle,
196
+ .crewlet-working-line__summary:has(.crewlet-working-line__toggle:hover) .crewlet-working-line__verb {
197
+ color: var(--color-text-primary);
198
+ }
199
+
200
+ .crewlet-working-line__chevron {
201
+ transition: transform var(--motion-duration-fast) var(--motion-easing-out);
202
+ }
203
+
204
+ .crewlet-working-line.is-open .crewlet-working-line__chevron {
205
+ transform: rotate(180deg);
206
+ }
207
+
208
+ /* ONE COMPACT LINE PER AGENT: a 20px face, the name and its own phrase. */
209
+ .crewlet-working-line__detail {
210
+ display: flex;
211
+ flex-direction: column;
212
+ gap: 2px;
213
+ margin: 0;
214
+ padding: var(--spacing-1) 0 0;
215
+ list-style: none;
216
+ }
217
+
218
+ .crewlet-working-line__agent {
219
+ display: flex;
220
+ align-items: center;
221
+ gap: var(--spacing-2);
222
+ min-width: 0;
223
+ min-height: 22px;
224
+ white-space: nowrap;
225
+ }
226
+
227
+ .crewlet-working-line__agent-name {
228
+ flex: 0 1 auto;
229
+ min-width: 0;
230
+ overflow: hidden;
231
+ color: var(--color-text-primary);
232
+ font-weight: var(--font-weight-medium);
233
+ text-overflow: ellipsis;
234
+ }
235
+
236
+ .crewlet-working-line__agent-phrase {
237
+ flex: 0 10 auto;
238
+ min-width: 0;
239
+ overflow: hidden;
240
+ text-overflow: ellipsis;
241
+ animation: crewlet-working-line-phase var(--motion-duration-slow) var(--motion-easing-out);
242
+ }
243
+
244
+ .crewlet-working-line__agent.is-queued .crewlet-working-line__agent-phrase {
245
+ color: var(--color-text-tertiary);
246
+ }
247
+
248
+ /*
249
+ * THE DOTS, three in turn, each lifting and brightening once a period. Shared
250
+ * with somebody typing (ActivityLine), in the ink around them.
251
+ */
252
+ .crewlet-bouncing-dots {
253
+ display: inline-flex;
254
+ flex: none;
255
+ align-items: flex-end;
256
+ align-self: center;
257
+ gap: 2px;
258
+ }
259
+
260
+ .crewlet-bouncing-dots > i {
261
+ width: 4px;
262
+ height: 4px;
263
+ border-radius: var(--radius-circle);
264
+ background: currentColor;
265
+ animation: crewlet-bouncing-dots calc(var(--motion-duration-slow) * 4) var(--motion-easing-in-out) infinite;
266
+ }
267
+
268
+ .crewlet-bouncing-dots > i:nth-child(2) {
269
+ animation-delay: var(--motion-duration-base);
270
+ }
271
+
272
+ .crewlet-bouncing-dots > i:nth-child(3) {
273
+ animation-delay: var(--motion-duration-slow);
274
+ }
275
+
276
+ @keyframes crewlet-bouncing-dots {
277
+ 0%,
278
+ 60%,
279
+ 100% {
280
+ opacity: 0.3;
281
+ transform: none;
282
+ }
283
+
284
+ 30% {
285
+ opacity: 1;
286
+ transform: translateY(-3px);
287
+ }
288
+ }
289
+
290
+ /* UNDER REDUCED MOTION every part holds still: the names in the primary ink
291
+ without the band, the phrases without their fade, the dots at full
292
+ strength, and the chevron turned at once. */
293
+ @media (prefers-reduced-motion: reduce) {
294
+ .crewlet-working-line__who {
295
+ background-image: none;
296
+ color: var(--color-text-primary);
297
+ animation: none;
298
+ }
299
+
300
+ .crewlet-working-line.is-queued .crewlet-working-line__who {
301
+ color: var(--color-text-secondary);
302
+ }
303
+
304
+ .crewlet-working-line__verb {
305
+ animation: none;
306
+ }
307
+
308
+ .crewlet-working-line__agent-phrase {
309
+ animation: none;
310
+ }
311
+
312
+ .crewlet-working-line__chevron {
313
+ transition: none;
314
+ }
315
+
316
+ .crewlet-bouncing-dots > i {
317
+ opacity: 1;
318
+ animation: none;
319
+ }
320
+ }
321
+
322
+ /* The system's own ink: a gradient clipped to text is dropped there. */
323
+ @media (forced-colors: active) {
324
+ .crewlet-working-line__who {
325
+ background-image: none;
326
+ color: CanvasText;
327
+ }
328
+
329
+ .crewlet-working-line__summary:has(.crewlet-working-line__toggle:focus-visible) {
330
+ outline-color: Highlight;
331
+ }
332
+ }
@@ -5,10 +5,10 @@ import { ChangeMark } from './chunk-TYQJRTTK.js';
5
5
  import { isEmptyValue, displayText, ratingMax, findPerson, findOption, statusTone, editText, textMax, sheetLabels, normalizeValue, sameValue, spokenText, drawnColumns, fitSamples, fittedWidth, columnWidth, SHEET_COLUMN_BOUNDS, sortRows, SHEET_ROW_HEIGHT, cellKey, columnOffsets, SHEET_ROW_NUMBER_WIDTH, rangeOf, presenceByCell, presenceByRow, presenceByColumn, scrollToRow, planClear, visibleRows, cellDescription, nextSort, rowName, inRange, hasPrevious, flagText, toTSV, planPaste, parseTSV, isMod, moveFrom, isTypingKey, editorSide, optionHue, parseText, liveOptions, checkValue } from './chunk-LFSIKGRQ.js';
6
6
  import { presenceLabels } from './chunk-Z7JYG5TF.js';
7
7
  import { Tag } from './chunk-SJ3EUCFD.js';
8
- import { Popover } from './chunk-VYUEAMA4.js';
9
- import { Avatar } from './chunk-XZY6S3UC.js';
8
+ import { Popover } from './chunk-KDRJZWE3.js';
10
9
  import { StatusDot } from './chunk-QRE6JCHS.js';
11
- import { Menu } from './chunk-YBPBSLGY.js';
10
+ import { Menu } from './chunk-QHUKJN33.js';
11
+ import { Avatar } from './chunk-XZY6S3UC.js';
12
12
  import { Button } from './chunk-NPPPQSRU.js';
13
13
  import { IconButton } from './chunk-BF2BXM6V.js';
14
14
  import { Tooltip } from './chunk-HXVMXH6U.js';
@@ -1,6 +1,6 @@
1
- import { HuePicker } from './chunk-TTQOKYTO.js';
2
- import { Popover } from './chunk-VYUEAMA4.js';
3
- import { CharacterPicker } from './chunk-LNQSNXGJ.js';
1
+ import { HuePicker } from './chunk-QVNEQSOL.js';
2
+ import { Popover } from './chunk-KDRJZWE3.js';
3
+ import { CharacterPicker } from './chunk-S4JRQJEP.js';
4
4
  import { NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
5
5
  import { Avatar } from './chunk-XZY6S3UC.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- import { Checkbox } from './chunk-E7NTBXXE.js';
1
+ import { Checkbox } from './chunk-DTEDUAEW.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './CheckGrid-B3SRTHOJ.css';
4
4
  import { useId } from 'react';
@@ -0,0 +1,74 @@
1
+ import { PersonRow } from './chunk-XROJ6XQ3.js';
2
+ import { cx } from './chunk-ODEQTPFM.js';
3
+ import './ChatScale-6NM4TP7R.css';
4
+ import './PersonRow-3HOWUD6H.css';
5
+ import './MentionMenu-AWZSOTNU.css';
6
+ import { jsx, jsxs } from 'react/jsx-runtime';
7
+
8
+ var MENTION_MENU_LABELS = {
9
+ hints: ["\u2191\u2193 to move", "Enter or Tab to choose", "Esc to close"]
10
+ };
11
+ function MentionMenu({
12
+ id,
13
+ label,
14
+ options,
15
+ active,
16
+ onPick,
17
+ onHover,
18
+ listRef,
19
+ keyed = true,
20
+ footer,
21
+ labels: overrides,
22
+ appearance = "default",
23
+ anchor,
24
+ className
25
+ }) {
26
+ const labels = overrides ? { ...MENTION_MENU_LABELS, ...overrides } : MENTION_MENU_LABELS;
27
+ const foot = footer === void 0 ? /* @__PURE__ */ jsx("div", { className: "crewlet-mention-menu__footer", children: labels.hints.map((hint) => /* @__PURE__ */ jsx("span", { children: hint }, hint)) }) : footer === null ? null : /* @__PURE__ */ jsx("div", { className: "crewlet-mention-menu__footer", children: footer });
28
+ return /* @__PURE__ */ jsxs(
29
+ "div",
30
+ {
31
+ className: cx(
32
+ "crewlet-mention-menu",
33
+ appearance === "chat" && "crewlet-mention-menu--chat",
34
+ anchor !== void 0 && "crewlet-mention-menu--anchored",
35
+ !keyed && "crewlet-mention-menu--resting",
36
+ className
37
+ ),
38
+ style: anchor === void 0 ? void 0 : { "--crewlet-mention-menu-anchor": `${anchor}px` },
39
+ children: [
40
+ appearance === "chat" ? null : /* @__PURE__ */ jsx("div", { className: "crewlet-mention-menu__label", "aria-hidden": "true", children: label }),
41
+ /* @__PURE__ */ jsx("ul", { ref: listRef, id, role: "listbox", "aria-label": label, className: "crewlet-mention-menu__list", children: options.map((option, index) => /* @__PURE__ */ jsx(
42
+ PersonRow,
43
+ {
44
+ as: "option",
45
+ id: `${id}-${index}`,
46
+ density: "compact",
47
+ avatar: option.mark,
48
+ name: option.label,
49
+ detail: option.detail,
50
+ meta: option.note,
51
+ selected: index === active,
52
+ highlighted: index === active,
53
+ onMouseDown: (event) => {
54
+ event.preventDefault();
55
+ onPick(option, index);
56
+ },
57
+ onMouseEnter: () => onHover(index)
58
+ },
59
+ option.id
60
+ )) }),
61
+ foot
62
+ ]
63
+ }
64
+ );
65
+ }
66
+ function mentionQuery(text, caret) {
67
+ const before = text.slice(0, Math.max(0, Math.min(caret, text.length)));
68
+ const match = /(^|\s)([@#])([\p{L}\p{N}_-]*)$/u.exec(before);
69
+ if (!match) return null;
70
+ const query = match[3] ?? "";
71
+ return { trigger: match[2], query, start: before.length - query.length - 1 };
72
+ }
73
+
74
+ export { MENTION_MENU_LABELS, MentionMenu, mentionQuery };
@@ -1,4 +1,4 @@
1
- import { CHAT_MESSAGE_CLASS } from './chunk-PGMKJ4OD.js';
1
+ import { CHAT_MESSAGE_CLASS } from './chunk-ZJVGVTC3.js';
2
2
  import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-COS6LJ4K.js';
3
3
  import { Button } from './chunk-NPPPQSRU.js';
4
4
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,5 +1,5 @@
1
1
  import { useReorder } from './chunk-JMBPMSNI.js';
2
- import { FormField, Textarea } from './chunk-HKCOGDXN.js';
2
+ import { FormField, Textarea } from './chunk-TE3OMB3Z.js';
3
3
  import { characterCountState, CharacterCount, countCharacters } from './chunk-TEXK4RK6.js';
4
4
  import { Kbd } from './chunk-VBBLHS2Y.js';
5
5
  import { Button } from './chunk-NPPPQSRU.js';
@@ -1,6 +1,6 @@
1
1
  import { Timeline } from './chunk-XDUXAQIS.js';
2
2
  import { Section } from './chunk-WFCWPXJN.js';
3
- import { Composer } from './chunk-GYLXJ6VC.js';
3
+ import { Composer } from './chunk-KVNVLBCB.js';
4
4
  import { Disclosure } from './chunk-D5O64CVE.js';
5
5
  import { ArtifactPanel } from './chunk-LSVX4DTF.js';
6
6
  import { Button } from './chunk-NPPPQSRU.js';
@@ -1,7 +1,7 @@
1
1
  import { AVATAR_SIZES, Avatar } from './chunk-XZY6S3UC.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './Avatar-CRSLRUVT.css';
4
- import './AvatarStack-EQZZJZ3V.css';
4
+ import './AvatarStack-GNEJHEU6.css';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
6
6
 
7
7
  function counted(count, one, many) {
@@ -19,6 +19,7 @@ function AvatarStack({
19
19
  members,
20
20
  max = 4,
21
21
  size = "sm",
22
+ spread = false,
22
23
  label,
23
24
  decorative = false,
24
25
  className,
@@ -35,8 +36,13 @@ function AvatarStack({
35
36
  "span",
36
37
  {
37
38
  ...rest,
38
- className: cx("crewlet-avatar-stack", `crewlet-avatar-stack--${size}`, className),
39
- style: { "--crewlet-avatar-stack-size": `${AVATAR_SIZES[size]}px`, ...style },
39
+ className: cx(
40
+ "crewlet-avatar-stack",
41
+ typeof size === "number" ? null : `crewlet-avatar-stack--${size}`,
42
+ spread && "crewlet-avatar-stack--spread",
43
+ className
44
+ ),
45
+ style: { "--crewlet-avatar-stack-size": `${typeof size === "number" ? size : AVATAR_SIZES[size]}px`, ...style },
40
46
  role: decorative ? void 0 : "img",
41
47
  "aria-label": decorative ? void 0 : label ?? avatarStackLabel(members),
42
48
  "aria-hidden": decorative ? true : void 0,
@@ -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-VAEC6MIJ.js').then(
12
+ loading ??= import('./Editor-XT73VTSJ.js').then(
13
13
  (module) => {
14
14
  engine = module.Editor;
15
15
  return engine;
@@ -1,6 +1,6 @@
1
1
  import { Select } from './chunk-JUZOMYOZ.js';
2
- import { Combobox } from './chunk-3ZIGF6LK.js';
3
- import { FormField, Textarea, InputAffix } from './chunk-HKCOGDXN.js';
2
+ import { Combobox } from './chunk-PBDMJHXV.js';
3
+ import { FormField, Textarea, InputAffix } from './chunk-TE3OMB3Z.js';
4
4
  import './Input-YVCNNTYT.css';
5
5
  import './VisuallyHidden-OUYVMKEH.css';
6
6
  import './HitArea-QUOS6ZDJ.css';
@@ -1,6 +1,6 @@
1
1
  import { useReorder } from './chunk-JMBPMSNI.js';
2
- import { Menu } from './chunk-YBPBSLGY.js';
3
- import { Input } from './chunk-HKCOGDXN.js';
2
+ import { Menu } from './chunk-QHUKJN33.js';
3
+ import { Input } from './chunk-TE3OMB3Z.js';
4
4
  import { IconButton } from './chunk-BF2BXM6V.js';
5
5
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- import { SegmentedControl } from './chunk-BHR72Z7M.js';
1
+ import { SegmentedControl } from './chunk-YD5UCBFV.js';
2
2
  import { Button } from './chunk-NPPPQSRU.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './MergeConflicts-HCXPRQVR.css';
@@ -1,16 +1,16 @@
1
- import { ChatDivider } from './chunk-4A75O7NL.js';
1
+ import { ChatDivider } from './chunk-RTDFRFTF.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './ChatScale-6NM4TP7R.css';
4
- import './ChatDivider-7SPCQXUQ.css';
4
+ import './ChatDivider-BRODST2E.css';
5
5
  import './ChatDay-523C65KY.css';
6
6
  import { forwardRef } from 'react';
7
7
  import { ChevronDownGlyph } from '@crewlethq/icons/glyphs';
8
8
  import { jsxs, jsx } from 'react/jsx-runtime';
9
9
 
10
- function ChatDay({ label, pill, unread, className, children, ...rest }) {
10
+ function ChatDay({ label, pill, unread, pulse = false, className, children, ...rest }) {
11
11
  return /* @__PURE__ */ jsxs("div", { ...rest, role: "group", "aria-label": label, className: cx("crewlet-chat-day", className), children: [
12
12
  /* @__PURE__ */ jsx("div", { className: "crewlet-chat-day__label", children: pill ?? /* @__PURE__ */ jsx("span", { className: "crewlet-chat-day__pill", children: label }) }),
13
- /* @__PURE__ */ jsx("div", { className: "crewlet-chat-day__rule", children: unread ? /* @__PURE__ */ jsx(ChatDivider, { variant: "unread", label: unread }) : null }),
13
+ /* @__PURE__ */ jsx("div", { className: "crewlet-chat-day__rule", children: unread ? /* @__PURE__ */ jsx(ChatDivider, { variant: "unread", label: unread, pulse }) : null }),
14
14
  children
15
15
  ] });
16
16
  }
@@ -1,5 +1,5 @@
1
1
  import { diffLines, diffStat, collapseDiff, DiffSummary, DiffView } from './chunk-U3LHWQQK.js';
2
- import { SegmentedControl } from './chunk-BHR72Z7M.js';
2
+ import { SegmentedControl } from './chunk-YD5UCBFV.js';
3
3
  import { EmptyState } from './chunk-PPUR46MK.js';
4
4
  import { useHeadingLevel, headingTag, nextHeadingLevel, HeadingLevelProvider } from './chunk-PQADV6P6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';