@crewlethq/ui 0.114.0 → 0.116.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 (82) hide show
  1. package/dist/ActivityLine/index.js +2 -2
  2. package/dist/AgentHandoffPanel/index.js +4 -4
  3. package/dist/ArtifactCard/index.js +3 -3
  4. package/dist/ArtifactPanel/index.js +2 -2
  5. package/dist/ChatDay/index.js +2 -2
  6. package/dist/{ChatDay-523C65KY.css → ChatDay-FNMU6XGF.css} +8 -3
  7. package/dist/ChatDivider/index.js +1 -1
  8. package/dist/{ChatDivider-BRODST2E.css → ChatDivider-AVSQIHOP.css} +3 -2
  9. package/dist/ChatMessage/index.js +1 -1
  10. package/dist/{ChatMessage-SZGZT7O2.css → ChatMessage-ADVU5SLD.css} +48 -0
  11. package/dist/{ChatScale-6NM4TP7R.css → ChatScale-LGESYXCO.css} +11 -1
  12. package/dist/ChatThread/ChatThread.d.ts +8 -0
  13. package/dist/ChatThread/index.js +1 -1
  14. package/dist/{ChatThread-MKAN2Q4H.css → ChatThread-YBU3PHDZ.css} +12 -0
  15. package/dist/CommentThread/index.js +2 -2
  16. package/dist/Composer/index.js +1 -1
  17. package/dist/{Composer-UGPNQMYI.css → Composer-AVBJS6U4.css} +31 -6
  18. package/dist/DataGrid/index.js +2 -2
  19. package/dist/DeliveryReceipt/index.js +1 -1
  20. package/dist/InboxList/InboxList.d.ts +44 -4
  21. package/dist/InboxList/index.d.ts +2 -1
  22. package/dist/InboxList/index.js +1 -1
  23. package/dist/{InboxList-G627C2OQ.css → InboxList-PKF6XXTA.css} +143 -6
  24. package/dist/LinkCard/index.js +1 -1
  25. package/dist/ListDetail/ListDetail.d.ts +46 -9
  26. package/dist/ListDetail/index.d.ts +2 -2
  27. package/dist/ListDetail/index.js +10 -1
  28. package/dist/{ListDetail-WXBCLONL.css → ListDetail-KFYCYZWI.css} +46 -2
  29. package/dist/MentionMenu/index.js +1 -1
  30. package/dist/MessageActions/index.js +1 -1
  31. package/dist/OrgTable/index.js +4 -4
  32. package/dist/ReactionBar/index.js +1 -1
  33. package/dist/RichEditor/index.js +2 -2
  34. package/dist/RoomRow/index.js +1 -1
  35. package/dist/SandboxedFrame/index.js +2 -2
  36. package/dist/SidePanel/SidePanel.d.ts +7 -1
  37. package/dist/SidePanel/SidePanelBase.d.ts +3 -1
  38. package/dist/SidePanel/index.js +2 -2
  39. package/dist/{SidePanel-DZ4E5SNP.css → SidePanel-JT2VDOZ6.css} +2 -0
  40. package/dist/Skeleton/index.js +1 -1
  41. package/dist/Switcher/index.js +2 -2
  42. package/dist/ThreadSummary/index.js +1 -1
  43. package/dist/TreeGrid/index.js +3 -3
  44. package/dist/WidgetFrame/index.js +2 -2
  45. package/dist/WorkingLine/index.js +1 -1
  46. package/dist/{chunk-KVNVLBCB.js → chunk-2JNBDAOE.js} +2 -2
  47. package/dist/{chunk-6QLMET36.js → chunk-346EXHOR.js} +1 -1
  48. package/dist/{chunk-TEOJ7OKD.js → chunk-3EWOEW7R.js} +2 -2
  49. package/dist/{chunk-V35GTX74.js → chunk-4FEWDSRQ.js} +63 -16
  50. package/dist/chunk-5QJNA7KD.js +2 -0
  51. package/dist/{chunk-DF5B4QO5.js → chunk-5ZTH54O6.js} +1 -1
  52. package/dist/{chunk-ZGJCVXFU.js → chunk-62TEKYMP.js} +1 -1
  53. package/dist/{chunk-S3ZFYKNS.js → chunk-73OCFZN7.js} +1 -1
  54. package/dist/{chunk-4VHRO7HZ.js → chunk-7L446LBC.js} +4 -0
  55. package/dist/{chunk-EXKJIL65.js → chunk-BG4GI5W3.js} +2 -2
  56. package/dist/{chunk-R4PZUVPD.js → chunk-CUUDIFBU.js} +1 -1
  57. package/dist/{chunk-5SBMYPWG.js → chunk-EAC357YC.js} +2 -2
  58. package/dist/{chunk-RTDFRFTF.js → chunk-EI242VTX.js} +2 -2
  59. package/dist/{chunk-ZUFV7753.js → chunk-I5HJ6Y6E.js} +1 -1
  60. package/dist/{chunk-TXTYTIIH.js → chunk-JKGSPQUX.js} +1 -1
  61. package/dist/{chunk-47V3ASMW.js → chunk-KTH2KXZY.js} +1 -1
  62. package/dist/{chunk-LSVX4DTF.js → chunk-LWZAXQBR.js} +2 -2
  63. package/dist/{chunk-5FOJLJYN.js → chunk-MM4KFKUN.js} +8 -2
  64. package/dist/{chunk-ANIJQ25E.js → chunk-N3465LNT.js} +1 -1
  65. package/dist/{chunk-7MB7RUZZ.js → chunk-NHHVN23D.js} +1 -1
  66. package/dist/{chunk-CHB7T3PT.js → chunk-RBQOS3JC.js} +4 -4
  67. package/dist/{chunk-6S2Q4DGN.js → chunk-RWBBTGCK.js} +2 -2
  68. package/dist/{chunk-QP5XZ3QZ.js → chunk-SFO4KY65.js} +1 -1
  69. package/dist/{chunk-D7NXK77P.js → chunk-ULFQFA5O.js} +1 -1
  70. package/dist/{chunk-P366K4RX.js → chunk-UTTYNJEB.js} +1 -1
  71. package/dist/{chunk-WN3YE3ND.js → chunk-UVHIHIFQ.js} +1 -1
  72. package/dist/chunk-VKN64EEL.js +42 -0
  73. package/dist/{chunk-QMEKGAEA.js → chunk-VLU3FMJD.js} +1 -1
  74. package/dist/{chunk-BMTNY3FK.js → chunk-WFAJYBLX.js} +1 -1
  75. package/dist/{chunk-LNSAYEOA.js → chunk-WNPKXYDJ.js} +1 -1
  76. package/dist/generated/index.js +45 -45
  77. package/dist/index.js +45 -45
  78. package/dist/styles.css +313 -29
  79. package/package.json +3 -3
  80. package/dist/chunk-P33VNG7Q.js +0 -12
  81. package/dist/chunk-Q5LDZPFF.js +0 -2
  82. package/dist/{Editor-XT73VTSJ.js → Editor-YITN2DWX.js} +1 -1
