@poolse/react-ui 0.1.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.
@@ -0,0 +1,424 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Message, Conversation, Uuid, Membership, Attachment, MessageCreateRequest } from '@poolse/sdk';
3
+ import { ReactNode, SVGProps, ReactElement } from 'react';
4
+ import { ReactionMap } from '@poolse/react';
5
+
6
+ interface ConversationViewProps {
7
+ /** Which conversation to mount. Re-mounting with a different id swaps cleanly. */
8
+ conversationId: string;
9
+ /** Optional placeholder when there are no messages. */
10
+ emptyState?: ReactNode;
11
+ /**
12
+ * Render-prop escape hatch for individual messages. Use this when
13
+ * CSS-variable theming + `<MessageBubble>` isn't enough — e.g. you
14
+ * want avatars, threading UI, reaction picker.
15
+ */
16
+ renderMessage?: (msg: Message, currentUserId: string | null) => ReactNode;
17
+ /** Translate a typing user_id into a display name. */
18
+ labelFor?: (userId: string) => string;
19
+ /**
20
+ * Auto-load the brand fonts (Bricolage Grotesque / Hanken Grotesk /
21
+ * JetBrains Mono) from Google Fonts on mount. Defaults to `true`.
22
+ * Set to `false` when the host app already loads them, when CSP
23
+ * forbids dynamic <link> injection, or when you're self-hosting.
24
+ */
25
+ loadFonts?: boolean;
26
+ }
27
+ /**
28
+ * Plug-and-play conversation surface. Composes `useMe`, `useMessages`,
29
+ * `useTyping`, and `useRealtimeStatus` from `@poolse/react` with the
30
+ * default `<MessageBubble>` / `<MessageComposer>` / `<TypingIndicator>`
31
+ * pieces from this package.
32
+ *
33
+ * Drop in once for instant chat; eject to individual pieces (or the
34
+ * raw hooks) when you need more control.
35
+ *
36
+ * ```tsx
37
+ * import '@poolse/react-ui/styles.css';
38
+ * import { PoolseProvider } from '@poolse/react';
39
+ * import { ConversationView } from '@poolse/react-ui';
40
+ *
41
+ * <PoolseProvider config={{apiUrl, getToken}}>
42
+ * <ConversationView conversationId={id} />
43
+ * </PoolseProvider>
44
+ * ```
45
+ */
46
+ declare function ConversationView({ conversationId, emptyState, renderMessage, labelFor, loadFonts, }: ConversationViewProps): react_jsx_runtime.JSX.Element;
47
+
48
+ interface MessageBubbleProps {
49
+ message: Message;
50
+ /** Used to decide left/right alignment + color, and whether to show the read-receipt glyph. */
51
+ currentUserId: string | null;
52
+ /**
53
+ * Show the read-receipt check-double on self-sent messages. Pass
54
+ * `true` when at least one other member's `last_read_message_id`
55
+ * is >= this message's sequence. Single-tick + double-tick variants
56
+ * map to "sent" and "read" respectively per brand conventions.
57
+ */
58
+ readState?: 'sent' | 'read';
59
+ }
60
+ /**
61
+ * One message bubble. The default renderer for `<ConversationView>` —
62
+ * customers swap it out via `renderMessage` for full visual control
63
+ * without rebuilding the rest of the chat.
64
+ *
65
+ * Styling: 16px radius bubble with a 5px tail on the sender's side
66
+ * (coral for self, surface-with-border for others), matching the
67
+ * brand-kit chat showcase.
68
+ */
69
+ declare function MessageBubble({ message, currentUserId, readState }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
70
+
71
+ interface MessageComposerProps {
72
+ /** Called when the user submits a message. Return value awaited so the input can disable until send completes. */
73
+ onSend: (body: string) => Promise<unknown> | void;
74
+ /** Called on every keystroke. Hook this to `useTyping().signalTyping`. */
75
+ onTyping?: () => void;
76
+ placeholder?: string;
77
+ disabled?: boolean;
78
+ }
79
+ /**
80
+ * Single-line composer with Enter-to-send (Shift+Enter = newline).
81
+ * Disables while the send is in flight so duplicate submits are
82
+ * impossible from the UI side (the SDK also dedupes via Idempotency-Key).
83
+ */
84
+ declare function MessageComposer({ onSend, onTyping, placeholder, disabled, }: MessageComposerProps): react_jsx_runtime.JSX.Element;
85
+
86
+ interface TypingIndicatorProps {
87
+ /** Set of user_ids currently typing. */
88
+ typing: Set<string>;
89
+ /** Resolves a user_id to a display label. Defaults to the id's first 6 chars. */
90
+ labelFor?: (userId: string) => string;
91
+ }
92
+ /**
93
+ * Animated 3-dot typing bubble with an inline name label. Hidden
94
+ * (zero vertical space) when no one is typing, so the message list
95
+ * doesn't jump when the indicator appears/disappears.
96
+ *
97
+ * Styling: matches the brand-kit chat showcase — surface bubble with
98
+ * 16px radius + 5px asymmetric tail, bouncing dots in `--poolse-ink-3`.
99
+ */
100
+ declare function TypingIndicator({ typing, labelFor }: TypingIndicatorProps): react_jsx_runtime.JSX.Element;
101
+
102
+ interface AvatarProps {
103
+ /** URL to a profile image. Renders initials fallback when omitted or load fails. */
104
+ src?: string | null;
105
+ /** Used for initials and as the image alt text. */
106
+ name?: string | null;
107
+ /** Show a green presence dot in the bottom-right corner. */
108
+ online?: boolean;
109
+ /** Size variant; defaults to `md` (40px). */
110
+ size?: 'sm' | 'md' | 'lg';
111
+ className?: string;
112
+ }
113
+ declare function Avatar({ src, name, online, size, className }: AvatarProps): react_jsx_runtime.JSX.Element;
114
+
115
+ interface ConversationListProps {
116
+ /** Currently selected conversation id — sets `aria-current` + selected styling. */
117
+ selectedId?: string | null;
118
+ /** Click handler — typical use is to update routing / selectedId state. */
119
+ onSelect?: (conv: Conversation) => void;
120
+ /** Optional override for each row's rendering. */
121
+ renderItem?: (conv: Conversation, selected: boolean) => ReactNode;
122
+ /** Custom empty state when there are no conversations. */
123
+ emptyState?: ReactNode;
124
+ }
125
+ declare function ConversationList({ selectedId, onSelect, renderItem, emptyState, }: ConversationListProps): react_jsx_runtime.JSX.Element;
126
+
127
+ interface MemberListProps {
128
+ conversationId: Uuid;
129
+ /**
130
+ * Resolve a `user_id` to a friendly display name. When omitted,
131
+ * shows the truncated user_id (good enough for testing; real apps
132
+ * pass a name lookup).
133
+ */
134
+ labelFor?: (userId: Uuid) => string;
135
+ /**
136
+ * Resolve an avatar URL by user_id. Optional — initials fallback
137
+ * is used when not provided or when this returns null.
138
+ */
139
+ avatarFor?: (userId: Uuid) => string | null;
140
+ /**
141
+ * Set of currently-online user_ids. Drives the green presence dot.
142
+ * Typically wired from `usePresence(conversationId).online`.
143
+ */
144
+ onlineUserIds?: Set<Uuid>;
145
+ /**
146
+ * If provided, surfaces a "remove" icon next to each member that
147
+ * the caller is allowed to remove. The caller is responsible for
148
+ * the permission check (typically: only owners/admins, never self).
149
+ */
150
+ canRemove?: (m: Membership) => boolean;
151
+ /** Override for each row's rendering. */
152
+ renderItem?: (m: Membership) => ReactNode;
153
+ /** Custom empty state when the conversation has zero members. */
154
+ emptyState?: ReactNode;
155
+ }
156
+ declare function MemberList({ conversationId, labelFor, avatarFor, onlineUserIds, canRemove, renderItem, emptyState, }: MemberListProps): react_jsx_runtime.JSX.Element;
157
+
158
+ interface AttachmentPreviewProps {
159
+ /**
160
+ * The attachment to render. Pass either the full row (recommended
161
+ * — saves a network round-trip; you usually have it from the
162
+ * message payload) OR just the id. With just the id, the
163
+ * file-vs-image discriminator falls back to the URL's content-type
164
+ * detection from the file extension in `original_filename`.
165
+ */
166
+ attachment: Attachment | {
167
+ id: Uuid;
168
+ };
169
+ /** Optional click handler — defaults to "open in new tab" on file mode. */
170
+ onClick?: (att: {
171
+ id: Uuid;
172
+ }) => void;
173
+ }
174
+ declare function AttachmentPreview({ attachment, onClick }: AttachmentPreviewProps): react_jsx_runtime.JSX.Element;
175
+
176
+ interface ReactionStripProps {
177
+ messageId: Uuid;
178
+ conversationId: Uuid;
179
+ /** Seed reactions from the message you already have in state. */
180
+ initialReactions?: ReactionMap;
181
+ /** Used to mark "your own" reactions visually + drive the optimistic add/remove. */
182
+ currentUserId?: Uuid | null;
183
+ /**
184
+ * Show the "add reaction" button at the end of the strip. Defaults
185
+ * to true; set false to render reactions as a read-only display.
186
+ */
187
+ picker?: boolean;
188
+ }
189
+ /**
190
+ * Inline strip of reaction pills with optional emoji picker. Clicking
191
+ * a pill the user already reacted with REMOVES that reaction;
192
+ * clicking one they haven't, ADDS it.
193
+ */
194
+ declare function ReactionStrip({ messageId, conversationId, initialReactions, currentUserId, picker, }: ReactionStripProps): react_jsx_runtime.JSX.Element | null;
195
+ /**
196
+ * Emoji picker popover. Renders the common set; customers needing
197
+ * the full emoji set should provide their own picker via children.
198
+ */
199
+ declare function ReactionPicker({ onPick, onClose, }: {
200
+ onPick: (emoji: string) => void;
201
+ onClose?: () => void;
202
+ }): react_jsx_runtime.JSX.Element;
203
+
204
+ interface MentionInputProps {
205
+ conversationId: Uuid;
206
+ /**
207
+ * Called when the user submits a message. Receives the full
208
+ * `MessageCreateRequest` shape (so `mentions` is wired correctly),
209
+ * not just `body`. Typically:
210
+ * `onSend={(req) => send(req)}` // from useMessages
211
+ */
212
+ onSend: (req: MessageCreateRequest) => Promise<unknown> | void;
213
+ onTyping?: () => void;
214
+ placeholder?: string;
215
+ disabled?: boolean;
216
+ /**
217
+ * Resolve a user_id to a display name for the @ dropdown.
218
+ * Defaults to the first 8 chars of the id.
219
+ */
220
+ labelFor?: (userId: Uuid) => string;
221
+ }
222
+ declare function MentionInput({ conversationId, onSend, onTyping, placeholder, disabled, labelFor, }: MentionInputProps): react_jsx_runtime.JSX.Element;
223
+
224
+ declare const ICONS: {
225
+ readonly attachment: {
226
+ readonly vb: "0 0 24 24";
227
+ readonly d: "<path d=\"M20 11.6 11.4 20.2a5 5 0 0 1-7.1-7.1l8.7-8.7a3.3 3.3 0 0 1 4.7 4.7l-8.6 8.6a1.65 1.65 0 0 1-2.36-2.32l7.86-7.86\"/>";
228
+ };
229
+ readonly bell: {
230
+ readonly vb: "0 0 24 24";
231
+ readonly d: "<path d=\"M6 9.2a6 6 0 0 1 12 0c0 4.8 1.4 6.3 1.9 6.8H4.1C4.6 15.5 6 14 6 9.2Z\"/><path d=\"M9.6 19.8a2.5 2.5 0 0 0 4.8 0\"/>";
232
+ };
233
+ readonly 'check-double': {
234
+ readonly vb: "0 0 24 24";
235
+ readonly d: "<path d=\"M2.5 12.8 6.9 17 15.4 7.6\"/><path d=\"M11.4 16.4 12.3 17.2 21 7.6\"/>";
236
+ };
237
+ readonly check: {
238
+ readonly vb: "0 0 24 24";
239
+ readonly d: "<path d=\"M4.5 12.6 9.4 17.4 19.5 6.6\"/>";
240
+ };
241
+ readonly 'chevron-down': {
242
+ readonly vb: "0 0 24 24";
243
+ readonly d: "<path d=\"M5 9 12 16 19 9\"/>";
244
+ };
245
+ readonly 'chevron-right': {
246
+ readonly vb: "0 0 24 24";
247
+ readonly d: "<path d=\"M9 5 16 12 9 19\"/>";
248
+ };
249
+ readonly close: {
250
+ readonly vb: "0 0 24 24";
251
+ readonly d: "<path d=\"M6 6 18 18M18 6 6 18\"/>";
252
+ };
253
+ readonly code: {
254
+ readonly vb: "0 0 24 24";
255
+ readonly d: "<path d=\"M9 7.5 4.5 12 9 16.5\"/><path d=\"M15 7.5 19.5 12 15 16.5\"/><path d=\"M13.2 5 10.8 19\"/>";
256
+ };
257
+ readonly compose: {
258
+ readonly vb: "0 0 24 24";
259
+ readonly d: "<path d=\"M11.5 4H6a2.5 2.5 0 0 0-2.5 2.5V18A2.5 2.5 0 0 0 6 20.5h11.5A2.5 2.5 0 0 0 20 18v-5.5\"/><path d=\"M18.4 2.7a2.05 2.05 0 0 1 2.9 2.9L12 15l-4 1 1-4 9.4-9.3Z\"/>";
260
+ };
261
+ readonly copy: {
262
+ readonly vb: "0 0 24 24";
263
+ readonly d: "<rect x=\"8.4\" y=\"8.4\" width=\"11.2\" height=\"11.2\" rx=\"2.3\"/><path d=\"M5.6 15.6H5A1.6 1.6 0 0 1 3.4 14V5A1.6 1.6 0 0 1 5 3.4h9A1.6 1.6 0 0 1 15.6 5v.6\"/>";
264
+ };
265
+ readonly download: {
266
+ readonly vb: "0 0 24 24";
267
+ readonly d: "<path d=\"M12 3.2v11.6\"/><path d=\"M7.4 10.2 12 14.8 16.6 10.2\"/><path d=\"M4 19.6h16\"/>";
268
+ };
269
+ readonly edit: {
270
+ readonly vb: "0 0 24 24";
271
+ readonly d: "<path d=\"M16.7 3.3a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4 12.7-12.7Z\"/>";
272
+ };
273
+ readonly emoji: {
274
+ readonly vb: "0 0 24 24";
275
+ readonly d: "<circle cx=\"12\" cy=\"12\" r=\"8.6\"/><circle cx=\"9\" cy=\"10\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"15\" cy=\"10\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M8.4 14.2a4.6 4.6 0 0 0 7.2 0\"/>";
276
+ };
277
+ readonly heart: {
278
+ readonly vb: "0 0 24 24";
279
+ readonly d: "<path d=\"M12 20.3 4.4 12.9a4.6 4.6 0 1 1 6.5-6.5l1.1 1.1 1.1-1.1a4.6 4.6 0 1 1 6.5 6.5L12 20.3Z\"/>";
280
+ };
281
+ readonly image: {
282
+ readonly vb: "0 0 24 24";
283
+ readonly d: "<rect x=\"3.2\" y=\"4.2\" width=\"17.6\" height=\"15.6\" rx=\"2.6\"/><circle cx=\"8.6\" cy=\"9.4\" r=\"1.7\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M20.8 15.8 16 11 6 19.8\"/>";
284
+ };
285
+ readonly info: {
286
+ readonly vb: "0 0 24 24";
287
+ readonly d: "<circle cx=\"12\" cy=\"12\" r=\"8.6\"/><path d=\"M12 11v5.2\"/><circle cx=\"12\" cy=\"7.7\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/>";
288
+ };
289
+ readonly key: {
290
+ readonly vb: "0 0 24 24";
291
+ readonly d: "<circle cx=\"8\" cy=\"8\" r=\"4.4\"/><path d=\"M11.1 11.1 20 20\"/><path d=\"M16.6 16.6 18.6 14.6M14 14l2-2\"/>";
292
+ };
293
+ readonly link: {
294
+ readonly vb: "0 0 24 24";
295
+ readonly d: "<path d=\"M10.2 13.8a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-1.2 1.2\"/><path d=\"M13.8 10.2a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l1.2-1.2\"/>";
296
+ };
297
+ readonly lock: {
298
+ readonly vb: "0 0 24 24";
299
+ readonly d: "<rect x=\"4.6\" y=\"10.4\" width=\"14.8\" height=\"9.8\" rx=\"2.2\"/><path d=\"M8 10.4V7a4 4 0 0 1 8 0v3.4\"/>";
300
+ };
301
+ readonly message: {
302
+ readonly vb: "0 0 24 24";
303
+ readonly d: "<path d=\"M20.5 11.4c0 4.5-3.9 8.1-8.5 8.1a9 9 0 0 1-3.7-.78L3.5 20.5l1.8-4.6A7.9 7.9 0 0 1 3.5 11.4C3.5 6.9 7.4 3.3 12 3.3s8.5 3.6 8.5 8.1Z\"/>";
304
+ };
305
+ readonly messages: {
306
+ readonly vb: "0 0 24 24";
307
+ readonly d: "<path d=\"M14 9.2a4.7 4.7 0 0 1-4.7 4.7H6.8L3.5 16.4v-2.9A4.7 4.7 0 0 1 6.8 4.5h2.5A4.7 4.7 0 0 1 14 9.2Z\"/><path d=\"M9.4 13.6A4.7 4.7 0 0 0 13.6 16h3.6l3.3 2.5v-2.9a4.7 4.7 0 0 0-2.4-4.1\"/>";
308
+ };
309
+ readonly mic: {
310
+ readonly vb: "0 0 24 24";
311
+ readonly d: "<rect x=\"9\" y=\"2.6\" width=\"6\" height=\"11.2\" rx=\"3\"/><path d=\"M5.6 11.2a6.4 6.4 0 0 0 12.8 0\"/><path d=\"M12 17.6v3.4\"/><path d=\"M8.6 21h6.8\"/>";
312
+ };
313
+ readonly 'more-h': {
314
+ readonly vb: "0 0 24 24";
315
+ readonly d: "<circle cx=\"5.4\" cy=\"12\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"12\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18.6\" cy=\"12\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/>";
316
+ };
317
+ readonly 'more-v': {
318
+ readonly vb: "0 0 24 24";
319
+ readonly d: "<circle cx=\"12\" cy=\"5.4\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"12\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"18.6\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/>";
320
+ };
321
+ readonly pin: {
322
+ readonly vb: "0 0 24 24";
323
+ readonly d: "<path d=\"M9 3.4h6v1.8l-1 5.6 3 3.2H7l3-3.2-1-5.6V3.4Z\"/><path d=\"M12 17v3.6\"/>";
324
+ };
325
+ readonly plus: {
326
+ readonly vb: "0 0 24 24";
327
+ readonly d: "<path d=\"M12 5v14M5 12h14\"/>";
328
+ };
329
+ readonly presence: {
330
+ readonly vb: "0 0 24 24";
331
+ readonly d: "<circle cx=\"12\" cy=\"12\" r=\"9\" fill=\"currentColor\" opacity=\"0.18\" stroke=\"none\"/><circle cx=\"12\" cy=\"12\" r=\"5\" fill=\"currentColor\" stroke=\"none\"/>";
332
+ };
333
+ readonly pulse: {
334
+ readonly vb: "0 0 24 24";
335
+ readonly d: "<path d=\"M3 13h4.6l2.2-4.6 3.4 9 2.2-4.4H21\"/>";
336
+ };
337
+ readonly reply: {
338
+ readonly vb: "0 0 24 24";
339
+ readonly d: "<path d=\"M9 7 4 12l5 5\"/><path d=\"M4 12h9.5a6.5 6.5 0 0 1 6.5 6.5V20\"/>";
340
+ };
341
+ readonly search: {
342
+ readonly vb: "0 0 24 24";
343
+ readonly d: "<circle cx=\"11\" cy=\"11\" r=\"6.8\"/><path d=\"M20.8 20.8 16 16\"/>";
344
+ };
345
+ readonly 'send-fill': {
346
+ readonly vb: "0 0 24 24";
347
+ readonly d: "<path fill=\"currentColor\" stroke=\"none\" d=\"M21.7 2.3a1 1 0 0 1 .25 1L15.3 21.8a1 1 0 0 1-1.86.06L10.6 14.2 3 11.4a1 1 0 0 1 .06-1.9L20.7 2.05a1 1 0 0 1 1 .25Z\"/>";
348
+ };
349
+ readonly send: {
350
+ readonly vb: "0 0 24 24";
351
+ readonly d: "<path d=\"M21.4 2.6 11 13\"/><path d=\"M21.4 2.6 14.8 21.5a.6.6 0 0 1-1.1.05L11 14l-7.5-2.7a.6.6 0 0 1 .05-1.1L21.4 2.6Z\"/>";
352
+ };
353
+ readonly settings: {
354
+ readonly vb: "0 0 24 24";
355
+ readonly d: "<circle cx=\"12\" cy=\"12\" r=\"3.1\"/><path d=\"M12 2.6V5M12 19v2.4M4.2 4.2 5.9 5.9M18.1 18.1l1.7 1.7M2.6 12H5M19 12h2.4M4.2 19.8 5.9 18.1M18.1 5.9l1.7-1.7\"/>";
356
+ };
357
+ readonly sliders: {
358
+ readonly vb: "0 0 24 24";
359
+ readonly d: "<path d=\"M4 7h9M17 7h3\"/><circle cx=\"15\" cy=\"7\" r=\"2.1\"/><path d=\"M4 17h3M11 17h9\"/><circle cx=\"9\" cy=\"17\" r=\"2.1\"/>";
360
+ };
361
+ readonly 'thumbs-up': {
362
+ readonly vb: "0 0 24 24";
363
+ readonly d: "<path d=\"M7 10.4V20H4.2V10.4Z\"/><path d=\"M7 10.4 11 3.2a2 2 0 0 1 1.9 2.2L12.4 9H18a2 2 0 0 1 2 2.4l-1.1 6A2 2 0 0 1 16.9 20H7\"/>";
364
+ };
365
+ readonly trash: {
366
+ readonly vb: "0 0 24 24";
367
+ readonly d: "<path d=\"M4 7h16\"/><path d=\"M9.2 7V5.2A1.8 1.8 0 0 1 11 3.4h2a1.8 1.8 0 0 1 1.8 1.8V7\"/><path d=\"M6.2 7 7.2 19A1.9 1.9 0 0 0 9.1 20.7h5.8A1.9 1.9 0 0 0 16.8 19L17.8 7\"/><path d=\"M10.3 11v5M13.7 11v5\"/>";
368
+ };
369
+ readonly typing: {
370
+ readonly vb: "0 0 24 24";
371
+ readonly d: "<circle cx=\"6\" cy=\"12\" r=\"1.7\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"12\" r=\"1.7\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18\" cy=\"12\" r=\"1.7\" fill=\"currentColor\" stroke=\"none\"/>";
372
+ };
373
+ readonly 'user-plus': {
374
+ readonly vb: "0 0 24 24";
375
+ readonly d: "<circle cx=\"9\" cy=\"8\" r=\"3.8\"/><path d=\"M3 20a6 6 0 0 1 12 0\"/><path d=\"M18 8v6M15 11h6\"/>";
376
+ };
377
+ readonly user: {
378
+ readonly vb: "0 0 24 24";
379
+ readonly d: "<circle cx=\"12\" cy=\"8\" r=\"4\"/><path d=\"M4.6 20a7.4 7.4 0 0 1 14.8 0\"/>";
380
+ };
381
+ readonly users: {
382
+ readonly vb: "0 0 24 24";
383
+ readonly d: "<circle cx=\"9\" cy=\"8\" r=\"3.6\"/><path d=\"M2.6 20a6.4 6.4 0 0 1 12.8 0\"/><path d=\"M15.8 4.7a3.6 3.6 0 0 1 0 6.6\"/><path d=\"M17.6 20a6.4 6.4 0 0 0-3.1-5.5\"/>";
384
+ };
385
+ readonly webhook: {
386
+ readonly vb: "0 0 24 24";
387
+ readonly d: "<circle cx=\"6\" cy=\"6\" r=\"2.6\"/><circle cx=\"18\" cy=\"9\" r=\"2.6\"/><circle cx=\"9.5\" cy=\"18\" r=\"2.6\"/><path d=\"M7.9 7.9 12 12l3.7-1.5\"/><path d=\"M11.6 12.7 9.8 16\"/>";
388
+ };
389
+ };
390
+ type IconName = keyof typeof ICONS;
391
+
392
+ interface PoolseIconProps extends Omit<SVGProps<SVGSVGElement>, 'children'> {
393
+ /** Icon name — see {@link IconName} for the full list of 41 icons. */
394
+ name: IconName;
395
+ /** Width + height in pixels. Defaults to `1.2em` so the icon scales with surrounding text. */
396
+ size?: number | string;
397
+ /** Accessibility label. Defaults to the icon name; pass `null` to hide from AT entirely. */
398
+ label?: string | null;
399
+ }
400
+ declare function PoolseIcon({ name, size, label, className, style, ...rest }: PoolseIconProps): ReactElement;
401
+
402
+ type PoolseLogoVariant = 'lockup' | 'mark' | 'wordmark' | 'mono';
403
+ interface PoolseLogoProps extends Omit<SVGProps<SVGSVGElement>, 'children'> {
404
+ variant?: PoolseLogoVariant;
405
+ /** Height in pixels — width is computed from the variant's aspect ratio. */
406
+ size?: number;
407
+ /** Accessibility label. Defaults to "poolse"; pass `null` for decoration-only. */
408
+ label?: string | null;
409
+ }
410
+ declare function PoolseLogo({ variant, size, label, className, ...rest }: PoolseLogoProps): ReactElement;
411
+
412
+ /**
413
+ * Inject the brand fonts on mount. Pass `false` to opt out (e.g. when
414
+ * the host app already loads them, or to honor a strict CSP that
415
+ * forbids dynamic <link> injection).
416
+ */
417
+ declare function usePoolseFonts(enabled?: boolean): void;
418
+ /**
419
+ * Mount once to opt INTO the brand fonts. Renders nothing — purely a
420
+ * side-effect component for tree-level activation.
421
+ */
422
+ declare function PoolseFonts(): null;
423
+
424
+ export { AttachmentPreview, type AttachmentPreviewProps, Avatar, type AvatarProps, ConversationList, type ConversationListProps, ConversationView, type ConversationViewProps, type IconName, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, PoolseFonts, PoolseIcon, type PoolseIconProps, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, ReactionPicker, ReactionStrip, type ReactionStripProps, TypingIndicator, type TypingIndicatorProps, usePoolseFonts };