@@ -1,16 +1,34 @@
1
- import type { HTMLAttributes, ReactNode } from 'react';
1
+ import type { HTMLAttributes, MouseEventHandler, ReactNode } from 'react';
2
2
  export type ListDetailPane = 'list' | 'detail';
3
+ /** How wide the list column is beside a detail. */
4
+ export type ListDetailListWidth = 'column' | 'half';
3
5
  export interface ListDetailProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
4
6
  /** The list column: a `DirectoryList`, an inbox. */
5
7
  list: ReactNode;
6
- /** The chosen item's detail. */
7
- children: ReactNode;
8
+ /**
9
+ * The chosen item's detail. Left out (or null), nothing is chosen: the list
10
+ * takes the whole width and no detail pane is drawn, so a reader arriving
11
+ * reads the list at full length rather than beside an empty pane.
12
+ */
13
+ children?: ReactNode;
8
14
  /**
9
15
  * Which pane shows where the two are one column (under 640px of the
10
16
  * component's own width): the list until something is chosen, then the
11
17
  * detail. Wider, both are always shown.
12
18
  */
13
19
  showing?: ListDetailPane | undefined;
20
+ /**
21
+ * `column` (the default): the list is `--crewlet-list-detail-list` wide
22
+ * (17rem). `half`: the list and the detail share the width evenly, for a
23
+ * list whose rows are worth reading at length beside what is open.
24
+ */
25
+ listWidth?: ListDetailListWidth | undefined;
26
+ /**
27
+ * The panes meet at the hairline with no gutter, and each insets its own
28
+ * content: for a list whose rows draw their own full-bleed fills and a
29
+ * detail with its own header, such as a conversation.
30
+ */
31
+ flush?: boolean | undefined;
14
32
  }
15
33
  /**
16
34
  * A list beside the detail of what is chosen in it, each scrolling on its own.
@@ -29,10 +47,29 @@ export interface ListDetailProps extends Omit<HTMLAttributes<HTMLDivElement>, 'c
29
47
  *
30
48
  * BELOW 640px OF ITS OWN WIDTH IT IS ONE PANE, the one `showing` names: the
31
49
  * list and a reading detail do not both fit, whether the window is a phone or
32
- * an aside beside the screen has taken the room. The application gives its
33
- * detail a way back to the list, and asks the same question to decide when to
34
- * draw it (`useScreenBelow(640)` for a ListDetail that spans the screen, or a
35
- * container query on it). On a phone the page scrolls as any other, each pane
36
- * as tall as its content.
50
+ * an aside beside the screen has taken the room. The detail's way back to the
51
+ * list is `ListDetail.Back`, drawn by the same question. On a phone the page
52
+ * scrolls as any other, each pane as tall as its content.
53
+ *
54
+ * NOTHING CHOSEN, NO DETAIL: without children the list takes the whole width
55
+ * and no hairline is drawn, and choosing an item splits the width again.
56
+ */
57
+ export declare function ListDetail({ list, children, showing, listWidth, flush, className, ...rest }: ListDetailProps): import("react").JSX.Element;
58
+ export declare namespace ListDetail {
59
+ var Back: typeof ListDetailBack;
60
+ }
61
+ export interface ListDetailBackProps {
62
+ /** Where it goes, as its name and its hint: "Back to Activity". */
63
+ label: string;
64
+ onClick: MouseEventHandler<HTMLButtonElement>;
65
+ className?: string | undefined;
66
+ }
67
+ /**
68
+ * The detail's way back to the list, drawn only while the ListDetail is one
69
+ * pane (under 640px of its own width), where the list is out of sight. Place
70
+ * it first in the detail's own header. Wider, the list stands beside the
71
+ * detail and the control is not drawn at all, so it takes no room and no tab
72
+ * stop. The same container query that folds the panes decides it, so the two
73
+ * can never disagree.
37
74
  */
38
- export declare function ListDetail({ list, children, showing, className, ...rest }: ListDetailProps): import("react").JSX.Element;
75
+ export declare function ListDetailBack({ label, onClick, className }: ListDetailBackProps): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import './ListDetail.css';
2
- export { ListDetail } from './ListDetail.js';
3
- export type { ListDetailPane, ListDetailProps } from './ListDetail.js';
2
+ export { ListDetail, ListDetailBack } from './ListDetail.js';
3
+ export type { ListDetailBackProps, ListDetailListWidth, ListDetailPane, ListDetailProps } from './ListDetail.js';
@@ -1,2 +1,11 @@
1
- export { ListDetail } from '../chunk-P33VNG7Q.js';
1
+ export { ListDetail, ListDetailBack } from '../chunk-VKN64EEL.js';
2
+ import '../chunk-BF2BXM6V.js';
3
+ import '../chunk-TDFLCUBE.js';
4
+ import '../chunk-HXVMXH6U.js';
5
+ import '../chunk-L72URIHR.js';
6
+ import '../chunk-HTS5RJ7S.js';
7
+ import '../chunk-FIX72ZEC.js';
8
+ import '../chunk-EDPMHSLZ.js';
9
+ import '../chunk-4ITETIGZ.js';
10
+ import '../chunk-RRRK2KB6.js';
2
11
  import '../chunk-ODEQTPFM.js';
@@ -89,10 +89,49 @@
89
89
  list pane holding one gives its end inset back, and the lines run to the
90
90
  hairline as the rail's run to its edge. Folded to one pane, the pane takes
91
91
  the screen's inset again (below). */
92
- .crewlet-list-detail__list:has(> .crewlet-directory) {
92
+ /* AND SO DOES AN INBOX, however the host wraps it: an InboxList's rows draw
93
+ their own inset and fills just as a directory's lines do. Matched as a
94
+ child only, a list a host wrapped in a box of its own kept the gutter, and
95
+ every row's fill stopped 32px short of the hairline. */
96
+ .crewlet-list-detail__list:has(.crewlet-directory, .crewlet-inbox-list) {
93
97
  padding-right: 0;
94
98
  }
95
99
 
100
+ /* NOTHING CHOSEN: the list is the whole width, with no hairline after it. */
101
+ .crewlet-list-detail--alone .crewlet-list-detail__panes,
102
+ .crewlet-list-detail--alone.crewlet-list-detail--half .crewlet-list-detail__panes {
103
+ grid-template-columns: minmax(0, 1fr);
104
+ }
105
+
106
+ .crewlet-list-detail--alone .crewlet-list-detail__list {
107
+ padding-right: 0;
108
+ border-right: 0;
109
+ }
110
+
111
+ /* HALF: the list and the detail share the width evenly. */
112
+ .crewlet-list-detail--half .crewlet-list-detail__panes {
113
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
114
+ }
115
+
116
+ /* FLUSH: the panes meet at the hairline, and each insets its own content. */
117
+ .crewlet-list-detail--flush .crewlet-list-detail__panes {
118
+ gap: 0;
119
+ }
120
+
121
+ .crewlet-list-detail--flush .crewlet-list-detail__list {
122
+ padding-right: 0;
123
+ }
124
+
125
+ .crewlet-list-detail--flush .crewlet-list-detail__detail {
126
+ gap: 0;
127
+ }
128
+
129
+ /* The way back to the list is drawn only while the panes are folded (below). */
130
+ .crewlet-list-detail__back {
131
+ display: none;
132
+ flex: none;
133
+ }
134
+
96
135
  .crewlet-list-detail__detail {
97
136
  display: flex;
98
137
  flex-direction: column;
@@ -106,7 +145,8 @@
106
145
  both fit, so the pane `showing` names takes the whole width and keeps its
107
146
  own scroller, which is what lets it sit in a screen that fills the window. */
108
147
  @container crewlet-list-detail (width < 640px) {
109
- .crewlet-list-detail__panes {
148
+ /* Two classes, so a half split folds as well. */
149
+ .crewlet-list-detail .crewlet-list-detail__panes {
110
150
  grid-template-columns: minmax(0, 1fr);
111
151
  }
112
152
 
@@ -128,6 +168,10 @@
128
168
  .crewlet-list-detail--showing-detail .crewlet-list-detail__list {
129
169
  display: none;
130
170
  }
171
+
172
+ .crewlet-list-detail__back {
173
+ display: inline-flex;
174
+ }
131
175
  }
132
176
 
133
177
  /* ON A PHONE THE PAGE SCROLLS AS A WHOLE, as tall as its content. */
@@ -1,4 +1,4 @@
1
- export { MENTION_MENU_LABELS, MentionMenu, mentionQuery } from '../chunk-47V3ASMW.js';
1
+ export { MENTION_MENU_LABELS, MentionMenu, mentionQuery } from '../chunk-KTH2KXZY.js';
2
2
  import '../chunk-XROJ6XQ3.js';
3
3
  import '../chunk-XLMURU75.js';
4
4
  import '../chunk-WSIJDWUG.js';
@@ -1,4 +1,4 @@
1
- export { ActionDivider, MessageAction, MessageActions, QuickReaction } from '../chunk-D7NXK77P.js';
1
+ export { ActionDivider, MessageAction, MessageActions, QuickReaction } from '../chunk-ULFQFA5O.js';
2
2
  import '../chunk-NOP55WRY.js';
3
3
  import '../chunk-NPEI2QAN.js';
4
4
  import '../chunk-KDRJZWE3.js';
@@ -1,10 +1,10 @@
1
- export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-R4PZUVPD.js';
2
- import '../chunk-TXTYTIIH.js';
1
+ export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-CUUDIFBU.js';
2
+ import '../chunk-JKGSPQUX.js';
3
3
  import '../chunk-MY374UUD.js';
4
4
  import '../chunk-DEVO45TG.js';
5
- import '../chunk-S3ZFYKNS.js';
5
+ import '../chunk-73OCFZN7.js';
6
6
  import '../chunk-X4HBZSXA.js';
7
- import '../chunk-BMTNY3FK.js';
7
+ import '../chunk-WFAJYBLX.js';
8
8
  import '../chunk-WSIJDWUG.js';
9
9
  import '../chunk-JMBPMSNI.js';
10
10
  import '../chunk-DTEDUAEW.js';
@@ -1,4 +1,4 @@
1
- export { AddReaction, REACTION_BAR_LABELS, ReactionBar, reactionWho } from '../chunk-P366K4RX.js';
1
+ export { AddReaction, REACTION_BAR_LABELS, ReactionBar, reactionWho } from '../chunk-UTTYNJEB.js';
2
2
  import '../chunk-NOP55WRY.js';
3
3
  import '../chunk-NPEI2QAN.js';
4
4
  import '../chunk-KDRJZWE3.js';
@@ -1,9 +1,9 @@
1
- export { RichEditor, preloadRichEditor } from '../chunk-6S2Q4DGN.js';
1
+ export { RichEditor, preloadRichEditor } from '../chunk-RWBBTGCK.js';
2
2
  export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
3
3
  import '../chunk-KOJPDCGQ.js';
4
4
  import '../chunk-KBZO4B33.js';
5
5
  import '../chunk-BPCY7ZID.js';
6
- import '../chunk-BMTNY3FK.js';
6
+ import '../chunk-WFAJYBLX.js';
7
7
  import '../chunk-NPPPQSRU.js';
8
8
  import '../chunk-XSPCITPN.js';
9
9
  import '../chunk-TDFLCUBE.js';
@@ -1,4 +1,4 @@
1
- export { RoomRow } from '../chunk-7MB7RUZZ.js';
1
+ export { RoomRow } from '../chunk-NHHVN23D.js';
2
2
  import '../chunk-VY37HWFV.js';
3
3
  import '../chunk-RRRK2KB6.js';
4
4
  import '../chunk-ODEQTPFM.js';
@@ -1,8 +1,8 @@
1
- export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from '../chunk-ANIJQ25E.js';
1
+ export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from '../chunk-N3465LNT.js';
2
2
  import '../chunk-F6V2PTN6.js';
3
3
  import '../chunk-ZXXDZJQN.js';
4
4
  import '../chunk-BPCY7ZID.js';
5
- import '../chunk-BMTNY3FK.js';
5
+ import '../chunk-WFAJYBLX.js';
6
6
  import '../chunk-NPPPQSRU.js';
7
7
  import '../chunk-XSPCITPN.js';
8
8
  import '../chunk-TDFLCUBE.js';
@@ -26,6 +26,12 @@ export interface SidePanelProps {
26
26
  subtitle?: ReactNode;
27
27
  /** A mark before the title: the product mark, the glyph of the control that opened it. */
28
28
  icon?: ReactNode;
29
+ /**
30
+ * A control before the title and its mark: the way back where the panel is
31
+ * a list's detail (`ListDetail.Back`, drawn only while the list is folded
32
+ * out of sight). Unlike `icon`, it is read and reached.
33
+ */
34
+ leading?: ReactNode;
29
35
  /** Draw the title for assistive technology only, where the icon says it. */
30
36
  hideTitle?: boolean | undefined;
31
37
  /**
@@ -113,7 +119,7 @@ export interface SidePanelProps {
113
119
  * region, sizes the track and draws the grip in the seam, from the same
114
120
  * width the host keeps for both.
115
121
  */
116
- export declare function SidePanel({ title, subtitle, icon, hideTitle, density, onClose, actions, footer, flush, flow, width, minWidth, maxWidth, defaultWidth, onWidthChange, onWidthCommit, resizable, initialFocus, labels, className, children, }: SidePanelProps): import("react").JSX.Element;
122
+ export declare function SidePanel({ title, subtitle, icon, leading, hideTitle, density, onClose, actions, footer, flush, flow, width, minWidth, maxWidth, defaultWidth, onWidthChange, onWidthCommit, resizable, initialFocus, labels, className, children, }: SidePanelProps): import("react").JSX.Element;
117
123
  export interface SidePanelFrameProps {
118
124
  /** The open panel, if any: a `SidePanel`. */
119
125
  panel?: ReactNode;
@@ -33,6 +33,8 @@ export interface SidePanelBaseProps {
33
33
  title: string;
34
34
  /** A second line after the title, on its baseline: what the panel is about. */
35
35
  subtitle?: ReactNode;
36
+ /** A control before the title, such as `ListDetail.Back`. */
37
+ leading?: ReactNode;
36
38
  icon?: ReactNode;
37
39
  onClose: () => void;
38
40
  closeLabel: string;
@@ -63,4 +65,4 @@ export interface SidePanelBaseProps {
63
65
  className?: string | undefined;
64
66
  children: ReactNode;
65
67
  }
66
- export declare function SidePanelBase({ alias, title, subtitle, icon, onClose, closeLabel, actions, footer, flush, flow, initialFocus, ringHeading, hideTitle, density, expanded, onExpandedChange, expandLabel, collapseLabel, width, minWidth, maxWidth, defaultWidth, onWidthChange, onWidthCommit, resizable, resizeLabel, className, children, }: SidePanelBaseProps): import("react").JSX.Element;
68
+ export declare function SidePanelBase({ alias, title, subtitle, leading, icon, onClose, closeLabel, actions, footer, flush, flow, initialFocus, ringHeading, hideTitle, density, expanded, onExpandedChange, expandLabel, collapseLabel, width, minWidth, maxWidth, defaultWidth, onWidthChange, onWidthCommit, resizable, resizeLabel, className, children, }: SidePanelBaseProps): import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
- import '../chunk-WN3YE3ND.js';
2
- export { SIDE_PANEL_LABELS, SIDE_PANEL_MAX_WIDTH, SIDE_PANEL_MIN_WIDTH, SIDE_PANEL_WIDTH, SidePanel, SidePanelFrame } from '../chunk-4VHRO7HZ.js';
1
+ import '../chunk-UVHIHIFQ.js';
2
+ export { SIDE_PANEL_LABELS, SIDE_PANEL_MAX_WIDTH, SIDE_PANEL_MIN_WIDTH, SIDE_PANEL_WIDTH, SidePanel, SidePanelFrame } from '../chunk-7L446LBC.js';
3
3
  import '../chunk-MBEZOURR.js';
4
4
  import '../chunk-FQ6J4DK7.js';
5
5
  import '../chunk-2YTOOH3A.js';
@@ -98,6 +98,8 @@
98
98
 
99
99
  .crewlet-side-panel--chat > .crewlet-side-panel__head {
100
100
  border-bottom-color: transparent;
101
+ /* Its controls end on the conversation's 12px edge, not the panel's 8px. */
102
+ padding-inline-end: var(--spacing-3);
101
103
  }
102
104
 
103
105
  .crewlet-side-panel--chat > .crewlet-side-panel__head--scrolled {
@@ -1,4 +1,4 @@
1
- export { Skeleton } from '../chunk-BMTNY3FK.js';
1
+ export { Skeleton } from '../chunk-WFAJYBLX.js';
2
2
  import '../chunk-HTS5RJ7S.js';
3
3
  import '../chunk-RRRK2KB6.js';
4
4
  import '../chunk-ODEQTPFM.js';
@@ -1,9 +1,9 @@
1
- export { Switcher } from '../chunk-QMEKGAEA.js';
1
+ export { Switcher } from '../chunk-VLU3FMJD.js';
2
2
  import '../chunk-A2TYEOB4.js';
3
3
  import '../chunk-KW7T23RT.js';
4
4
  import '../chunk-HBDA76EZ.js';
5
5
  import '../chunk-KDRJZWE3.js';
6
- import '../chunk-BMTNY3FK.js';
6
+ import '../chunk-WFAJYBLX.js';
7
7
  import '../chunk-XLMURU75.js';
8
8
  import '../chunk-WSIJDWUG.js';
9
9
  import '../chunk-SK4BIFTG.js';
@@ -1,4 +1,4 @@
1
- export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-ZUFV7753.js';
1
+ export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-I5HJ6Y6E.js';
2
2
  import '../chunk-SJ3EUCFD.js';
3
3
  import '../chunk-QRE6JCHS.js';
4
4
  import '../chunk-5SMYKL3D.js';
@@ -1,8 +1,8 @@
1
- export { TreeGrid } from '../chunk-TXTYTIIH.js';
1
+ export { TreeGrid } from '../chunk-JKGSPQUX.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-S3ZFYKNS.js';
3
+ import '../chunk-73OCFZN7.js';
4
4
  import '../chunk-X4HBZSXA.js';
5
- import '../chunk-BMTNY3FK.js';
5
+ import '../chunk-WFAJYBLX.js';
6
6
  import '../chunk-WSIJDWUG.js';
7
7
  import '../chunk-JMBPMSNI.js';
8
8
  import '../chunk-DTEDUAEW.js';
@@ -1,5 +1,5 @@
1
- export { WidgetFrame } from '../chunk-DF5B4QO5.js';
2
- import '../chunk-BMTNY3FK.js';
1
+ export { WidgetFrame } from '../chunk-5ZTH54O6.js';
2
+ import '../chunk-WFAJYBLX.js';
3
3
  import '../chunk-GBKBME7Q.js';
4
4
  import '../chunk-WGLOH33S.js';
5
5
  import '../chunk-HTS5RJ7S.js';
@@ -1,4 +1,4 @@
1
- export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-QP5XZ3QZ.js';
1
+ export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-SFO4KY65.js';
2
2
  import '../chunk-5SMYKL3D.js';
3
3
  import '../chunk-XZY6S3UC.js';
4
4
  import '../chunk-RRRK2KB6.js';
@@ -3,8 +3,8 @@ import { Kbd } from './chunk-VBBLHS2Y.js';
3
3
  import { isComposing } from './chunk-EDPMHSLZ.js';
4
4
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
- import './ChatScale-6NM4TP7R.css';
7
- import './Composer-UGPNQMYI.css';
6
+ import './ChatScale-LGESYXCO.css';
7
+ import './Composer-AVBJS6U4.css';
8
8
  import { forwardRef, useId } from 'react';
9
9
  import { jsxs, jsx } from 'react/jsx-runtime';
10
10
 
@@ -1,7 +1,7 @@
1
1
  import { safeHref } from './chunk-KBZO4B33.js';
2
2
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
- import './ChatScale-6NM4TP7R.css';
4
+ import './ChatScale-LGESYXCO.css';
5
5
  import './VisuallyHidden-OUYVMKEH.css';
6
6
  import './LinkCard-5I4MYU6I.css';
7
7
  import { useId } from 'react';
@@ -1,11 +1,11 @@
1
- import { Skeleton } from './chunk-BMTNY3FK.js';
1
+ import { Skeleton } from './chunk-WFAJYBLX.js';
2
2
  import { PrincipalAvatar } from './chunk-HF5L56YQ.js';
3
3
  import { RelativeTime } from './chunk-GBKBME7Q.js';
4
4
  import { Card } from './chunk-3C3TSWRR.js';
5
5
  import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
6
6
  import { Checkbox } from './chunk-DTEDUAEW.js';
7
- import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
8
7
  import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
8
+ import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
9
9
  import { AvatarStack } from './chunk-5SMYKL3D.js';
10
10
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
11
11
  import { cx } from './chunk-ODEQTPFM.js';
@@ -4,13 +4,23 @@ import { usePresence, releaseFocus } from './chunk-SNKQNAJI.js';
4
4
  import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
5
5
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
- import './InboxList-G627C2OQ.css';
8
- import { useId, useState, useRef, useLayoutEffect, useEffect, useCallback, cloneElement, Children, isValidElement } from 'react';
7
+ import './ChatScale-LGESYXCO.css';
8
+ import './InboxList-PKF6XXTA.css';
9
+ import { createContext, useContext, useId, useState, useRef, useEffect, useLayoutEffect, useCallback, cloneElement, Children, isValidElement } from 'react';
9
10
  import { ChevronDownGlyph } from '@crewlethq/icons/glyphs';
10
11
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
11
12
 
12
- function InboxList({ label, className, children, ...rest }) {
13
- return /* @__PURE__ */ jsx("nav", { ...rest, "aria-label": label, className: cx("crewlet-inbox-list", className), children });
13
+ var InboxDensity = createContext("default");
14
+ function InboxList({ label, density = "default", className, children, ...rest }) {
15
+ return /* @__PURE__ */ jsx(
16
+ "nav",
17
+ {
18
+ ...rest,
19
+ "aria-label": label,
20
+ className: cx("crewlet-inbox-list", density === "chat" && "crewlet-inbox-list--chat", className),
21
+ children: /* @__PURE__ */ jsx(InboxDensity.Provider, { value: density, children })
22
+ }
23
+ );
14
24
  }
15
25
  var INBOX_ROW_LEAVE = { transitions: ["grid-template-rows"] };
16
26
  function rowsOf(children) {
@@ -118,6 +128,8 @@ function InboxGroup({
118
128
  ...rest
119
129
  }) {
120
130
  const rows = useLeavingRows(children);
131
+ const density = useContext(InboxDensity);
132
+ const word = (words) => density === "chat" ? /* @__PURE__ */ jsx("span", { className: "crewlet-inbox-list__day", children: words }) : /* @__PURE__ */ jsx(Eyebrow, { children: words });
121
133
  const level = useHeadingLevel();
122
134
  const Heading = headingTag(headingLevel ?? level);
123
135
  const labelId = useId();
@@ -162,7 +174,7 @@ function InboxGroup({
162
174
  onClick: toggle,
163
175
  children: [
164
176
  /* @__PURE__ */ jsx(ChevronDownGlyph, { "aria-hidden": true, size: "sm", className: "crewlet-inbox-list__chevron" }),
165
- /* @__PURE__ */ jsx(Eyebrow, { children: label }),
177
+ word(label),
166
178
  counted
167
179
  ]
168
180
  }
@@ -170,7 +182,7 @@ function InboxGroup({
170
182
  arrival
171
183
  ] })
172
184
  ) : /* @__PURE__ */ jsxs(Heading, { id: labelId, className: "crewlet-inbox-list__label", children: [
173
- /* @__PURE__ */ jsx(Eyebrow, { children: label }),
185
+ word(label),
174
186
  counted,
175
187
  arrival
176
188
  ] }),
@@ -179,6 +191,7 @@ function InboxGroup({
179
191
  }
180
192
  );
181
193
  }
194
+ var toldOutsideList = false;
182
195
  function InboxRow({
183
196
  title,
184
197
  qualifier,
@@ -187,6 +200,10 @@ function InboxRow({
187
200
  meta,
188
201
  leading,
189
202
  excerpt,
203
+ lines = 3,
204
+ context,
205
+ contextIcon,
206
+ actions,
190
207
  aside,
191
208
  selected = false,
192
209
  unread = false,
@@ -209,6 +226,15 @@ function InboxRow({
209
226
  }) {
210
227
  const self = useRef(null);
211
228
  const presence = usePresence(!leaving, self, INBOX_ROW_LEAVE);
229
+ useEffect(() => {
230
+ if (toldOutsideList || !developing()) return;
231
+ const parent = self.current?.parentElement;
232
+ if (!parent || parent.tagName === "UL" || parent.tagName === "OL") return;
233
+ toldOutsideList = true;
234
+ console.warn(
235
+ "[crewlet] InboxRow was drawn outside a list element. Place rows in an InboxGroup, which draws the list they are items of (give it hideLabel where a heading would repeat the screen)."
236
+ );
237
+ }, []);
212
238
  const gone = !presence.present;
213
239
  useLayoutEffect(() => {
214
240
  if (presence.leaving) releaseFocus(self.current);
@@ -229,6 +255,8 @@ function InboxRow({
229
255
  const hasStatus = status !== void 0 && status !== null;
230
256
  const hasMeta = meta !== void 0;
231
257
  const hasOutcome = outcome !== void 0 && outcome !== null;
258
+ const hasContext = context !== void 0 && context !== null;
259
+ const hasActions = actions !== void 0 && actions !== null && actions !== false;
232
260
  const labelledBy = [
233
261
  leading === void 0 ? null : part("leading"),
234
262
  part("title"),
@@ -236,6 +264,7 @@ function InboxRow({
236
264
  where === void 0 ? null : part("where"),
237
265
  hasStatus || hasMeta ? part("end") : null,
238
266
  part("text"),
267
+ hasContext ? part("context") : null,
239
268
  hasOutcome ? part("outcome") : null,
240
269
  unread ? part("unread") : null,
241
270
  done ? part("done") : null
@@ -270,20 +299,34 @@ function InboxRow({
270
299
  /* @__PURE__ */ jsx("span", { id: part("where"), className: "crewlet-inbox-row__where", children: where }),
271
300
  " "
272
301
  ] }),
273
- /* @__PURE__ */ jsxs("span", { id: part("text"), className: "crewlet-inbox-row__text", children: [
302
+ /* @__PURE__ */ jsxs("span", { id: part("text"), className: cx("crewlet-inbox-row__text", `crewlet-inbox-row__text--lines-${lines}`), children: [
274
303
  children,
275
304
  excerpt === void 0 ? null : /* @__PURE__ */ jsxs(Fragment, { children: [
276
305
  " ",
277
306
  /* @__PURE__ */ jsx("span", { className: "crewlet-inbox-row__excerpt", children: excerpt })
278
307
  ] })
279
308
  ] }),
280
- hasOutcome ? /* @__PURE__ */ jsxs(Fragment, { children: [
309
+ hasContext ? /* @__PURE__ */ jsxs(Fragment, { children: [
281
310
  " ",
282
- /* @__PURE__ */ jsxs("span", { id: part("outcome"), className: cx("crewlet-inbox-row__outcome", `crewlet-inbox-row__outcome--${outcomeTone}`), children: [
283
- outcomeIcon === void 0 ? null : /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "crewlet-inbox-row__outcome-icon", children: outcomeIcon }),
284
- /* @__PURE__ */ jsx("span", { className: "crewlet-inbox-row__outcome-text", children: outcome })
311
+ /* @__PURE__ */ jsxs("span", { id: part("context"), className: "crewlet-inbox-row__line crewlet-inbox-row__context", children: [
312
+ contextIcon === void 0 ? null : /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "crewlet-inbox-row__line-icon", children: contextIcon }),
313
+ /* @__PURE__ */ jsx("span", { className: "crewlet-inbox-row__line-text", children: context })
285
314
  ] })
286
315
  ] }) : null,
316
+ hasOutcome ? /* @__PURE__ */ jsxs(Fragment, { children: [
317
+ " ",
318
+ /* @__PURE__ */ jsxs(
319
+ "span",
320
+ {
321
+ id: part("outcome"),
322
+ className: cx("crewlet-inbox-row__line", "crewlet-inbox-row__outcome", `crewlet-inbox-row__outcome--${outcomeTone}`),
323
+ children: [
324
+ outcomeIcon === void 0 ? null : /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "crewlet-inbox-row__line-icon crewlet-inbox-row__outcome-icon", children: outcomeIcon }),
325
+ /* @__PURE__ */ jsx("span", { className: "crewlet-inbox-row__line-text crewlet-inbox-row__outcome-text", children: outcome })
326
+ ]
327
+ }
328
+ )
329
+ ] }) : null,
287
330
  unread ? /* @__PURE__ */ jsxs(Fragment, { children: [
288
331
  " ",
289
332
  /* @__PURE__ */ jsx(VisuallyHidden, { id: part("unread"), children: unreadLabel })
@@ -304,7 +347,7 @@ function InboxRow({
304
347
  const current = selected ? "true" : void 0;
305
348
  const control = href !== void 0 ? /* @__PURE__ */ jsx("a", { className: controlClass, href, "aria-current": current, "aria-labelledby": labelledBy, onClick, children: contents }) : /* @__PURE__ */ jsx("button", { type: "button", className: controlClass, "aria-current": current, "aria-labelledby": labelledBy, onClick, children: contents });
306
349
  if (gone) return null;
307
- return /* @__PURE__ */ jsx(
350
+ return /* @__PURE__ */ jsxs(
308
351
  "li",
309
352
  {
310
353
  ...rest,
@@ -313,14 +356,18 @@ function InboxRow({
313
356
  className: cx(
314
357
  "crewlet-inbox-row",
315
358
  selected && "crewlet-inbox-row--selected",
359
+ hasActions && "crewlet-inbox-row--actions",
316
360
  arrived && "crewlet-inbox-row--arrived",
317
361
  presence.leaving && "crewlet-inbox-row--leaving",
318
362
  className
319
363
  ),
320
- children: /* @__PURE__ */ jsxs("div", { className: "crewlet-inbox-row__body", children: [
321
- control,
322
- aside === void 0 || aside === null || aside === false ? null : /* @__PURE__ */ jsx("div", { className: "crewlet-inbox-row__aside", children: aside })
323
- ] })
364
+ children: [
365
+ /* @__PURE__ */ jsxs("div", { className: "crewlet-inbox-row__body", children: [
366
+ control,
367
+ aside === void 0 || aside === null || aside === false ? null : /* @__PURE__ */ jsx("div", { className: "crewlet-inbox-row__aside", children: aside })
368
+ ] }),
369
+ hasActions ? /* @__PURE__ */ jsx("div", { className: "crewlet-inbox-row__actions", children: actions }) : null
370
+ ]
324
371
  }
325
372
  );
326
373
  }
@@ -0,0 +1,2 @@
1
+ import './ChatScale-LGESYXCO.css';
2
+ import './ChatMessage-ADVU5SLD.css';
@@ -1,4 +1,4 @@
1
- import { Skeleton } from './chunk-BMTNY3FK.js';
1
+ import { Skeleton } from './chunk-WFAJYBLX.js';
2
2
  import { RelativeTime } from './chunk-GBKBME7Q.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,7 +1,7 @@
1
1
  import { PrincipalAvatar } from './chunk-HF5L56YQ.js';
2
2
  import { toInstant, RelativeTime, formatExact, toISO } from './chunk-GBKBME7Q.js';
3
3
  import { Document } from './chunk-I4PBFJGX.js';
4
- import { Composer } from './chunk-KVNVLBCB.js';
4
+ import { Composer } from './chunk-2JNBDAOE.js';
5
5
  import { Button } from './chunk-NPPPQSRU.js';
6
6
  import { IconButton } from './chunk-BF2BXM6V.js';
7
7
  import { Count } from './chunk-Y5CMDLQM.js';
@@ -1,4 +1,4 @@
1
- import { Skeleton } from './chunk-BMTNY3FK.js';
1
+ import { Skeleton } from './chunk-WFAJYBLX.js';
2
2
  import { titleWhenCut, titleIfCut } from './chunk-WSIJDWUG.js';
3
3
  import { useReorder } from './chunk-JMBPMSNI.js';
4
4
  import { Checkbox } from './chunk-DTEDUAEW.js';
@@ -16,6 +16,7 @@ function SidePanelBase({
16
16
  alias,
17
17
  title,
18
18
  subtitle,
19
+ leading,
19
20
  icon,
20
21
  onClose,
21
22
  closeLabel,
@@ -129,6 +130,7 @@ function SidePanelBase({
129
130
  scrolled && "crewlet-side-panel__head--scrolled"
130
131
  ),
131
132
  children: [
133
+ leading ?? null,
132
134
  icon ? /* @__PURE__ */ jsx("span", { className: part("icon", alias), "aria-hidden": true, children: icon }) : null,
133
135
  subtitled ? (
134
136
  /* THE TITLE AND WHAT IT IS ABOUT, on one baseline ("Thread" and the
@@ -210,6 +212,7 @@ function SidePanel({
210
212
  title,
211
213
  subtitle,
212
214
  icon,
215
+ leading,
213
216
  hideTitle,
214
217
  density,
215
218
  onClose,
@@ -236,6 +239,7 @@ function SidePanel({
236
239
  title,
237
240
  subtitle,
238
241
  icon,
242
+ leading,
239
243
  hideTitle,
240
244
  density,
241
245
  onClose,
@@ -1,6 +1,6 @@
1
- import { BouncingDots, WorkingLine } from './chunk-QP5XZ3QZ.js';
1
+ import { BouncingDots, WorkingLine } from './chunk-SFO4KY65.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
- import './ChatScale-6NM4TP7R.css';
3
+ import './ChatScale-LGESYXCO.css';
4
4
  import './ActivityLine-6RZHUYAC.css';
5
5
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
6
6