@poolse/react-native 3.10.0 → 3.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -0
- package/README.md +23 -3
- package/dist/index.cjs +360 -150
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1852 -1736
- package/dist/index.d.ts +1852 -1736
- package/dist/index.js +362 -153
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactNode, ReactElement } from 'react';
|
|
3
|
-
import { Conversation, Uuid, Citation, Message, MeetingMoment, LiveCall, RecordingMode, ConsentDecision, CallAgent, AgentEscalation, EscalationReply, AgentApproval, Attachment, CallSummary, RoomSession, GuestLobbyStatus, MeetingCard as MeetingCard$1, RsvpResponse, RoomPresenceEntry, AnnotationState, LiveTranscriptSegment, CallConnectionQuality, CallNetworkIssue, CallReaction, WhiteboardItem, WhiteboardModel,
|
|
2
|
+
import { ReactNode, ReactElement, Ref } from 'react';
|
|
3
|
+
import { Conversation, Uuid, Citation, Message, MeetingMoment, MessageCreateRequest, AttachmentUploadInput, LiveCall, RecordingMode, ConsentDecision, CallAgent, AgentEscalation, EscalationReply, AgentApproval, Attachment, CallSummary, RoomSession, GuestLobbyStatus, MeetingCard as MeetingCard$1, RsvpResponse, RoomPresenceEntry, AnnotationState, ScreenAnnotations, LiveTranscriptSegment, CallConnectionQuality, CallNetworkIssue, CallReaction, WhiteboardItem, WhiteboardModel, Membership, PresenceState, LinkPreview, Poolse, Block, BlockActionRequest, CatchUp, Poll } from '@poolse/sdk';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
6
|
-
import { GroupPosition, UseCallAgents, UseWhisper, UseAgenda, UseBreakouts, UseLobby, UseMoments, UseQuestions, UseStage,
|
|
6
|
+
import { FormatKind, SlashCommand, GroupPosition, UseCallAgents, UseWhisper, UseAgenda, UseBreakouts, UseLobby, UseMoments, UseQuestions, UseStage, UseBreakoutsOptions, DlpOutcome, MentionGroup, CustomEmoji } from '@poolse/react';
|
|
7
7
|
import { ThemeInput, ColorSchemePreference, NativeThemeOptions, NativeTheme } from '@poolse/theme';
|
|
8
8
|
export { BUILT_IN_THEME_IDS, BuiltInThemeId, ColorScheme, ColorSchemePreference, DEFAULT_THEME_ID, FlatThemeTokens, Theme, ThemeInput, createTheme, decodeTheme, encodeTheme, tokensFromFlat } from '@poolse/theme';
|
|
9
9
|
|
|
@@ -143,1744 +143,123 @@ declare function MessageExtrasProvider({ value, children, }: {
|
|
|
143
143
|
/** The nearest `MessageExtrasProvider`'s handlers (empty without one). */
|
|
144
144
|
declare function useMessageExtras(): MessageExtrasHandlers;
|
|
145
145
|
|
|
146
|
-
|
|
147
|
-
* - `bubbles` — chat bubbles, own messages on the right (the default).
|
|
148
|
-
* - `list` — Slack-style full-width rows: avatar, name and time once
|
|
149
|
-
* per run of messages.
|
|
150
|
-
* - `compact` — Discord/IRC-style dense lines: time, coloured name and
|
|
151
|
-
* text on one line.
|
|
152
|
-
*/
|
|
153
|
-
type ChatLayout = 'bubbles' | 'list' | 'compact';
|
|
154
|
-
type ChatDensity = 'comfortable' | 'compact';
|
|
155
|
-
/** `'12h'`, `'24h'`, or your own formatter. Omitted: the locale's default. */
|
|
156
|
-
type TimeFormat = '12h' | '24h' | ((date: Date) => string);
|
|
157
|
-
/** What each slot function receives. */
|
|
158
|
-
interface MessageSlotProps {
|
|
159
|
-
message: Message;
|
|
160
|
-
/** The viewer sent it. */
|
|
161
|
-
isSelf: boolean;
|
|
162
|
-
sender: MessageUser;
|
|
163
|
-
layout: ChatLayout;
|
|
164
|
-
/** First message of a same-sender run (always true in `compact`). */
|
|
165
|
-
isRunStart: boolean;
|
|
146
|
+
interface MessageComposerProps {
|
|
166
147
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
148
|
+
* Called when the user taps Send. Second arg carries
|
|
149
|
+
* `quoted_message_id` (when replying) and `attachment_ids`
|
|
150
|
+
* (resolved from the composer's upload queue). Awaited so the
|
|
151
|
+
* composer disables until the send round-trips. Resolve to `false` to
|
|
152
|
+
* keep the draft (text and files), e.g. a cancelled `beforeSend`.
|
|
170
153
|
*/
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
* - `thread` — the "N replies" link
|
|
182
|
-
* - `actions` — the long-press actions sheet
|
|
183
|
-
*/
|
|
184
|
-
interface MessageSlots {
|
|
185
|
-
header?: MessageSlot;
|
|
186
|
-
body?: MessageSlot;
|
|
187
|
-
attachments?: MessageSlot;
|
|
188
|
-
reactions?: MessageSlot;
|
|
189
|
-
thread?: MessageSlot;
|
|
190
|
-
actions?: MessageSlot;
|
|
191
|
-
}
|
|
192
|
-
type MessageSlotContext = Omit<MessageSlotProps, 'children'>;
|
|
193
|
-
/** Third argument to `renderMessage`. */
|
|
194
|
-
interface RenderMessageContext {
|
|
195
|
-
layout: ChatLayout;
|
|
196
|
-
groupPosition: GroupPosition;
|
|
197
|
-
isRunStart: boolean;
|
|
198
|
-
/** The row ConversationView would have rendered for this message. */
|
|
199
|
-
renderDefault: () => ReactElement;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
type BubbleGroupPosition = 'first' | 'middle' | 'last' | 'standalone';
|
|
203
|
-
interface MessageBubbleProps {
|
|
204
|
-
message: Message;
|
|
205
|
-
/** Used to decide left/right alignment, color, and read-receipt visibility. */
|
|
206
|
-
currentUserId: string | null;
|
|
207
|
-
/** `'sent'` → single tick, `'read'` → double tick (theme.colors.accent). */
|
|
208
|
-
readState?: 'sent' | 'read';
|
|
209
|
-
/** Label resolver keyed by `external_id` — falls back to the externalId itself. */
|
|
154
|
+
onSend: (body: string, opts?: ComposerSendOptions) => Promise<unknown> | void;
|
|
155
|
+
/** Called on every keystroke. Hook to `useTyping().signalTyping`. */
|
|
156
|
+
onTyping?: () => void;
|
|
157
|
+
placeholder?: string;
|
|
158
|
+
disabled?: boolean;
|
|
159
|
+
/** Renders a quote chip above the input; cleared by the caller in `onSend`. */
|
|
160
|
+
replyingTo?: Message | null;
|
|
161
|
+
/** User tapped (x) on the quote chip. */
|
|
162
|
+
onCancelReply?: () => void;
|
|
163
|
+
/** Display label for the quoted sender, keyed by `external_id`. */
|
|
210
164
|
labelFor?: (externalId: string) => string;
|
|
211
|
-
/**
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
|
|
215
|
-
/** Truncate at this many chars and show a "Read more" toggle. Defaults to 0 (off). */
|
|
216
|
-
maxBodyLength?: number;
|
|
217
|
-
/** Show a colored sender label above other-side bubbles. Only meaningful in group chats. */
|
|
218
|
-
showSenderName?: boolean;
|
|
219
|
-
/** Makes the sender label (see `showSenderName`) tappable. */
|
|
220
|
-
onSenderPress?: () => void;
|
|
221
|
-
/** Slot for an actions trigger — typically a chevron rendered by `<MessageRow>`. */
|
|
222
|
-
actionsTrigger?: ReactNode;
|
|
165
|
+
/** Show the paperclip + queue strip. Defaults true. */
|
|
166
|
+
attachments?: boolean;
|
|
167
|
+
/** Tap on the paperclip — wire to `<AttachmentPicker>` from the same package. */
|
|
168
|
+
onAttachPress?: () => void;
|
|
223
169
|
/**
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
170
|
+
* Distance from the top of the screen to the top of the
|
|
171
|
+
* KeyboardAvoidingView — typically the height of any navigation
|
|
172
|
+
* header sitting above the chat. Pass this when the iOS keyboard
|
|
173
|
+
* suggestions strip ends up covering the composer (a sign the
|
|
174
|
+
* computed offset is wrong). Defaults to 0; on Android it's
|
|
175
|
+
* ignored.
|
|
227
176
|
*/
|
|
228
|
-
|
|
229
|
-
/** Render in-bubble attachments (images, file cards). Defaults to true. */
|
|
230
|
-
showAttachments?: boolean;
|
|
177
|
+
keyboardOffset?: number;
|
|
231
178
|
/**
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
* `
|
|
235
|
-
*
|
|
179
|
+
* When set, the composer enters edit mode: prefills the input with
|
|
180
|
+
* the message body and renders an "Editing message" chip above
|
|
181
|
+
* (mirrors `replyingTo`). Tapping Send calls `onSaveEdit(body)`
|
|
182
|
+
* instead of `onSend`; `onCancelEdit` clears the chip and restores
|
|
183
|
+
* the previous draft. Pass `null` (or omit) when not editing.
|
|
236
184
|
*/
|
|
237
|
-
|
|
185
|
+
editingMessage?: Message | null;
|
|
186
|
+
onCancelEdit?: () => void;
|
|
187
|
+
onSaveEdit?: (body: string) => Promise<unknown> | void;
|
|
238
188
|
/**
|
|
239
|
-
*
|
|
240
|
-
*
|
|
189
|
+
* Controlled text. With `value`, the composer shows it and reports
|
|
190
|
+
* keystrokes through `onChangeText` (ConversationView uses this for
|
|
191
|
+
* drafts). Edit mode keeps its own text either way.
|
|
241
192
|
*/
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
|
|
193
|
+
value?: string;
|
|
194
|
+
/** Every change to the (non-edit) text, typed or programmatic. */
|
|
195
|
+
onChangeText?: (text: string) => void;
|
|
196
|
+
/** The cursor / selection moved. */
|
|
197
|
+
onSelectionChange?: (selection: {
|
|
198
|
+
start: number;
|
|
199
|
+
end: number;
|
|
200
|
+
}) => void;
|
|
201
|
+
/** An emoji button that opens `<EmojiPicker>` and inserts at the cursor. Defaults to true. */
|
|
202
|
+
emojiPicker?: boolean;
|
|
203
|
+
/** Rendered above the input row — e.g. `<MentionInput>`'s suggestions. */
|
|
204
|
+
accessory?: ReactNode;
|
|
245
205
|
/**
|
|
246
|
-
*
|
|
247
|
-
*
|
|
206
|
+
* Show the Markdown formatting toolbar (bold, italic, strike, code,
|
|
207
|
+
* link, quote, lists, checklist, code block, table) above the input.
|
|
208
|
+
* Default `false`. Pass an array to choose the buttons and their order.
|
|
248
209
|
*/
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
linkPreviews?: boolean;
|
|
253
|
-
/** Makes the "edited" label tappable — `<MessageRow>` opens the edit history. */
|
|
254
|
-
onEditedPress?: () => void;
|
|
210
|
+
formattingToolbar?: boolean | readonly FormatKind[];
|
|
211
|
+
/** Slash commands to suggest when the message starts with `/` (IN3). */
|
|
212
|
+
commands?: readonly SlashCommand[];
|
|
255
213
|
}
|
|
256
214
|
/**
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
* room allows — which is what makes "ok" a one-line bubble instead of
|
|
261
|
-
* a squat rectangle.
|
|
215
|
+
* `ConversationView` / `ThreadView`'s `beforeSend`: sees the message about
|
|
216
|
+
* to go out and returns it (changed or not), or `false` to cancel — the
|
|
217
|
+
* text and files then stay in the composer.
|
|
262
218
|
*/
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
msg: Message;
|
|
277
|
-
meId: string | null;
|
|
278
|
-
reactions?: boolean;
|
|
279
|
-
attachments?: boolean;
|
|
280
|
-
actions?: boolean;
|
|
281
|
-
/** Pass false in ThreadView since nested threads aren't a thing in v1. */
|
|
282
|
-
threads?: boolean;
|
|
283
|
-
/** WhatsApp-style quote-reply. Defaults true on ConversationView. */
|
|
284
|
-
quotations?: boolean;
|
|
285
|
-
/** Forwarded to `<MessageBubble markdown>`. Defaults true. */
|
|
286
|
-
markdown?: boolean;
|
|
287
|
-
readState?: 'sent' | 'read';
|
|
288
|
-
/**
|
|
289
|
-
* Whether this row's message is the one currently being edited.
|
|
290
|
-
* Editing happens in the composer (see MessageComposer's
|
|
291
|
-
* `editingMessage` prop); this flag is only used to elevate the
|
|
292
|
-
* row above the dim backdrop ConversationView renders during
|
|
293
|
-
* edit mode.
|
|
294
|
-
*/
|
|
295
|
-
isEditing?: boolean;
|
|
296
|
-
/**
|
|
297
|
-
* Long-press → "Edit". Omitted entirely (no Edit option in the
|
|
298
|
-
* menu) when the parent has decided this message isn't editable
|
|
299
|
-
* (someone read it, it's deleted, it isn't yours).
|
|
300
|
-
*/
|
|
301
|
-
onStartEdit?: () => void;
|
|
302
|
-
onDelete?: () => void;
|
|
303
|
-
onOpenThread?: () => void;
|
|
304
|
-
onQuote?: () => void;
|
|
305
|
-
labelFor?: (externalId: string) => string;
|
|
306
|
-
onQuotedClick?: (quotedMessageId: Uuid) => void;
|
|
307
|
-
groupPosition?: BubbleGroupPosition;
|
|
308
|
-
maxBodyLength?: number;
|
|
309
|
-
/** Show a colored sender label above other-side bubbles. */
|
|
310
|
-
showSenderName?: boolean;
|
|
311
|
-
/** Render an avatar to the LEFT of other-side bubbles. */
|
|
312
|
-
showAvatar?: boolean;
|
|
313
|
-
/** Avatar resolver — same signature as `<MemberList avatarFor>`. */
|
|
314
|
-
avatarFor?: (externalId: string) => string | null;
|
|
315
|
-
/** Makes the sender label tappable (other people's messages). */
|
|
316
|
-
onSenderPress?: (user: MessageUser) => void;
|
|
317
|
-
/** Makes the avatar tappable (other people's messages). */
|
|
318
|
-
onAvatarPress?: (user: MessageUser) => void;
|
|
319
|
-
/** Call-log rows: offer "Call back" (see `<CallLogRow onCallBack>`). */
|
|
320
|
-
onCallBack?: (media: 'audio' | 'video') => void;
|
|
321
|
-
/**
|
|
322
|
-
* A poolse user id → display name, for system lines that name people
|
|
323
|
-
* by internal id (the recording notice). Unknown: the name is left out.
|
|
324
|
-
*/
|
|
325
|
-
nameForUserId?: (userId: string) => string | null | undefined;
|
|
326
|
-
/** `'bubbles'` (default), `'list'` or `'compact'` — see `ChatLayout`. */
|
|
327
|
-
layout?: ChatLayout;
|
|
328
|
-
/** `'comfortable'` (default) or `'compact'` spacing. */
|
|
329
|
-
density?: ChatDensity;
|
|
330
|
-
/** `'12h'`, `'24h'` or a formatter for timestamps. Defaults to the locale's. */
|
|
331
|
-
timeFormat?: TimeFormat;
|
|
332
|
-
/** Replace or wrap parts of the row — see `MessageSlots`. */
|
|
333
|
-
slots?: MessageSlots;
|
|
334
|
-
/**
|
|
335
|
-
* The message @-mentions the viewer: `list` and `compact` mark it
|
|
336
|
-
* with an accent bar.
|
|
337
|
-
*/
|
|
338
|
-
mentionsMe?: boolean;
|
|
339
|
-
/** Presence badge on the sender's avatar (needs `showAvatar`). */
|
|
340
|
-
showPresence?: boolean;
|
|
341
|
-
/** Show the message's link previews as cards under the text. Defaults to true. */
|
|
342
|
-
linkPreviews?: boolean;
|
|
343
|
-
/**
|
|
344
|
-
* Long-press → "Remove preview" on your own message (one per link).
|
|
345
|
-
* Receives the preview's url — `chat.messages.update(id, { remove_link_previews: [url] })`.
|
|
346
|
-
*/
|
|
347
|
-
onRemoveLinkPreview?: (url: string) => void;
|
|
348
|
-
/** Long-press → "Mark unread" on other people's messages. */
|
|
349
|
-
onMarkUnread?: () => void;
|
|
350
|
-
/** The "edited" label opens the edit history (`chat.messages.edits`). Defaults to true. */
|
|
351
|
-
editHistory?: boolean;
|
|
352
|
-
/** Unsent message (queued or failed in the outbox): the Retry under it. */
|
|
353
|
-
onRetrySend?: () => void;
|
|
354
|
-
/** Unsent message: the Delete under it. */
|
|
355
|
-
onDiscardSend?: () => void;
|
|
356
|
-
}
|
|
357
|
-
declare function MessageRow(props: MessageRowProps): react_jsx_runtime.JSX.Element | null;
|
|
358
|
-
|
|
359
|
-
/** What the composer held for a conversation. */
|
|
360
|
-
interface ConversationDraft {
|
|
361
|
-
text: string;
|
|
362
|
-
/** The message being quote-replied to, if any. */
|
|
363
|
-
quote: Message | null;
|
|
219
|
+
type BeforeSend = (draft: MessageCreateRequest) => MessageCreateRequest | false | Promise<MessageCreateRequest | false>;
|
|
220
|
+
/**
|
|
221
|
+
* `ConversationView` / `ThreadView`'s `composerProps`: passed through to the
|
|
222
|
+
* composer. The view keeps the text, sending, quoting and editing to
|
|
223
|
+
* itself; `onTyping` runs alongside its own.
|
|
224
|
+
*/
|
|
225
|
+
type ComposerPassThroughProps = Partial<Omit<MessageComposerProps, 'onSend' | 'value' | 'onChangeText' | 'replyingTo' | 'onCancelReply' | 'editingMessage' | 'onCancelEdit' | 'onSaveEdit'>>;
|
|
226
|
+
/** The second argument of `onSend`. */
|
|
227
|
+
interface ComposerSendOptions {
|
|
228
|
+
quoted_message_id?: Uuid;
|
|
229
|
+
attachment_ids?: Uuid[];
|
|
230
|
+
/** Set when the sender chose "Send anyway" on a data-loss-prevention warning (AD6). */
|
|
231
|
+
dlp_acknowledged?: true;
|
|
364
232
|
}
|
|
365
233
|
/**
|
|
366
|
-
*
|
|
367
|
-
*
|
|
368
|
-
*
|
|
234
|
+
* Imperative handle for parents that want to add files to the
|
|
235
|
+
* composer's upload queue externally (drag/drop on a wrapper,
|
|
236
|
+
* deep-link, attachment shortcut).
|
|
369
237
|
*/
|
|
370
|
-
interface
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
*/
|
|
385
|
-
renderMessage?: (msg: Message, currentUserId: string | null, context: RenderMessageContext) => ReactElement | null | undefined;
|
|
386
|
-
/**
|
|
387
|
-
* How messages are drawn:
|
|
388
|
-
* * `'bubbles'` (default) — chat bubbles, yours on the right.
|
|
389
|
-
* * `'list'` — Slack-style full-width rows; avatar, name and time
|
|
390
|
-
* once per run, later messages' time dimmed in the gutter,
|
|
391
|
-
* "N replies" under threads. Long-press for actions.
|
|
392
|
-
* * `'compact'` — Discord/IRC-style dense lines: time, the name in
|
|
393
|
-
* the sender's colour, the text; an accent bar on messages that
|
|
394
|
-
* mention you.
|
|
395
|
-
*/
|
|
396
|
-
layout?: ChatLayout;
|
|
397
|
-
/** `'comfortable'` (default) or `'compact'` spacing, in any layout. */
|
|
398
|
-
density?: ChatDensity;
|
|
399
|
-
/**
|
|
400
|
-
* Show avatars. Defaults: `list` on, `compact` off, `bubbles` per
|
|
401
|
-
* `avatars` (others' messages in group chats). Overrides `avatars`.
|
|
402
|
-
*/
|
|
403
|
-
showAvatars?: boolean;
|
|
404
|
-
/** `'12h'`, `'24h'` or a formatter. Defaults to the locale's. */
|
|
405
|
-
timeFormat?: TimeFormat;
|
|
406
|
-
/**
|
|
407
|
-
* Same-sender messages less than this many minutes apart form one
|
|
408
|
-
* run (one bubble cluster, one `list` header). Default 5.
|
|
409
|
-
*/
|
|
410
|
-
groupWindowMinutes?: number;
|
|
411
|
-
/** Day dividers between messages on different days. Defaults to `true`. */
|
|
412
|
-
daySeparators?: boolean;
|
|
413
|
-
/**
|
|
414
|
-
* Replace or wrap one part of every message — `header`, `body`,
|
|
415
|
-
* `attachments`, `reactions`, `thread`, `actions` — in any layout.
|
|
416
|
-
* Each receives the message, sender, layout and its default
|
|
417
|
-
* rendering as `children`.
|
|
418
|
-
*/
|
|
419
|
-
slots?: MessageSlots;
|
|
420
|
-
labelFor?: (externalId: string) => string;
|
|
421
|
-
avatarFor?: (externalId: string) => string | null;
|
|
422
|
-
/**
|
|
423
|
-
* Renders the default `<ChatHeader>` at the top of the chat surface.
|
|
424
|
-
* * `true` (default) — auto chat header (other user / group name).
|
|
425
|
-
* * `false` — no header (you supply your own above).
|
|
426
|
-
* * `ReactElement` — custom header node, rendered as-is.
|
|
427
|
-
*/
|
|
428
|
-
header?: boolean | ReactElement;
|
|
429
|
-
/** Tap on the header's members icon — typically opens a sheet. */
|
|
430
|
-
onHeaderMembersPress?: () => void;
|
|
431
|
-
/** Tap on the header itself — typically opens a conversation profile. */
|
|
432
|
-
onHeaderPress?: () => void;
|
|
433
|
-
reactions?: boolean;
|
|
434
|
-
mentions?: boolean;
|
|
435
|
-
attachments?: boolean;
|
|
436
|
-
actions?: boolean;
|
|
437
|
-
threads?: boolean;
|
|
438
|
-
quotations?: boolean;
|
|
439
|
-
/**
|
|
440
|
-
* Show read ticks on your own messages. Only the ticks: the view
|
|
441
|
-
* marks messages read either way, so unread counts stay right.
|
|
442
|
-
*/
|
|
443
|
-
readReceipts?: boolean;
|
|
444
|
-
/** Render message bodies as Markdown (links, bold, code). Defaults true. */
|
|
445
|
-
markdown?: boolean;
|
|
446
|
-
maxBodyLength?: number;
|
|
447
|
-
/** Show sender labels in group chats. `auto` (default), `always`, `never`. */
|
|
448
|
-
senderLabels?: 'auto' | 'always' | 'never';
|
|
449
|
-
/** Show avatars to the left of other-side bubbles in group chats. Same semantics. */
|
|
450
|
-
avatars?: 'auto' | 'always' | 'never';
|
|
451
|
-
/**
|
|
452
|
-
* Fires once the server accepts a new read position (the view marks
|
|
453
|
-
* the newest message read as it arrives). Receives the conversation
|
|
454
|
-
* id + the message id marked as last-read. Every
|
|
455
|
-
* `useConversations()` under the same provider has already cleared
|
|
456
|
-
* the conversation's badge by then.
|
|
457
|
-
*/
|
|
458
|
-
onMarkedRead?: (conversationId: string, messageId: string) => void;
|
|
459
|
-
/**
|
|
460
|
-
* Fires after every successful message send — e.g. to refetch
|
|
461
|
-
* conversations from a list that isn't `useConversations()` (which
|
|
462
|
-
* gets the new preview over realtime already).
|
|
463
|
-
*/
|
|
464
|
-
onSent?: (conversationId: string) => void;
|
|
465
|
-
/**
|
|
466
|
-
* Jump to this message: older pages load until it's there, then it
|
|
467
|
-
* scrolls into view and is highlighted briefly. Set it again (or to
|
|
468
|
-
* another id) to jump again. When it can't be found — deleted, a
|
|
469
|
-
* thread reply, or not in this conversation — a short notice shows
|
|
470
|
-
* and `onFocusMessageNotFound` fires.
|
|
471
|
-
*/
|
|
472
|
-
focusMessageId?: Uuid | null;
|
|
473
|
-
/** `focusMessageId` couldn't be found in this conversation. */
|
|
474
|
-
onFocusMessageNotFound?: (messageId: Uuid) => void;
|
|
475
|
-
/** Makes the sender label on other people's messages tappable. */
|
|
476
|
-
onSenderPress?: (user: MessageUser) => void;
|
|
477
|
-
/** Makes the avatar next to other people's messages tappable. */
|
|
478
|
-
onAvatarPress?: (user: MessageUser) => void;
|
|
479
|
-
/**
|
|
480
|
-
* `false` hides the composer (and with it quote-reply and the
|
|
481
|
-
* attachment picker) — for an archived conversation or a viewer who
|
|
482
|
-
* can't post. Defaults to `true`.
|
|
483
|
-
*/
|
|
484
|
-
composer?: boolean;
|
|
485
|
-
/** Same as `composer={false}`. */
|
|
486
|
-
readOnly?: boolean;
|
|
487
|
-
/**
|
|
488
|
-
* keyboardVerticalOffset passed to the internal KeyboardAvoidingView.
|
|
489
|
-
* On iOS this MUST equal the distance from the screen top to the
|
|
490
|
-
* KAV's top (status bar + safe-area-top + any nav header above
|
|
491
|
-
* the chat). `<PoolseInbox>` computes this for you. Standalone
|
|
492
|
-
* consumers pass it manually.
|
|
493
|
-
*/
|
|
494
|
-
keyboardOffset?: number;
|
|
495
|
-
/**
|
|
496
|
-
* Offer "Call back" on call-log rows the viewer missed or declined,
|
|
497
|
-
* or placed with no answer. Receives the call's media; place the call
|
|
498
|
-
* on this conversation.
|
|
499
|
-
*/
|
|
500
|
-
onCallBack?: (media: 'audio' | 'video') => void;
|
|
501
|
-
/**
|
|
502
|
-
* Show a "Call in progress · Join" banner while a call runs on this
|
|
503
|
-
* conversation that the viewer is not on. Called with the live call
|
|
504
|
-
* when they tap Join.
|
|
505
|
-
*/
|
|
506
|
-
onJoinCall?: (call: LiveCall) => void;
|
|
507
|
-
/**
|
|
508
|
-
* The call this device is already on, if any — its banner is hidden
|
|
509
|
-
* (the viewer is in the room, or ringing out as its caller).
|
|
510
|
-
*/
|
|
511
|
-
currentCallId?: string | null;
|
|
512
|
-
/**
|
|
513
|
-
* A source under an assistant's answer was pressed (AG5). Without it,
|
|
514
|
-
* message sources in this conversation are focused here.
|
|
515
|
-
*/
|
|
516
|
-
onOpenCitation?: (citation: Citation, message: Message) => void;
|
|
517
|
-
/**
|
|
518
|
-
* A point in a call was pressed — a line or moment of a summary (RT6):
|
|
519
|
-
* open its recording at `moment.recordingMs` or transcript at `moment.startMs`.
|
|
520
|
-
*/
|
|
521
|
-
onOpenMoment?: (moment: MeetingMoment) => void;
|
|
522
|
-
/**
|
|
523
|
-
* Plays clips in chat (RT9): your media adapter (expo-video,
|
|
524
|
-
* expo-audio…) — see `RenderMedia` and the README. Without it a clip
|
|
525
|
-
* shows its time range only.
|
|
526
|
-
*/
|
|
527
|
-
renderMedia?: RenderMedia;
|
|
528
|
-
/** Presence badges on message avatars (where avatars show). Defaults to `false`. */
|
|
529
|
-
showPresence?: boolean;
|
|
530
|
-
/**
|
|
531
|
-
* Link previews (`message.link_previews`) as cards under the text,
|
|
532
|
-
* with "Remove preview" in the sender's long-press sheet. Defaults to `true`.
|
|
533
|
-
*/
|
|
534
|
-
linkPreviews?: boolean;
|
|
535
|
-
/**
|
|
536
|
-
* A "New messages" line above the first message that was unread when
|
|
537
|
-
* the conversation opened, and a pill that jumps to it (loading older
|
|
538
|
-
* pages as needed) while it's off screen. Defaults to `true`.
|
|
539
|
-
*/
|
|
540
|
-
newMessagesDivider?: boolean;
|
|
541
|
-
/**
|
|
542
|
-
* Unsent text and the quote target are kept per conversation in
|
|
543
|
-
* memory, across conversation switches, always. With a `draftStorage`
|
|
544
|
-
* they are also written there, so they survive a restart; set
|
|
545
|
-
* `persistDrafts={false}` to keep them in memory only. Defaults to
|
|
546
|
-
* `true` when `draftStorage` is given.
|
|
547
|
-
*/
|
|
548
|
-
persistDrafts?: boolean;
|
|
549
|
-
/**
|
|
550
|
-
* Where drafts persist — `{ get, set, remove }` over string values
|
|
551
|
-
* (MMKV, AsyncStorage, …); each may return a promise. Keys are
|
|
552
|
-
* `poolse:draft:<conversationId>`.
|
|
553
|
-
*/
|
|
554
|
-
draftStorage?: DraftStorage;
|
|
555
|
-
/** An emoji button in the composer. Defaults to `true`. */
|
|
556
|
-
emojiPicker?: boolean;
|
|
557
|
-
/** Largest attachment accepted, in bytes; larger picks show an error. */
|
|
558
|
-
maxFileSize?: number;
|
|
559
|
-
/** Accepted attachment types: MIME types, wildcards (`'image/*'`) or extensions (`'.pdf'`). */
|
|
560
|
-
acceptedFileTypes?: string[];
|
|
561
|
-
/**
|
|
562
|
-
* Long-press → "Mark unread" on other people's messages. Defaults to
|
|
563
|
-
* `true`. The view then stops marking messages read until you send
|
|
564
|
-
* one or reopen the conversation.
|
|
565
|
-
*/
|
|
566
|
-
markUnread?: boolean;
|
|
567
|
-
/** Fires after "Mark unread" succeeded (the unread counts follow over realtime). */
|
|
568
|
-
onMarkedUnread?: (conversationId: string, messageId: string) => void;
|
|
238
|
+
interface MessageComposerHandle {
|
|
239
|
+
/** Enqueue ready-to-upload inputs. The picker component is the usual caller; this is the escape hatch. */
|
|
240
|
+
addFiles: (inputs: AttachmentUploadInput[]) => void;
|
|
241
|
+
focus: () => void;
|
|
242
|
+
/** Empty the input. Queued files stay. */
|
|
243
|
+
clear: () => void;
|
|
244
|
+
/** The text in the input right now. */
|
|
245
|
+
getText: () => string;
|
|
246
|
+
/** Replace the text. */
|
|
247
|
+
setText: (text: string) => void;
|
|
248
|
+
/** Insert text at the cursor (replacing a selection). */
|
|
249
|
+
insertText: (text: string) => void;
|
|
250
|
+
/** Move the cursor (`start === end`) or select a range. */
|
|
251
|
+
setSelection: (start: number, end: number) => void;
|
|
569
252
|
}
|
|
570
|
-
declare
|
|
253
|
+
declare const MessageComposer: react.ForwardRefExoticComponent<MessageComposerProps & react.RefAttributes<MessageComposerHandle>>;
|
|
571
254
|
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
* direct-chat name from your own user directory instead of going
|
|
577
|
-
* through the SDK's `userResolver`. When omitted, falls back to:
|
|
578
|
-
* * direct → the other member's display name (via `useUser`)
|
|
579
|
-
* * group → `conversation.name`
|
|
580
|
-
*/
|
|
581
|
-
labelFor?: (externalId: string) => string;
|
|
582
|
-
/** Optional avatar URL resolver for the other party (direct only). */
|
|
583
|
-
avatarFor?: (externalId: string) => string | null;
|
|
584
|
-
/** Right-side icon button — typically opens a member-list sheet. */
|
|
585
|
-
onMembersPress?: () => void;
|
|
586
|
-
/**
|
|
587
|
-
* Tap handler for the whole header. Behavior:
|
|
588
|
-
* * Direct chat → calls this if provided, otherwise no-op.
|
|
589
|
-
* * Group chat → calls this if provided. If omitted, the header
|
|
590
|
-
* opens a built-in group-details sheet showing the member
|
|
591
|
-
* roster with live presence.
|
|
592
|
-
*/
|
|
593
|
-
onPress?: () => void;
|
|
594
|
-
/**
|
|
595
|
-
* When provided, renders a back arrow on the LEFT of the header
|
|
596
|
-
* that calls this handler on tap. Used by `<PoolseInbox>` to
|
|
597
|
-
* navigate back to the conversation list; safe to wire from your
|
|
598
|
-
* own navigator too.
|
|
599
|
-
*/
|
|
600
|
-
onBack?: () => void;
|
|
601
|
-
}
|
|
602
|
-
/**
|
|
603
|
-
* Top-of-chat header bar.
|
|
604
|
-
* * 1:1 direct → other user's display name + avatar + presence badge,
|
|
605
|
-
* and "Online" / "Away" / "In a call" / "Last seen …" under the name.
|
|
606
|
-
* * Group → conversation name + "N members" + group-tile avatar.
|
|
607
|
-
*
|
|
608
|
-
* Sits above `<MessageList>` inside `<ConversationView>` by default;
|
|
609
|
-
* pass `header={false}` to `<ConversationView>` if you mount your own.
|
|
610
|
-
*/
|
|
611
|
-
declare function ChatHeader({ conversationId, labelFor, avatarFor, onMembersPress, onPress, onBack, }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
|
|
612
|
-
|
|
613
|
-
interface GroupDetailsSheetProps {
|
|
614
|
-
visible: boolean;
|
|
615
|
-
onClose: () => void;
|
|
616
|
-
conversationId: Uuid;
|
|
617
|
-
/** Resolve external_id → display name. Same shape as MemberList. */
|
|
618
|
-
labelFor?: (externalId: string) => string;
|
|
619
|
-
/** Resolve external_id → avatar URL. Same shape as MemberList. */
|
|
620
|
-
avatarFor?: (externalId: string) => string | null;
|
|
621
|
-
/**
|
|
622
|
-
* Predicate for the per-row remove button. Defaults to "never show"
|
|
623
|
-
* — wire it on the parent for owners/admins. Receives the
|
|
624
|
-
* Membership row so you can scope to roles or exclude self.
|
|
625
|
-
*/
|
|
626
|
-
canRemoveMember?: (m: {
|
|
627
|
-
user_id: string;
|
|
628
|
-
external_id: string;
|
|
629
|
-
role: string;
|
|
630
|
-
}) => boolean;
|
|
631
|
-
}
|
|
632
|
-
/**
|
|
633
|
-
* Bottom-sheet (85% of screen) that opens when the user taps the
|
|
634
|
-
* group chat header. Shows group name + member count at the top,
|
|
635
|
-
* then a scrollable roster with avatars, display names (resolved
|
|
636
|
-
* through `labelFor` / `userResolver`), role badges, and live
|
|
637
|
-
* presence dots (driven by `MemberList` internally).
|
|
638
|
-
*/
|
|
639
|
-
declare function GroupDetailsSheet({ visible, onClose, conversationId, labelFor, avatarFor, canRemoveMember, }: GroupDetailsSheetProps): react_jsx_runtime.JSX.Element;
|
|
640
|
-
|
|
641
|
-
interface CallLogRowProps {
|
|
642
|
-
/** The call-log message. Rows that aren't call logs render nothing. */
|
|
643
|
-
msg: Pick<Message, 'type' | 'body' | 'inserted_at'> & {
|
|
644
|
-
deleted_at?: string | null;
|
|
255
|
+
declare const ICONS: {
|
|
256
|
+
readonly attachment: {
|
|
257
|
+
readonly vb: "0 0 24 24";
|
|
258
|
+
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\"/>";
|
|
645
259
|
};
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
* Offer "Call back" on calls the viewer missed or declined, or placed
|
|
650
|
-
* with no answer. Receives the call's media. Omit to show no action.
|
|
651
|
-
*/
|
|
652
|
-
onCallBack?: (media: 'audio' | 'video') => void;
|
|
653
|
-
}
|
|
654
|
-
/**
|
|
655
|
-
* Centered, compact timeline line for call-log system messages
|
|
656
|
-
* ("Voice call · 3:12", "Missed call"). Same visual family as
|
|
657
|
-
* `<DaySeparator>` — surface chip, hairline border, small semibold
|
|
658
|
-
* label — so it reads as a separator between bubble clusters rather
|
|
659
|
-
* than a message. No reactions, thread pill, swipe or long-press.
|
|
660
|
-
*
|
|
661
|
-
* `<MessageRow>` renders this automatically for call-log messages.
|
|
662
|
-
*/
|
|
663
|
-
declare function CallLogRow({ msg, meId, onCallBack }: CallLogRowProps): react_jsx_runtime.JSX.Element | null;
|
|
664
|
-
|
|
665
|
-
interface LiveCallBannerProps {
|
|
666
|
-
call: LiveCall;
|
|
667
|
-
/** How many people are in the room right now. */
|
|
668
|
-
inCall: number;
|
|
669
|
-
onJoin: (call: LiveCall) => void;
|
|
670
|
-
}
|
|
671
|
-
/**
|
|
672
|
-
* "Voice call in progress · 2 on the call [Join]" — a strip across the
|
|
673
|
-
* top of a conversation while a call runs that the viewer is not on.
|
|
674
|
-
* `<ConversationView onJoinCall>` renders it for you; use it directly
|
|
675
|
-
* to place it elsewhere (with `useLiveCall`).
|
|
676
|
-
*/
|
|
677
|
-
declare function LiveCallBanner({ call, inCall, onJoin }: LiveCallBannerProps): react_jsx_runtime.JSX.Element;
|
|
678
|
-
|
|
679
|
-
interface RecordingBannerProps {
|
|
680
|
-
/** A recording is running. */
|
|
681
|
-
recording: boolean;
|
|
682
|
-
/** A live transcript is running. */
|
|
683
|
-
transcribing?: boolean;
|
|
684
|
-
mode?: RecordingMode | null;
|
|
685
|
-
/** Capture needs consent here (`useRecording().consentRequired`). */
|
|
686
|
-
consentRequired?: boolean;
|
|
687
|
-
/** Your answer (`useRecording().myConsent`). `declined` shows "listen-only" and a way to change it. */
|
|
688
|
-
myConsent?: ConsentDecision | null;
|
|
689
|
-
/** Shows a Stop button (for whoever may stop it). */
|
|
690
|
-
onStop?: () => void;
|
|
691
|
-
/** After declining: reopen the prompt. */
|
|
692
|
-
onChangeConsent?: () => void;
|
|
693
|
-
/** Disable the buttons (a request is in flight). */
|
|
694
|
-
pending?: boolean;
|
|
695
|
-
style?: StyleProp<ViewStyle>;
|
|
696
|
-
}
|
|
697
|
-
/**
|
|
698
|
-
* "● Recording · Everyone in the call is told [Stop]" — a strip across
|
|
699
|
-
* a captured call, for everyone in it (late joiners too). Renders nothing
|
|
700
|
-
* while nothing is captured.
|
|
701
|
-
*/
|
|
702
|
-
declare function RecordingBanner({ recording, transcribing, mode, consentRequired, myConsent, onStop, onChangeConsent, pending, style, }: RecordingBannerProps): react_jsx_runtime.JSX.Element | null;
|
|
703
|
-
interface RecordingIndicatorProps {
|
|
704
|
-
recording: boolean;
|
|
705
|
-
transcribing?: boolean;
|
|
706
|
-
mode?: RecordingMode | null;
|
|
707
|
-
/** Text colour, e.g. white over video. Defaults to the theme's danger colour. */
|
|
708
|
-
color?: string;
|
|
709
|
-
style?: StyleProp<ViewStyle>;
|
|
710
|
-
}
|
|
711
|
-
/** A small "● REC" pill for a call header or tile. Nothing while nothing is captured. */
|
|
712
|
-
declare function RecordingIndicator({ recording, transcribing, mode, color, style, }: RecordingIndicatorProps): react_jsx_runtime.JSX.Element | null;
|
|
713
|
-
interface ConsentPromptProps {
|
|
714
|
-
/** A recording is running. */
|
|
715
|
-
recording: boolean;
|
|
716
|
-
/** A live transcript is running. */
|
|
717
|
-
transcribing?: boolean;
|
|
718
|
-
mode?: RecordingMode | null;
|
|
719
|
-
/** Who started it, if known. Never pass a raw id. */
|
|
720
|
-
startedByName?: string | null;
|
|
721
|
-
/** Answer (e.g. `useRecording().consent`). A `false` result keeps the prompt open with an error. */
|
|
722
|
-
onAnswer: (decision: ConsentDecision) => Promise<boolean | void> | boolean | void;
|
|
723
|
-
/**
|
|
724
|
-
* Called once an accept went through: publishing is allowed again.
|
|
725
|
-
* With the native call core, re-enable the microphone and camera here;
|
|
726
|
-
* the SDK's `CallRoom` does it by itself.
|
|
727
|
-
*/
|
|
728
|
-
onAccepted?: () => void;
|
|
729
|
-
/** Called after a decline went through (e.g. close the prompt). */
|
|
730
|
-
onDeclined?: () => void;
|
|
731
|
-
pending?: boolean;
|
|
732
|
-
error?: string | null;
|
|
733
|
-
/** Cover the parent with a scrim (absolute fill). Defaults to true; false renders the card only. */
|
|
734
|
-
overlay?: boolean;
|
|
735
|
-
style?: StyleProp<ViewStyle>;
|
|
736
|
-
}
|
|
737
|
-
/**
|
|
738
|
-
* Asks someone in a captured call for consent — shown to anyone who
|
|
739
|
-
* hasn't accepted, late joiners included, when the room requires it.
|
|
740
|
-
* Until they agree their microphone and camera stay off; they still hear
|
|
741
|
-
* and see everyone. Declining keeps them listen-only.
|
|
742
|
-
*/
|
|
743
|
-
declare function ConsentPrompt({ recording, transcribing, mode, startedByName, onAnswer, onAccepted, onDeclined, pending, error, overlay, style, }: ConsentPromptProps): react_jsx_runtime.JSX.Element;
|
|
744
|
-
interface RecordingNoticeRowProps {
|
|
745
|
-
/** The recording notice message. Rows that aren't one render nothing. */
|
|
746
|
-
msg: Pick<Message, 'type' | 'body' | 'inserted_at'> & {
|
|
747
|
-
deleted_at?: string | null;
|
|
748
|
-
};
|
|
749
|
-
/** Current user's id — "by you". */
|
|
750
|
-
meId: string | null;
|
|
751
|
-
/** A poolse user id → display name. Unknown: the name is left out. */
|
|
752
|
-
nameFor?: (userId: Uuid) => string | null | undefined;
|
|
753
|
-
}
|
|
754
|
-
/**
|
|
755
|
-
* "● Recording started · by Elena · 10:04" — the chat line the server
|
|
756
|
-
* posts when a recording starts or stops. `<MessageRow>` renders it.
|
|
757
|
-
*/
|
|
758
|
-
declare function RecordingNoticeRow({ msg, meId, nameFor }: RecordingNoticeRowProps): react_jsx_runtime.JSX.Element | null;
|
|
759
|
-
|
|
760
|
-
interface LiveTranscriptPanelProps {
|
|
761
|
-
/** The call. Null renders an empty panel. */
|
|
762
|
-
callId: string | null;
|
|
763
|
-
/** Keep the transcript topic open. Defaults to true; false while the panel is hidden. */
|
|
764
|
-
enabled?: boolean;
|
|
765
|
-
/** Start / Stop transcription buttons (someone in the call). Defaults to true. */
|
|
766
|
-
showControls?: boolean;
|
|
767
|
-
/** Shows a close button. */
|
|
768
|
-
onClose?: () => void;
|
|
769
|
-
title?: string;
|
|
770
|
-
style?: StyleProp<ViewStyle>;
|
|
771
|
-
}
|
|
772
|
-
/**
|
|
773
|
-
* The call's live transcript as it is spoken: speaker, time and text,
|
|
774
|
-
* the current speaker's words in grey until they are final. Opens the
|
|
775
|
-
* transcript topic while mounted (the last 200 lines arrive at once)
|
|
776
|
-
* and sticks to the bottom unless you scroll up.
|
|
777
|
-
*/
|
|
778
|
-
declare function LiveTranscriptPanel({ callId, enabled, showControls, onClose, title, style, }: LiveTranscriptPanelProps): react_jsx_runtime.JSX.Element;
|
|
779
|
-
interface TranscriptViewerProps {
|
|
780
|
-
/** The call whose stored transcript to show. */
|
|
781
|
-
callId: string | null;
|
|
782
|
-
/**
|
|
783
|
-
* Offer speaker renames. Defaults to true; the server allows it for
|
|
784
|
-
* people who took part in the call and the conversation's owners and
|
|
785
|
-
* admins, and anyone else gets an explanation instead.
|
|
786
|
-
*/
|
|
787
|
-
canRename?: boolean;
|
|
788
|
-
/** Makes timestamps pressable, e.g. to seek a recording (ms since the transcript started). */
|
|
789
|
-
onSeek?: (ms: number) => void;
|
|
790
|
-
title?: string;
|
|
791
|
-
style?: StyleProp<ViewStyle>;
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
* A call's stored transcript: who spoke, when, and what they said;
|
|
795
|
-
* search within it; and correct a speaker's name (everyone viewing sees
|
|
796
|
-
* the change at once).
|
|
797
|
-
*/
|
|
798
|
-
declare function TranscriptViewer({ callId, canRename, onSeek, title, style, }: TranscriptViewerProps): react_jsx_runtime.JSX.Element | null;
|
|
799
|
-
|
|
800
|
-
interface AgentBadgeProps {
|
|
801
|
-
/** `sm` (default) beside names in lists; `xs` in dense rows. */
|
|
802
|
-
size?: 'xs' | 'sm';
|
|
803
|
-
/** Defaults to "Agent". */
|
|
804
|
-
label?: string;
|
|
805
|
-
style?: StyleProp<ViewStyle>;
|
|
806
|
-
}
|
|
807
|
-
declare function AgentBadge({ size, label, style }: AgentBadgeProps): react_jsx_runtime.JSX.Element;
|
|
808
|
-
/**
|
|
809
|
-
* The badge as nested text, for inside a `<Text>` (a sender label that
|
|
810
|
-
* is itself pressable text). Same wording and color as `<AgentBadge>`.
|
|
811
|
-
*/
|
|
812
|
-
declare function AgentBadgeInline({ label }: {
|
|
813
|
-
label?: string;
|
|
814
|
-
}): react_jsx_runtime.JSX.Element;
|
|
815
|
-
|
|
816
|
-
interface CallAgentTagProps {
|
|
817
|
-
agent: Pick<CallAgent, 'mode' | 'status' | 'speaking'>;
|
|
818
|
-
/** Show what it's doing ("Taking notes"). Defaults to true. */
|
|
819
|
-
showState?: boolean;
|
|
820
|
-
/** The participant's live speaking flag; overrides the agent's. */
|
|
821
|
-
speaking?: boolean;
|
|
822
|
-
/** Over video: light text. */
|
|
823
|
-
onMedia?: boolean;
|
|
824
|
-
style?: StyleProp<ViewStyle>;
|
|
825
|
-
}
|
|
826
|
-
/** The Agent badge with the agent's state — beside its name wherever it's listed in a call. */
|
|
827
|
-
declare function CallAgentTag({ agent, showState, speaking, onMedia, style, }: CallAgentTagProps): react_jsx_runtime.JSX.Element;
|
|
828
|
-
interface InviteAgentMenuProps {
|
|
829
|
-
/** `useCallAgents(conversationId, callId)`. */
|
|
830
|
-
callAgents: UseCallAgents;
|
|
831
|
-
onDone?: () => void;
|
|
832
|
-
style?: StyleProp<ViewStyle>;
|
|
833
|
-
}
|
|
834
|
-
/**
|
|
835
|
-
* Bring a note-taker (silent: transcript, summary and tasks) or an
|
|
836
|
-
* assistant (answers when addressed by name) into the call, switch
|
|
837
|
-
* one's mode, or send one out.
|
|
838
|
-
*/
|
|
839
|
-
declare function InviteAgentMenu({ callAgents, onDone, style }: InviteAgentMenuProps): react_jsx_runtime.JSX.Element;
|
|
840
|
-
interface WhisperPanelProps {
|
|
841
|
-
/** `useWhisper(callId)`. */
|
|
842
|
-
whisper: UseWhisper;
|
|
843
|
-
/** Height of the hint list before it scrolls. Defaults to 320. */
|
|
844
|
-
maxHeight?: number;
|
|
845
|
-
style?: StyleProp<ViewStyle>;
|
|
846
|
-
}
|
|
847
|
-
/**
|
|
848
|
-
* Private hints during a call — facts, what you promised last time,
|
|
849
|
-
* questions to raise. Only you see them; the panel says so.
|
|
850
|
-
*/
|
|
851
|
-
declare function WhisperPanel({ whisper, maxHeight, style }: WhisperPanelProps): react_jsx_runtime.JSX.Element;
|
|
852
|
-
interface EscalationCardProps {
|
|
853
|
-
escalation: AgentEscalation;
|
|
854
|
-
/** The agent's name; defaults to the directory's, else "Your agent". */
|
|
855
|
-
agentName?: string | null;
|
|
856
|
-
meetingTitle?: string | null;
|
|
857
|
-
/** Defaults to `poolse.escalations.reply`. */
|
|
858
|
-
reply?: (id: string, reply: EscalationReply) => Promise<unknown>;
|
|
859
|
-
onReplied?: (escalation: AgentEscalation) => void;
|
|
860
|
-
style?: StyleProp<ViewStyle>;
|
|
861
|
-
}
|
|
862
|
-
/**
|
|
863
|
-
* Your agent, in a meeting for you, asking something its brief doesn't
|
|
864
|
-
* cover: Approve, Decline, or write an answer.
|
|
865
|
-
*/
|
|
866
|
-
declare function EscalationCard({ escalation: e, agentName, meetingTitle, reply, onReplied, style, }: EscalationCardProps): react_jsx_runtime.JSX.Element;
|
|
867
|
-
interface EscalationListProps {
|
|
868
|
-
/** Only this call's. */
|
|
869
|
-
callId?: string | null;
|
|
870
|
-
/** Shown when nothing waits. Defaults to nothing. */
|
|
871
|
-
empty?: string | null;
|
|
872
|
-
style?: StyleProp<ViewStyle>;
|
|
873
|
-
}
|
|
874
|
-
/** Everything your agents wait for you to answer, live. */
|
|
875
|
-
declare function EscalationList({ callId, empty, style }: EscalationListProps): react_jsx_runtime.JSX.Element | null;
|
|
876
|
-
|
|
877
|
-
interface ApprovalCardProps {
|
|
878
|
-
/** The request — from `useApprovals()` or `useApproval(id)`. */
|
|
879
|
-
approval: AgentApproval;
|
|
880
|
-
/** The agent's name when the request leaves it out (e.g. the message's sender). */
|
|
881
|
-
agentName?: string | null;
|
|
882
|
-
/** After an answer went through. */
|
|
883
|
-
onDecided?: (approval: AgentApproval) => void;
|
|
884
|
-
/** How many detail lines show before "Show all". Defaults to 4. */
|
|
885
|
-
maxDetails?: number;
|
|
886
|
-
style?: StyleProp<ViewStyle>;
|
|
887
|
-
}
|
|
888
|
-
/**
|
|
889
|
-
* An agent asking before it calls a tool with an effect outside the chat. One tap
|
|
890
|
-
* approves or denies; a reason is optional. Follows the shared
|
|
891
|
-
* approvals store, so an answer given anywhere shows here at once.
|
|
892
|
-
*/
|
|
893
|
-
declare function ApprovalCard({ approval: initial, agentName, onDecided, maxDetails, style, }: ApprovalCardProps): react_jsx_runtime.JSX.Element;
|
|
894
|
-
interface MessageApprovalProps {
|
|
895
|
-
/** `approvalIdOf(message)`. */
|
|
896
|
-
approvalId: string;
|
|
897
|
-
/** The asking agent's name (the message's sender) when the directory doesn't know it. */
|
|
898
|
-
agentName?: string | null;
|
|
899
|
-
style?: StyleProp<ViewStyle>;
|
|
900
|
-
}
|
|
901
|
-
/**
|
|
902
|
-
* The approval an agent's message waits for (`agent_meta.approval_id`),
|
|
903
|
-
* loaded and kept live. Nothing shows for someone else's approval.
|
|
904
|
-
*/
|
|
905
|
-
declare function MessageApproval({ approvalId, agentName, style }: MessageApprovalProps): react_jsx_runtime.JSX.Element | null;
|
|
906
|
-
interface ApprovalListProps {
|
|
907
|
-
emptyState?: ReactNode;
|
|
908
|
-
/** Re-list every so often as a fallback to live events (ms; 0 = never). Defaults to 60 s. */
|
|
909
|
-
pollMs?: number;
|
|
910
|
-
style?: StyleProp<ViewStyle>;
|
|
911
|
-
}
|
|
912
|
-
/** Everything waiting for your approval, newest first, live. */
|
|
913
|
-
declare function ApprovalList({ emptyState, pollMs, style }: ApprovalListProps): react_jsx_runtime.JSX.Element;
|
|
914
|
-
interface MessageCitationsProps {
|
|
915
|
-
message: Message;
|
|
916
|
-
/** Defaults to `citationsOf(message)`. */
|
|
917
|
-
citations?: Citation[];
|
|
918
|
-
/** Defaults to the `MessageExtrasProvider`'s `onOpenCitation`. */
|
|
919
|
-
onOpenCitation?: (citation: Citation, message: Message) => void;
|
|
920
|
-
/** `onBrand` inside your own (coloured) bubble. */
|
|
921
|
-
tone?: 'default' | 'onBrand';
|
|
922
|
-
style?: StyleProp<ViewStyle>;
|
|
923
|
-
}
|
|
924
|
-
/** The sources of an assistant's answer as links. Plain text when nothing handles a press. */
|
|
925
|
-
declare function MessageCitations({ message, citations, onOpenCitation, tone, style, }: MessageCitationsProps): react_jsx_runtime.JSX.Element | null;
|
|
926
|
-
|
|
927
|
-
interface SummaryCardProps {
|
|
928
|
-
summary: CallSummary;
|
|
929
|
-
/** A timed line or moment was pressed. Defaults to the provider's; without one, times are plain text. */
|
|
930
|
-
onOpenMoment?: (moment: MeetingMoment) => void;
|
|
931
|
-
/** A poolse user id → name, for assignees. Defaults to the provider's, then the conversation's members. */
|
|
932
|
-
nameForUserId?: (userId: string) => string | null | undefined;
|
|
933
|
-
/** Fetch the full copy when shortened and follow `summary:ready`. Defaults to true. */
|
|
934
|
-
live?: boolean;
|
|
935
|
-
style?: StyleProp<ViewStyle>;
|
|
936
|
-
}
|
|
937
|
-
/** A call's summary: overview, decisions, action items, open questions, sections and moments. */
|
|
938
|
-
declare function SummaryCard({ summary: initial, onOpenMoment, nameForUserId, live, style, }: SummaryCardProps): react_jsx_runtime.JSX.Element;
|
|
939
|
-
interface SummaryMessageRowProps {
|
|
940
|
-
msg: Message;
|
|
941
|
-
meId: string | null;
|
|
942
|
-
nameForUserId?: (userId: string) => string | null | undefined;
|
|
943
|
-
}
|
|
944
|
-
/** A `kind: "call_summary"` message in a list: who posted it, then the card. */
|
|
945
|
-
declare function SummaryMessageRow({ msg, nameForUserId }: SummaryMessageRowProps): react_jsx_runtime.JSX.Element | null;
|
|
946
|
-
interface AskMeetingsProps {
|
|
947
|
-
callId?: string | null;
|
|
948
|
-
conversationId?: string | null;
|
|
949
|
-
onOpenMoment?: (moment: MeetingMoment) => void;
|
|
950
|
-
placeholder?: string;
|
|
951
|
-
style?: StyleProp<ViewStyle>;
|
|
952
|
-
}
|
|
953
|
-
/** A question box over your meetings, answered with links to the moments. */
|
|
954
|
-
declare function AskMeetings({ callId, conversationId, onOpenMoment, placeholder, style, }: AskMeetingsProps): react_jsx_runtime.JSX.Element;
|
|
955
|
-
interface ClipPlayerProps {
|
|
956
|
-
/** A clip shared in chat (an attachment) — plays its own file. */
|
|
957
|
-
attachment?: Attachment | null;
|
|
958
|
-
/** A clip by id — shows "Cutting…" until `clip:ready`. */
|
|
959
|
-
clipId?: string | null;
|
|
960
|
-
/** Or a range of a recording: plays from `startMs` and stops at `endMs`. */
|
|
961
|
-
clip?: {
|
|
962
|
-
recordingId: string;
|
|
963
|
-
startMs: number;
|
|
964
|
-
endMs: number;
|
|
965
|
-
} | null;
|
|
966
|
-
onOpenRecording?: (recordingId: string, startMs: number) => void;
|
|
967
|
-
/** The media adapter. Defaults to the provider's `renderMedia`. */
|
|
968
|
-
renderMedia?: RenderMedia;
|
|
969
|
-
compact?: boolean;
|
|
970
|
-
style?: StyleProp<ViewStyle>;
|
|
971
|
-
}
|
|
972
|
-
/** A short piece of a call's recording. */
|
|
973
|
-
declare function ClipPlayer({ attachment, clipId, clip: rangeClip, onOpenRecording, renderMedia, compact, style, }: ClipPlayerProps): react_jsx_runtime.JSX.Element;
|
|
974
|
-
interface RecordingPlayerProps {
|
|
975
|
-
recordingId: string;
|
|
976
|
-
showTranscript?: boolean;
|
|
977
|
-
/** Start here (recording ms — a moment's `recordingMs`); a new value seeks. */
|
|
978
|
-
startMs?: number | null;
|
|
979
|
-
defaultSkipSilence?: boolean;
|
|
980
|
-
/** The media adapter. Defaults to the provider's `renderMedia`. */
|
|
981
|
-
renderMedia?: RenderMedia;
|
|
982
|
-
style?: StyleProp<ViewStyle>;
|
|
983
|
-
}
|
|
984
|
-
interface RecordingPlayerHandle {
|
|
985
|
-
/** Seek to recording time `ms` and play. */
|
|
986
|
-
seek: (ms: number) => void;
|
|
987
|
-
/** Seek to transcript time `ms` (a summary item's `startMs`) and play. */
|
|
988
|
-
seekTranscript: (ms: number) => void;
|
|
989
|
-
play: () => void;
|
|
990
|
-
pause: () => void;
|
|
991
|
-
}
|
|
992
|
-
/**
|
|
993
|
-
* A finished recording (`GET /v1/recordings/:id/playback`): 1×–2× speed,
|
|
994
|
-
* skip silence, chapters, and the transcript scrolling along — tap a line
|
|
995
|
-
* to play from there.
|
|
996
|
-
*/
|
|
997
|
-
declare const RecordingPlayer: react.ForwardRefExoticComponent<RecordingPlayerProps & react.RefAttributes<RecordingPlayerHandle>>;
|
|
998
|
-
|
|
999
|
-
/** Someone in the call, as the panels name them. */
|
|
1000
|
-
interface MeetingParticipant {
|
|
1001
|
-
userId: string;
|
|
1002
|
-
name?: string | null;
|
|
1003
|
-
/** Joined from a guest link: shown with a Guest mark. */
|
|
1004
|
-
guest?: boolean;
|
|
1005
|
-
avatarUrl?: string | null;
|
|
1006
|
-
/**
|
|
1007
|
-
* An agent in the call (AG13): named by its `label` and shown with the
|
|
1008
|
-
* Agent badge and what it's doing. `useCallAgents().agentFor(userId)`,
|
|
1009
|
-
* or pass the call's `agents` to the panel.
|
|
1010
|
-
*/
|
|
1011
|
-
agent?: CallAgent | null;
|
|
1012
|
-
/** Speaking now (the roster's flag) — an agent shows "Speaking". */
|
|
1013
|
-
speaking?: boolean;
|
|
1014
|
-
}
|
|
1015
|
-
type NameFor = (userId: string) => string | null | undefined;
|
|
1016
|
-
interface StagePanelProps {
|
|
1017
|
-
stage: UseStage;
|
|
1018
|
-
/** Everyone in the call (from the call roster). */
|
|
1019
|
-
participants: readonly MeetingParticipant[];
|
|
1020
|
-
selfUserId?: string | null;
|
|
1021
|
-
nameForUserId?: NameFor;
|
|
1022
|
-
/** The call's agents (`useCallAgents().agents`), listed with the Agent badge. */
|
|
1023
|
-
agents?: readonly CallAgent[];
|
|
1024
|
-
style?: StyleProp<ViewStyle>;
|
|
1025
|
-
}
|
|
1026
|
-
/**
|
|
1027
|
-
* Speakers and audience, your raise-hand button, and — for moderators —
|
|
1028
|
-
* raised hands with Bring up / Lower, and Move to audience on speakers.
|
|
1029
|
-
*/
|
|
1030
|
-
declare function StagePanel({ stage, participants, selfUserId, nameForUserId, agents, style, }: StagePanelProps): react_jsx_runtime.JSX.Element;
|
|
1031
|
-
interface QuestionsPanelProps {
|
|
1032
|
-
questions: UseQuestions;
|
|
1033
|
-
/** Show Answered / Dismiss on open questions. */
|
|
1034
|
-
canModerate?: boolean;
|
|
1035
|
-
/** Offer "Ask anonymously". Defaults to true. */
|
|
1036
|
-
allowAnonymous?: boolean;
|
|
1037
|
-
nameForUserId?: NameFor;
|
|
1038
|
-
style?: StyleProp<ViewStyle>;
|
|
1039
|
-
}
|
|
1040
|
-
/** Ask a question, upvote others', and (moderators) mark them answered. */
|
|
1041
|
-
declare function QuestionsPanel({ questions, canModerate, allowAnonymous, nameForUserId, style, }: QuestionsPanelProps): react_jsx_runtime.JSX.Element;
|
|
1042
|
-
interface BreakoutBannerProps {
|
|
1043
|
-
breakouts: UseBreakouts;
|
|
1044
|
-
/** You are in your breakout room now (not the main call). */
|
|
1045
|
-
inBreakout?: boolean;
|
|
1046
|
-
/** Connect to the room's session (switch the call's media to it). */
|
|
1047
|
-
onJoined?: (session: RoomSession) => void;
|
|
1048
|
-
/** Connect back to the main call. */
|
|
1049
|
-
onReturned?: (session: RoomSession) => void;
|
|
1050
|
-
style?: StyleProp<ViewStyle>;
|
|
1051
|
-
}
|
|
1052
|
-
/**
|
|
1053
|
-
* "Breakout · Room 2 · 12:30 left · Join room", then "Return to main";
|
|
1054
|
-
* while closing, "Returning to the main call in 0:45". Nothing without a
|
|
1055
|
-
* session or a room for you.
|
|
1056
|
-
*/
|
|
1057
|
-
declare function BreakoutBanner({ breakouts, inBreakout, onJoined, onReturned, style, }: BreakoutBannerProps): react_jsx_runtime.JSX.Element | null;
|
|
1058
|
-
interface LobbyWaitingProps {
|
|
1059
|
-
/** The name the guest gave. */
|
|
1060
|
-
name: string;
|
|
1061
|
-
/** Where the guest stands (`waitInLobby`'s status). */
|
|
1062
|
-
status: GuestLobbyStatus['status'];
|
|
1063
|
-
/** The meeting's title, when known. */
|
|
1064
|
-
title?: string | null;
|
|
1065
|
-
onLeave: () => void;
|
|
1066
|
-
style?: StyleProp<ViewStyle>;
|
|
1067
|
-
}
|
|
1068
|
-
/** A guest's waiting screen: "Waiting for the host to let you in", then denied or ended. */
|
|
1069
|
-
declare function LobbyWaiting({ name, status, title, onLeave, style }: LobbyWaitingProps): react_jsx_runtime.JSX.Element;
|
|
1070
|
-
interface LobbyAdmitListProps {
|
|
1071
|
-
lobby: UseLobby;
|
|
1072
|
-
style?: StyleProp<ViewStyle>;
|
|
1073
|
-
}
|
|
1074
|
-
/** For members: who is waiting, with Admit / Deny and Admit all. Nothing when nobody waits. */
|
|
1075
|
-
declare function LobbyAdmitList({ lobby, style }: LobbyAdmitListProps): react_jsx_runtime.JSX.Element | null;
|
|
1076
|
-
interface MarkMomentButtonProps {
|
|
1077
|
-
moments: UseMoments;
|
|
1078
|
-
/** Icon only (a call control); the label is still read out. */
|
|
1079
|
-
compact?: boolean;
|
|
1080
|
-
style?: StyleProp<ViewStyle>;
|
|
1081
|
-
}
|
|
1082
|
-
/** "Mark moment": highlights this point in the recording and the summary; says "Marked" for 2 s. */
|
|
1083
|
-
declare function MarkMomentButton({ moments, compact, style }: MarkMomentButtonProps): react_jsx_runtime.JSX.Element;
|
|
1084
|
-
interface AgendaPanelProps {
|
|
1085
|
-
agenda: UseAgenda;
|
|
1086
|
-
/** Show Start / Done / Reopen. */
|
|
1087
|
-
canEdit?: boolean;
|
|
1088
|
-
nameForUserId?: NameFor;
|
|
1089
|
-
style?: StyleProp<ViewStyle>;
|
|
1090
|
-
}
|
|
1091
|
-
/** The meeting's agenda: owner and minutes per item, the current one highlighted, an over-time nudge. */
|
|
1092
|
-
declare function AgendaPanel({ agenda, canEdit, nameForUserId, style }: AgendaPanelProps): react_jsx_runtime.JSX.Element | null;
|
|
1093
|
-
interface RoomPresenceProps {
|
|
1094
|
-
/**
|
|
1095
|
-
* Who's in (`useRoomPresence().presence[id]`), or a live call
|
|
1096
|
-
* (`useLiveCall(id).call`); nothing renders when empty.
|
|
1097
|
-
*/
|
|
1098
|
-
call: RoomPresenceEntry | LiveCall | null | undefined;
|
|
1099
|
-
/** Most avatars to show; the rest become "+N". Defaults to 3. */
|
|
1100
|
-
max?: number;
|
|
1101
|
-
nameForUserId?: NameFor;
|
|
1102
|
-
style?: StyleProp<ViewStyle>;
|
|
1103
|
-
}
|
|
1104
|
-
/** Who is in a room, for a sidebar row: overlapping avatars and "+N". */
|
|
1105
|
-
declare function RoomPresence({ call, max, nameForUserId, style }: RoomPresenceProps): react_jsx_runtime.JSX.Element | null;
|
|
1106
|
-
interface MeetingCardProps {
|
|
1107
|
-
card: MeetingCard$1;
|
|
1108
|
-
/** Your user id, to find your answer in the lists. */
|
|
1109
|
-
meId?: string | null;
|
|
1110
|
-
/**
|
|
1111
|
-
* Record your answer yourself. Default: `PUT /meetings/:id/rsvp`
|
|
1112
|
-
* through the provider's client; `false` hides the buttons. The card
|
|
1113
|
-
* updates when the server restates the message.
|
|
1114
|
-
*/
|
|
1115
|
-
onRsvp?: ((response: RsvpResponse) => void | Promise<void>) | false;
|
|
1116
|
-
/** Join the meeting's room. */
|
|
1117
|
-
onJoin?: (card: MeetingCard$1) => void;
|
|
1118
|
-
nameForUserId?: NameFor;
|
|
1119
|
-
style?: StyleProp<ViewStyle>;
|
|
1120
|
-
}
|
|
1121
|
-
/** An invite in chat: title, time, who's coming, Accept / Maybe / Decline and Join. */
|
|
1122
|
-
declare function MeetingCard({ card, meId, onRsvp, onJoin, nameForUserId, style, }: MeetingCardProps): react_jsx_runtime.JSX.Element;
|
|
1123
|
-
interface MeetingCardMessageRowProps extends Omit<MeetingCardProps, 'card'> {
|
|
1124
|
-
msg: Message;
|
|
1125
|
-
}
|
|
1126
|
-
/** A meeting-card message in a list; nothing for any other message. */
|
|
1127
|
-
declare function MeetingCardMessageRow({ msg, ...rest }: MeetingCardMessageRowProps): react_jsx_runtime.JSX.Element | null;
|
|
1128
|
-
|
|
1129
|
-
interface CaptionsOverlayProps {
|
|
1130
|
-
/** `useLiveTranscript(callId).segments`. */
|
|
1131
|
-
segments: readonly LiveTranscriptSegment[];
|
|
1132
|
-
/** How many lines to show. Defaults to 2. */
|
|
1133
|
-
lines?: number;
|
|
1134
|
-
style?: StyleProp<ViewStyle>;
|
|
1135
|
-
}
|
|
1136
|
-
/** The last lines of the live transcript, with speaker names; words still being spoken are dimmed. */
|
|
1137
|
-
declare function CaptionsOverlay({ segments, lines, style }: CaptionsOverlayProps): react_jsx_runtime.JSX.Element | null;
|
|
1138
|
-
interface ReactionsOverlayProps {
|
|
1139
|
-
/** `useCallReactions(room).reactions`. */
|
|
1140
|
-
reactions: readonly CallReaction[];
|
|
1141
|
-
style?: StyleProp<ViewStyle>;
|
|
1142
|
-
}
|
|
1143
|
-
/** Reactions rising over the call (still, with Reduce Motion). Never takes touches. */
|
|
1144
|
-
declare function ReactionsOverlay({ reactions, style }: ReactionsOverlayProps): react_jsx_runtime.JSX.Element;
|
|
1145
|
-
interface ReactionPickerBarProps {
|
|
1146
|
-
onReact: (emoji: string) => void;
|
|
1147
|
-
emojis?: readonly string[];
|
|
1148
|
-
style?: StyleProp<ViewStyle>;
|
|
1149
|
-
}
|
|
1150
|
-
/** A row of reaction buttons (`DEFAULT_CALL_REACTIONS`). */
|
|
1151
|
-
declare function ReactionPickerBar({ onReact, emojis, style, }: ReactionPickerBarProps): react_jsx_runtime.JSX.Element;
|
|
1152
|
-
interface ConnectionIndicatorProps {
|
|
1153
|
-
/** A web `CallConnectionQuality` or the native core's `'good' | 'poor' | 'lost' | 'unknown'`. */
|
|
1154
|
-
quality: CallConnectionQuality | 'good' | 'poor' | 'lost' | 'unknown' | null | undefined;
|
|
1155
|
-
/** Bar height in px. Defaults to 12. */
|
|
1156
|
-
size?: number;
|
|
1157
|
-
style?: StyleProp<ViewStyle>;
|
|
1158
|
-
}
|
|
1159
|
-
/** Three signal bars; a weak link turns amber, a lost one red. Labelled for screen readers. */
|
|
1160
|
-
declare function ConnectionIndicator({ quality, size, style }: ConnectionIndicatorProps): react_jsx_runtime.JSX.Element | null;
|
|
1161
|
-
interface NetworkBannerProps {
|
|
1162
|
-
/** `useCallQuality(room)?.issues`, or `diagnoseCallNetwork(…)` from a native snapshot. */
|
|
1163
|
-
issues: readonly CallNetworkIssue[];
|
|
1164
|
-
onDismiss?: () => void;
|
|
1165
|
-
style?: StyleProp<ViewStyle>;
|
|
1166
|
-
}
|
|
1167
|
-
/** The worst network problem in plain words ("Your network is dropping packets…"). */
|
|
1168
|
-
declare function NetworkBanner({ issues, onDismiss, style }: NetworkBannerProps): react_jsx_runtime.JSX.Element | null;
|
|
1169
|
-
interface WhiteboardViewProps {
|
|
1170
|
-
/** `useWhiteboard(callId, Y).items`. */
|
|
1171
|
-
items: readonly WhiteboardItem[];
|
|
1172
|
-
/** With a model and not `readOnly`, a finger draws pen strokes. */
|
|
1173
|
-
model?: WhiteboardModel | null;
|
|
1174
|
-
readOnly?: boolean;
|
|
1175
|
-
/** Pen colour and width (board units). */
|
|
1176
|
-
color?: string;
|
|
1177
|
-
width?: number;
|
|
1178
|
-
style?: StyleProp<ViewStyle>;
|
|
1179
|
-
}
|
|
1180
|
-
/**
|
|
1181
|
-
* The call's whiteboard, fit to the view (1600 × 900 board units). View
|
|
1182
|
-
* only by default; pass the model to draw simple pen strokes.
|
|
1183
|
-
*/
|
|
1184
|
-
declare function WhiteboardView({ items, model, readOnly, color, width, style, }: WhiteboardViewProps): react_jsx_runtime.JSX.Element;
|
|
1185
|
-
interface AnnotationOverlayProps {
|
|
1186
|
-
/** `useScreenAnnotations(room, sharerUserId).state`. */
|
|
1187
|
-
state: AnnotationState | null;
|
|
1188
|
-
style?: StyleProp<ViewStyle>;
|
|
1189
|
-
}
|
|
1190
|
-
/**
|
|
1191
|
-
* Lines and pointers others draw on a shared screen, laid over the
|
|
1192
|
-
* screen's video (same box, `fit="contain"` area). View only.
|
|
1193
|
-
*/
|
|
1194
|
-
declare function AnnotationOverlay({ state, style }: AnnotationOverlayProps): react_jsx_runtime.JSX.Element;
|
|
1195
|
-
|
|
1196
|
-
/** 45 → "0:45", 3725 → "1:02:05". */
|
|
1197
|
-
declare function formatCountdown(seconds: number | null | undefined): string;
|
|
1198
|
-
/** Show at most `max` avatars; the rest become "+N". */
|
|
1199
|
-
declare function avatarOverflow<T>(list: readonly T[], max: number): {
|
|
1200
|
-
shown: T[];
|
|
1201
|
-
more: number;
|
|
1202
|
-
};
|
|
1203
|
-
/** One caption line: a speaker's run of text, interim when still talking. */
|
|
1204
|
-
interface CaptionLine {
|
|
1205
|
-
key: string;
|
|
1206
|
-
speaker: string;
|
|
1207
|
-
text: string;
|
|
1208
|
-
interim: boolean;
|
|
1209
|
-
}
|
|
1210
|
-
/**
|
|
1211
|
-
* The last `lines` caption lines: consecutive segments of one speaker are
|
|
1212
|
-
* joined, an interim segment after them shown as still being spoken.
|
|
1213
|
-
* Each line keeps only its last `maxChars` characters.
|
|
1214
|
-
*/
|
|
1215
|
-
declare function captionLines(segments: readonly LiveTranscriptSegment[], lines?: number, maxChars?: number): CaptionLine[];
|
|
1216
|
-
/** "Budget review is 3 min over" — null when not over by a whole minute. */
|
|
1217
|
-
declare function overrunText(title: string, overrunMs: number): string | null;
|
|
1218
|
-
/** "Tue 21 Nov · 10:00–10:30" in the device's locale. */
|
|
1219
|
-
declare function meetingTimeText(card: Pick<MeetingCard$1, 'startsAt' | 'endsAt'>): string | null;
|
|
1220
|
-
/** "4 accepted · 1 maybe · 2 declined" (empty parts left out), or null. */
|
|
1221
|
-
declare function rsvpSummary(card: Pick<MeetingCard$1, 'rsvps'> & Partial<Pick<MeetingCard$1, 'counts'>>): string | null;
|
|
1222
|
-
|
|
1223
|
-
interface MessageComposerProps {
|
|
1224
|
-
/**
|
|
1225
|
-
* Called when the user taps Send. Second arg carries
|
|
1226
|
-
* `quoted_message_id` (when replying) and `attachment_ids`
|
|
1227
|
-
* (resolved from the composer's upload queue). Awaited so the
|
|
1228
|
-
* composer disables until the send round-trips.
|
|
1229
|
-
*/
|
|
1230
|
-
onSend: (body: string, opts?: ComposerSendOptions) => Promise<unknown> | void;
|
|
1231
|
-
/** Called on every keystroke. Hook to `useTyping().signalTyping`. */
|
|
1232
|
-
onTyping?: () => void;
|
|
1233
|
-
placeholder?: string;
|
|
1234
|
-
disabled?: boolean;
|
|
1235
|
-
/** Renders a quote chip above the input; cleared by the caller in `onSend`. */
|
|
1236
|
-
replyingTo?: Message | null;
|
|
1237
|
-
/** User tapped (x) on the quote chip. */
|
|
1238
|
-
onCancelReply?: () => void;
|
|
1239
|
-
/** Display label for the quoted sender, keyed by `external_id`. */
|
|
1240
|
-
labelFor?: (externalId: string) => string;
|
|
1241
|
-
/** Show the paperclip + queue strip. Defaults true. */
|
|
1242
|
-
attachments?: boolean;
|
|
1243
|
-
/** Tap on the paperclip — wire to `<AttachmentPicker>` from the same package. */
|
|
1244
|
-
onAttachPress?: () => void;
|
|
1245
|
-
/**
|
|
1246
|
-
* Distance from the top of the screen to the top of the
|
|
1247
|
-
* KeyboardAvoidingView — typically the height of any navigation
|
|
1248
|
-
* header sitting above the chat. Pass this when the iOS keyboard
|
|
1249
|
-
* suggestions strip ends up covering the composer (a sign the
|
|
1250
|
-
* computed offset is wrong). Defaults to 0; on Android it's
|
|
1251
|
-
* ignored.
|
|
1252
|
-
*/
|
|
1253
|
-
keyboardOffset?: number;
|
|
1254
|
-
/**
|
|
1255
|
-
* When set, the composer enters edit mode: prefills the input with
|
|
1256
|
-
* the message body and renders an "Editing message" chip above
|
|
1257
|
-
* (mirrors `replyingTo`). Tapping Send calls `onSaveEdit(body)`
|
|
1258
|
-
* instead of `onSend`; `onCancelEdit` clears the chip and restores
|
|
1259
|
-
* the previous draft. Pass `null` (or omit) when not editing.
|
|
1260
|
-
*/
|
|
1261
|
-
editingMessage?: Message | null;
|
|
1262
|
-
onCancelEdit?: () => void;
|
|
1263
|
-
onSaveEdit?: (body: string) => Promise<unknown> | void;
|
|
1264
|
-
/**
|
|
1265
|
-
* Controlled text. With `value`, the composer shows it and reports
|
|
1266
|
-
* keystrokes through `onChangeText` (ConversationView uses this for
|
|
1267
|
-
* drafts). Edit mode keeps its own text either way.
|
|
1268
|
-
*/
|
|
1269
|
-
value?: string;
|
|
1270
|
-
/** Every change to the (non-edit) text, typed or programmatic. */
|
|
1271
|
-
onChangeText?: (text: string) => void;
|
|
1272
|
-
/** The cursor / selection moved. */
|
|
1273
|
-
onSelectionChange?: (selection: {
|
|
1274
|
-
start: number;
|
|
1275
|
-
end: number;
|
|
1276
|
-
}) => void;
|
|
1277
|
-
/** An emoji button that opens `<EmojiPicker>` and inserts at the cursor. Defaults to true. */
|
|
1278
|
-
emojiPicker?: boolean;
|
|
1279
|
-
/** Rendered above the input row — e.g. `<MentionInput>`'s suggestions. */
|
|
1280
|
-
accessory?: ReactNode;
|
|
1281
|
-
/**
|
|
1282
|
-
* Show the Markdown formatting toolbar (bold, italic, strike, code,
|
|
1283
|
-
* link, quote, lists, checklist, code block, table) above the input.
|
|
1284
|
-
* Default `false`. Pass an array to choose the buttons and their order.
|
|
1285
|
-
*/
|
|
1286
|
-
formattingToolbar?: boolean | readonly FormatKind[];
|
|
1287
|
-
/** Slash commands to suggest when the message starts with `/` (IN3). */
|
|
1288
|
-
commands?: readonly SlashCommand[];
|
|
1289
|
-
}
|
|
1290
|
-
/** The second argument of `onSend`. */
|
|
1291
|
-
interface ComposerSendOptions {
|
|
1292
|
-
quoted_message_id?: Uuid;
|
|
1293
|
-
attachment_ids?: Uuid[];
|
|
1294
|
-
/** Set when the sender chose "Send anyway" on a data-loss-prevention warning (AD6). */
|
|
1295
|
-
dlp_acknowledged?: true;
|
|
1296
|
-
}
|
|
1297
|
-
/**
|
|
1298
|
-
* Imperative handle for parents that want to add files to the
|
|
1299
|
-
* composer's upload queue externally (drag/drop on a wrapper,
|
|
1300
|
-
* deep-link, attachment shortcut).
|
|
1301
|
-
*/
|
|
1302
|
-
interface MessageComposerHandle {
|
|
1303
|
-
/** Enqueue ready-to-upload inputs. The picker component is the usual caller; this is the escape hatch. */
|
|
1304
|
-
addFiles: (inputs: AttachmentUploadInput[]) => void;
|
|
1305
|
-
focus: () => void;
|
|
1306
|
-
clear: () => void;
|
|
1307
|
-
/** Move the cursor (`start === end`) or select a range. */
|
|
1308
|
-
setSelection: (start: number, end: number) => void;
|
|
1309
|
-
}
|
|
1310
|
-
declare const MessageComposer: react.ForwardRefExoticComponent<MessageComposerProps & react.RefAttributes<MessageComposerHandle>>;
|
|
1311
|
-
|
|
1312
|
-
interface FormattingToolbarProps {
|
|
1313
|
-
onFormat: (kind: FormatKind) => void;
|
|
1314
|
-
disabled?: boolean;
|
|
1315
|
-
/** Which buttons, in order. Defaults to all of `FORMAT_ACTIONS`. */
|
|
1316
|
-
actions?: readonly FormatKind[];
|
|
1317
|
-
}
|
|
1318
|
-
/** A horizontally scrolling row of formatting buttons. */
|
|
1319
|
-
declare function FormattingToolbar({ onFormat, disabled, actions, }: FormattingToolbarProps): react_jsx_runtime.JSX.Element;
|
|
1320
|
-
/** `/command` suggestions for the text and cursor, or `null` when none match. */
|
|
1321
|
-
declare function CommandSuggestions({ commands, text, cursor, onPick, }: {
|
|
1322
|
-
commands: readonly SlashCommand[];
|
|
1323
|
-
text: string;
|
|
1324
|
-
cursor: number;
|
|
1325
|
-
onPick: (command: SlashCommand) => void;
|
|
1326
|
-
}): react_jsx_runtime.JSX.Element | null;
|
|
1327
|
-
interface DlpWarningSheetProps {
|
|
1328
|
-
outcome: DlpOutcome;
|
|
1329
|
-
/** "Send anyway" (only offered for a warning, never for a block). */
|
|
1330
|
-
onSendAnyway?: () => void;
|
|
1331
|
-
/** "Edit message": back to the composer with the text kept. */
|
|
1332
|
-
onEdit: () => void;
|
|
1333
|
-
}
|
|
1334
|
-
/** The data-loss-prevention warning as a centred modal. */
|
|
1335
|
-
declare function DlpWarningSheet({ outcome, onSendAnyway, onEdit }: DlpWarningSheetProps): react_jsx_runtime.JSX.Element;
|
|
1336
|
-
|
|
1337
|
-
interface MessageActionsProps {
|
|
1338
|
-
visible: boolean;
|
|
1339
|
-
onClose: () => void;
|
|
1340
|
-
isSelf: boolean;
|
|
1341
|
-
/**
|
|
1342
|
-
* Quick-reaction emoji row rendered at the top of the sheet. Tap
|
|
1343
|
-
* one to fire `onPickReaction(emoji)` and immediately close. When
|
|
1344
|
-
* omitted (or `onPickReaction` is omitted) the row is hidden.
|
|
1345
|
-
*/
|
|
1346
|
-
emojis?: string[];
|
|
1347
|
-
onPickReaction?: (emoji: string) => void;
|
|
1348
|
-
onReply?: () => void;
|
|
1349
|
-
onReplyInThread?: () => void;
|
|
1350
|
-
onQuote?: () => void;
|
|
1351
|
-
onEdit?: () => void;
|
|
1352
|
-
onDelete?: () => void;
|
|
1353
|
-
onCopy?: () => void;
|
|
1354
|
-
/** "Mark unread" — offered on other people's messages. */
|
|
1355
|
-
onMarkUnread?: () => void;
|
|
1356
|
-
/**
|
|
1357
|
-
* "Remove preview" (one per link when there are several) — offered to
|
|
1358
|
-
* the sender. Receives the preview's `url`.
|
|
1359
|
-
*/
|
|
1360
|
-
onRemovePreview?: (url: string) => void;
|
|
1361
|
-
/** The message's link-preview urls, for `onRemovePreview`. */
|
|
1362
|
-
previewUrls?: string[];
|
|
1363
|
-
/**
|
|
1364
|
-
* A "+" after the quick reactions that opens the full emoji picker.
|
|
1365
|
-
* Called after the sheet closes.
|
|
1366
|
-
*/
|
|
1367
|
-
onMoreReactions?: () => void;
|
|
1368
|
-
/** Pin or unpin (MS13); `pinned` picks the label. */
|
|
1369
|
-
onTogglePin?: () => void;
|
|
1370
|
-
pinned?: boolean;
|
|
1371
|
-
/** Forward to other conversations (MS13): open your target picker (`<ForwardSheet>`). */
|
|
1372
|
-
onForward?: () => void;
|
|
1373
|
-
/** Translate (MS21), or back to the original when `translated`. */
|
|
1374
|
-
onTranslate?: () => void;
|
|
1375
|
-
translated?: boolean;
|
|
1376
|
-
}
|
|
1377
|
-
/**
|
|
1378
|
-
* Long-press action menu — modal bottom sheet. Renders a row of
|
|
1379
|
-
* quick-react emojis at the top (one tap reacts + closes) plus the
|
|
1380
|
-
* action items below. Matches WhatsApp / iMessage's "long-press
|
|
1381
|
-
* shows everything inline" pattern.
|
|
1382
|
-
*/
|
|
1383
|
-
declare function MessageActions({ visible, onClose, isSelf, emojis, onPickReaction, onReply, onReplyInThread, onQuote, onEdit, onDelete, onCopy, onMarkUnread, onRemovePreview, previewUrls, onMoreReactions, onTogglePin, pinned, onForward, onTranslate, translated, }: MessageActionsProps): react_jsx_runtime.JSX.Element;
|
|
1384
|
-
|
|
1385
|
-
/**
|
|
1386
|
-
* Either a real message or a day-separator row. ConversationView
|
|
1387
|
-
* builds the list of items (interleaving separators where the day
|
|
1388
|
-
* changes) and hands it to MessageList; MessageList just renders.
|
|
1389
|
-
*/
|
|
1390
|
-
type MessageListItem = {
|
|
1391
|
-
kind: 'msg';
|
|
1392
|
-
msg: Message;
|
|
1393
|
-
} | {
|
|
1394
|
-
kind: 'separator';
|
|
1395
|
-
id: string;
|
|
1396
|
-
node: ReactElement;
|
|
1397
|
-
};
|
|
1398
|
-
interface MessageListProps {
|
|
1399
|
-
messages: Message[];
|
|
1400
|
-
/**
|
|
1401
|
-
* Optional pre-built item list (with day separators interleaved).
|
|
1402
|
-
* When omitted, a list with `{ kind: 'msg' }` items is derived
|
|
1403
|
-
* from `messages` and rendered without separators.
|
|
1404
|
-
*/
|
|
1405
|
-
items?: MessageListItem[];
|
|
1406
|
-
loading?: boolean;
|
|
1407
|
-
hasMore?: boolean;
|
|
1408
|
-
onLoadMore?: () => void;
|
|
1409
|
-
renderItem: (msg: Message, index: number) => ReactElement;
|
|
1410
|
-
/** Slot rendered above the latest message (typically the typing indicator). */
|
|
1411
|
-
ListHeader?: ReactElement | null;
|
|
1412
|
-
/** Slot rendered below the oldest message (rare — typically nothing). */
|
|
1413
|
-
ListFooter?: ReactElement | null;
|
|
1414
|
-
/** Custom empty state when there are no messages. */
|
|
1415
|
-
emptyState?: ReactElement | string;
|
|
1416
|
-
/**
|
|
1417
|
-
* The current user's id. When provided, MessageList will show a
|
|
1418
|
-
* "↓ N new messages" jump button at the bottom of the chat
|
|
1419
|
-
* whenever new messages from OTHER users arrive while the user is
|
|
1420
|
-
* scrolled away from the bottom. Tapping scrolls to the latest.
|
|
1421
|
-
*/
|
|
1422
|
-
meId?: string | null;
|
|
1423
|
-
/**
|
|
1424
|
-
* Scroll this message to the middle of the list (it must already be
|
|
1425
|
-
* in `messages`). Changing `scrollRequest` — e.g. a counter — scrolls
|
|
1426
|
-
* again to the same message.
|
|
1427
|
-
*/
|
|
1428
|
-
scrollToMessageId?: string | null;
|
|
1429
|
-
scrollRequest?: number;
|
|
1430
|
-
/**
|
|
1431
|
-
* The rows on screen changed: message ids and separator ids. Lets a
|
|
1432
|
-
* parent tell whether a row (e.g. the "New messages" line) was seen.
|
|
1433
|
-
*/
|
|
1434
|
-
onVisibleItemsChange?: (keys: string[]) => void;
|
|
1435
|
-
}
|
|
1436
|
-
/**
|
|
1437
|
-
* Inverted FlatList wrapper for chat history. Newest message at the
|
|
1438
|
-
* bottom (visually), oldest at the top. Calls `onLoadMore` when the
|
|
1439
|
-
* user scrolls near the top edge and `hasMore` is true.
|
|
1440
|
-
*
|
|
1441
|
-
* Pagination is owned by `useMessages` (hand it `messages` +
|
|
1442
|
-
* `hasMore` + `loadMore`); this component just renders + scrolls.
|
|
1443
|
-
*/
|
|
1444
|
-
declare function MessageList({ messages, items, loading, hasMore, onLoadMore, renderItem, ListHeader, ListFooter, emptyState, meId, scrollToMessageId, scrollRequest, onVisibleItemsChange, }: MessageListProps): react_jsx_runtime.JSX.Element;
|
|
1445
|
-
|
|
1446
|
-
interface DaySeparatorProps {
|
|
1447
|
-
label: string;
|
|
1448
|
-
/**
|
|
1449
|
-
* `'pill'` (default) — a centred chip, for bubbles. `'rule'` — a
|
|
1450
|
-
* hairline across the row with the chip on it, for the `list` and
|
|
1451
|
-
* `compact` layouts.
|
|
1452
|
-
*/
|
|
1453
|
-
variant?: 'pill' | 'rule';
|
|
1454
|
-
}
|
|
1455
|
-
/**
|
|
1456
|
-
* Centered date pill rendered between messages whose `inserted_at`
|
|
1457
|
-
* falls on a different calendar day from the previous message. Pair
|
|
1458
|
-
* with `formatDayLabel` from `@poolse/react` to compute the label
|
|
1459
|
-
* ("Today" / "Yesterday" / weekday / "26 May 2024").
|
|
1460
|
-
*/
|
|
1461
|
-
declare function DaySeparator({ label, variant }: DaySeparatorProps): react_jsx_runtime.JSX.Element;
|
|
1462
|
-
|
|
1463
|
-
interface TypingIndicatorProps {
|
|
1464
|
-
/** Set of `external_id`s currently typing — what `useTyping` returns. */
|
|
1465
|
-
typing: Set<string>;
|
|
1466
|
-
/**
|
|
1467
|
-
* Resolves an `external_id` to a display label. Defaults to the
|
|
1468
|
-
* SDK's `userResolver` (and falls back to the external_id itself
|
|
1469
|
-
* when the resolver isn't configured).
|
|
1470
|
-
*/
|
|
1471
|
-
labelFor?: (externalId: string) => string;
|
|
1472
|
-
}
|
|
1473
|
-
/**
|
|
1474
|
-
* Three animated dots + an inline "X is typing" label. Renders a
|
|
1475
|
-
* zero-height row when nobody is typing so the list doesn't jump.
|
|
1476
|
-
*/
|
|
1477
|
-
declare function TypingIndicator({ typing, labelFor }: TypingIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
1478
|
-
|
|
1479
|
-
interface ThreadViewProps {
|
|
1480
|
-
visible: boolean;
|
|
1481
|
-
onClose: () => void;
|
|
1482
|
-
conversationId: Uuid;
|
|
1483
|
-
rootMessage: Message;
|
|
1484
|
-
labelFor?: (externalId: string) => string;
|
|
1485
|
-
avatarFor?: (externalId: string) => string | null;
|
|
1486
|
-
/** Row layout for the root and replies — see `ChatLayout`. Defaults to `'bubbles'`. */
|
|
1487
|
-
layout?: ChatLayout;
|
|
1488
|
-
timeFormat?: TimeFormat;
|
|
1489
|
-
/** Row spacing for the root and replies, as on `ConversationView`. */
|
|
1490
|
-
density?: ChatDensity;
|
|
1491
|
-
/** Presence badges on reply avatars. Defaults to `false`. */
|
|
1492
|
-
showPresence?: boolean;
|
|
1493
|
-
/** Link previews under replies. Defaults to `true`. */
|
|
1494
|
-
linkPreviews?: boolean;
|
|
1495
|
-
/** A Follow / Following button in the header (MS19). Default `true`. */
|
|
1496
|
-
follow?: boolean;
|
|
1497
|
-
/** An "Also send to channel" switch above the composer (MS19). Default `true`; off in DMs. */
|
|
1498
|
-
alsoSendToChannel?: boolean;
|
|
1499
|
-
}
|
|
1500
|
-
/**
|
|
1501
|
-
* Bottom-sheet modal for thread replies. Pull the drag handle / header
|
|
1502
|
-
* down to dismiss; tap the backdrop or close button too. The composer
|
|
1503
|
-
* inside the sheet supports attachments (paperclip → picker, shared
|
|
1504
|
-
* upload queue) and the reply rows support reactions, swipe-to-reply,
|
|
1505
|
-
* long-press actions, edit, delete — same surface as ConversationView.
|
|
1506
|
-
*
|
|
1507
|
-
* Keyboard handling: the modal is translucent (edge-to-edge) on both
|
|
1508
|
-
* platforms, so nothing resizes it for the keyboard — Android's
|
|
1509
|
-
* `adjustResize` doesn't reach an edge-to-edge window. The composer
|
|
1510
|
-
* needs its own `padding` KeyboardAvoidingView with
|
|
1511
|
-
* `keyboardVerticalOffset` = the distance from the screen top to the
|
|
1512
|
-
* sheet top (the gutter), since KAV measures its frame relative to
|
|
1513
|
-
* its parent (the sheet), not the screen.
|
|
1514
|
-
*/
|
|
1515
|
-
declare function ThreadView({ visible, onClose, conversationId, rootMessage, labelFor, avatarFor, layout, timeFormat, density, showPresence, linkPreviews, follow, alsoSendToChannel, }: ThreadViewProps): react_jsx_runtime.JSX.Element;
|
|
1516
|
-
|
|
1517
|
-
interface ThreadSummaryProps {
|
|
1518
|
-
/** The thread's root: `reply_count`, `last_reply_at`, `thread_participants`. */
|
|
1519
|
-
message: Pick<Message, 'reply_count' | 'last_reply_at' | 'thread_participants'>;
|
|
1520
|
-
onPress: () => void;
|
|
1521
|
-
labelFor?: (externalId: string) => string;
|
|
1522
|
-
avatarFor?: (externalId: string) => string | null;
|
|
1523
|
-
/** Align to the right (under your own bubble). */
|
|
1524
|
-
alignEnd?: boolean;
|
|
1525
|
-
}
|
|
1526
|
-
/**
|
|
1527
|
-
* "3 replies · last reply 5m ago" with the last few repliers' avatars
|
|
1528
|
-
* stacked in front. Tap opens the thread. Draws nothing without replies.
|
|
1529
|
-
*/
|
|
1530
|
-
declare function ThreadSummary({ message, onPress, labelFor, avatarFor, alignEnd, }: ThreadSummaryProps): react_jsx_runtime.JSX.Element | null;
|
|
1531
|
-
|
|
1532
|
-
interface NewMessagesDividerProps {
|
|
1533
|
-
/** Defaults to "New messages". */
|
|
1534
|
-
label?: string;
|
|
1535
|
-
}
|
|
1536
|
-
/**
|
|
1537
|
-
* The line `<ConversationView>` draws above the first message you
|
|
1538
|
-
* hadn't read when the conversation opened. Full width, so it reads the
|
|
1539
|
-
* same in every layout.
|
|
1540
|
-
*/
|
|
1541
|
-
declare function NewMessagesDivider({ label }: NewMessagesDividerProps): react_jsx_runtime.JSX.Element;
|
|
1542
|
-
|
|
1543
|
-
interface EditHistorySheetProps {
|
|
1544
|
-
visible: boolean;
|
|
1545
|
-
onClose: () => void;
|
|
1546
|
-
messageId: Uuid;
|
|
1547
|
-
/** The text the message has now, shown on top as "Current". */
|
|
1548
|
-
currentBody?: string | null;
|
|
1549
|
-
/**
|
|
1550
|
-
* The server refused the history (403 — the workspace keeps it to
|
|
1551
|
-
* admins or the sender). The sheet closes itself.
|
|
1552
|
-
*/
|
|
1553
|
-
onForbidden?: () => void;
|
|
1554
|
-
}
|
|
1555
|
-
/**
|
|
1556
|
-
* Bottom sheet listing a message's earlier versions, newest first
|
|
1557
|
-
* (`chat.messages.edits(id)`). Opened from the "edited" label.
|
|
1558
|
-
*/
|
|
1559
|
-
declare function EditHistorySheet({ visible, onClose, messageId, currentBody, onForbidden, }: EditHistorySheetProps): react_jsx_runtime.JSX.Element;
|
|
1560
|
-
|
|
1561
|
-
interface UserNameProps {
|
|
1562
|
-
/** The user's external_id. Pass null to render the fallback. */
|
|
1563
|
-
externalId: string | null | undefined;
|
|
1564
|
-
/** Optional fallback when the resolver returns nothing. Defaults to the externalId itself. */
|
|
1565
|
-
fallback?: string;
|
|
1566
|
-
/** Caller-supplied label override; if it returns a string, it wins. */
|
|
1567
|
-
labelFor?: (externalId: string) => string;
|
|
1568
|
-
/** The Agent badge after an agent's name (AG1). Defaults to `true`. */
|
|
1569
|
-
agentBadge?: boolean;
|
|
1570
|
-
}
|
|
1571
|
-
/**
|
|
1572
|
-
* Display name for a user, looked up via the SDK's `userResolver`
|
|
1573
|
-
* with caller-overridable + fallback fallbacks. Renders a `<Text>`.
|
|
1574
|
-
*/
|
|
1575
|
-
declare function UserName({ externalId, fallback, labelFor, agentBadge }: UserNameProps): react_jsx_runtime.JSX.Element;
|
|
1576
|
-
/**
|
|
1577
|
-
* Resolves a user's display name via the 3-tier chain:
|
|
1578
|
-
* 1. `labelFor(externalId)` — caller-supplied override
|
|
1579
|
-
* 2. SDK `userResolver` (memoized via `useUser`)
|
|
1580
|
-
* 3. The externalId itself (so something always renders)
|
|
1581
|
-
*/
|
|
1582
|
-
declare function useDisplayName(externalId: string | null | undefined, labelFor?: (externalId: string) => string): string;
|
|
1583
|
-
|
|
1584
|
-
/** One section of `<ConversationList sections>`. */
|
|
1585
|
-
interface ConversationSection {
|
|
1586
|
-
title: string;
|
|
1587
|
-
/** Conversations this section holds. Each conversation goes to the first section that takes it. */
|
|
1588
|
-
filter: (conversation: Conversation) => boolean;
|
|
1589
|
-
}
|
|
1590
|
-
/** `<ConversationList groupBy>`: `'type'` → "Channels" (groups), then "Direct messages". */
|
|
1591
|
-
type ConversationGroupBy = 'type';
|
|
1592
|
-
|
|
1593
|
-
interface ConversationListProps {
|
|
1594
|
-
selectedId?: string | null;
|
|
1595
|
-
onSelect?: (conv: Conversation) => void;
|
|
1596
|
-
/** Optional override for each row's rendering. */
|
|
1597
|
-
renderItem?: (conv: Conversation, selected: boolean) => ReactNode;
|
|
1598
|
-
/**
|
|
1599
|
-
* What an empty list shows. Defaults to "No conversations yet" with a
|
|
1600
|
-
* hint at the next step.
|
|
1601
|
-
*/
|
|
1602
|
-
emptyState?: ReactNode | string;
|
|
1603
|
-
/** Show only conversations matching this text (a search field in `header`). */
|
|
1604
|
-
query?: string;
|
|
1605
|
-
/** What shows when `query` matches nothing. Receives the query. */
|
|
1606
|
-
noResultsState?: ReactNode | ((query: string) => ReactNode);
|
|
1607
|
-
/** Controlled-mode: skip `useConversations()` and render from these. */
|
|
1608
|
-
conversations?: Conversation[];
|
|
1609
|
-
loading?: boolean;
|
|
1610
|
-
error?: Error | null;
|
|
1611
|
-
/**
|
|
1612
|
-
* Controlled mode paging: more conversations exist. Uncontrolled, the
|
|
1613
|
-
* list pages through `useConversations()` itself.
|
|
1614
|
-
*/
|
|
1615
|
-
hasMore?: boolean;
|
|
1616
|
-
/** Controlled mode paging: a page is loading (a spinner shows at the end). */
|
|
1617
|
-
loadingMore?: boolean;
|
|
1618
|
-
/** Controlled mode paging: called near the end of the list while `hasMore`. */
|
|
1619
|
-
onLoadMore?: () => void;
|
|
1620
|
-
/** Per-conversation unread counts rendered as a Pulse Coral pill. */
|
|
1621
|
-
unreadCounts?: Record<Uuid, number>;
|
|
1622
|
-
/**
|
|
1623
|
-
* Explicit overrides for direct-chat names + avatars, keyed by the
|
|
1624
|
-
* OTHER member's external_id. When omitted, the row falls back to
|
|
1625
|
-
* `PoolseConfig.userResolver` and finally to the external_id.
|
|
1626
|
-
*/
|
|
1627
|
-
labelFor?: (externalId: string) => string;
|
|
1628
|
-
avatarFor?: (externalId: string) => string | null;
|
|
1629
|
-
/** Scrolls with the list, above the first row (a search field, a title). */
|
|
1630
|
-
header?: ReactElement | null;
|
|
1631
|
-
/**
|
|
1632
|
-
* Split the list into titled sections; each conversation goes to the
|
|
1633
|
-
* first section whose `filter` takes it, empty sections are hidden.
|
|
1634
|
-
* Overrides `groupBy`.
|
|
1635
|
-
*/
|
|
1636
|
-
sections?: ConversationSection[];
|
|
1637
|
-
/** `'type'` → "Channels" (groups), then "Direct messages". */
|
|
1638
|
-
groupBy?: ConversationGroupBy;
|
|
1639
|
-
/** `'comfortable'` (default) or `'compact'` rows (smaller avatar, one line). */
|
|
1640
|
-
density?: ChatDensity;
|
|
1641
|
-
/** Presence badges on direct chats' avatars. Defaults to `true`. */
|
|
1642
|
-
showPresence?: boolean;
|
|
1643
|
-
}
|
|
1644
|
-
declare function ConversationList({ selectedId, onSelect, renderItem, emptyState, query, noResultsState, conversations: controlled, loading: controlledLoading, error: controlledError, hasMore: controlledHasMore, loadingMore: controlledLoadingMore, onLoadMore, unreadCounts, labelFor, avatarFor, header, sections, groupBy, density, showPresence, }: ConversationListProps): react_jsx_runtime.JSX.Element;
|
|
1645
|
-
|
|
1646
|
-
interface MemberListProps {
|
|
1647
|
-
conversationId: Uuid;
|
|
1648
|
-
labelFor?: (externalId: string) => string;
|
|
1649
|
-
avatarFor?: (externalId: string) => string | null;
|
|
1650
|
-
onlineExternalIds?: Set<string>;
|
|
1651
|
-
canRemove?: (m: Membership) => boolean;
|
|
1652
|
-
renderItem?: (m: Membership) => ReactNode;
|
|
1653
|
-
emptyState?: ReactNode | string;
|
|
1654
|
-
/**
|
|
1655
|
-
* Presence badges on the avatars (online / away / in a call / do not
|
|
1656
|
-
* disturb, via `useUserPresence`). Defaults to `true`. With
|
|
1657
|
-
* `onlineExternalIds` given, those drive a plain online dot instead.
|
|
1658
|
-
*/
|
|
1659
|
-
showPresence?: boolean;
|
|
1660
|
-
}
|
|
1661
|
-
declare function MemberList({ conversationId, labelFor, avatarFor, onlineExternalIds, canRemove, renderItem, emptyState, showPresence, }: MemberListProps): react_jsx_runtime.JSX.Element;
|
|
1662
|
-
|
|
1663
|
-
interface PresenceBadgeProps {
|
|
1664
|
-
/** `online`, `away`, `in_call` or `offline` (draws nothing), as `useUserPresence` gives it. */
|
|
1665
|
-
state: PresenceState | null | undefined;
|
|
1666
|
-
/** Do not disturb: a moon instead of the online / away dot. */
|
|
1667
|
-
doNotDisturb?: boolean;
|
|
1668
|
-
/** Diameter in px. Defaults to 12. */
|
|
1669
|
-
size?: number;
|
|
1670
|
-
/** The ring around the badge — the colour it sits on. Defaults to `colors.surface`. */
|
|
1671
|
-
ringColor?: string;
|
|
1672
|
-
style?: StyleProp<ViewStyle>;
|
|
1673
|
-
}
|
|
1674
|
-
/**
|
|
1675
|
-
* A presence dot: online = `success`, away = `warning`, in a call =
|
|
1676
|
-
* `accent` with a phone, do not disturb = a moon. Offline (or unknown)
|
|
1677
|
-
* draws nothing.
|
|
1678
|
-
*/
|
|
1679
|
-
declare function PresenceBadge({ state, doNotDisturb, size, ringColor, style, }: PresenceBadgeProps): react_jsx_runtime.JSX.Element | null;
|
|
1680
|
-
|
|
1681
|
-
interface AttachmentPreviewProps {
|
|
1682
|
-
attachment: Attachment;
|
|
1683
|
-
/** Optional tap handler. For images defaults to opening the source URL. */
|
|
1684
|
-
onPress?: () => void;
|
|
1685
|
-
/** Render at this max width. Defaults to 280. */
|
|
1686
|
-
maxWidth?: number;
|
|
1687
|
-
/**
|
|
1688
|
-
* `'onBrand'` restyles the file card for a brand-colored self
|
|
1689
|
-
* bubble — translucent white instead of surface grey, so the card
|
|
1690
|
-
* reads as part of the bubble rather than a patch cut out of it.
|
|
1691
|
-
*/
|
|
1692
|
-
tone?: 'default' | 'onBrand';
|
|
1693
|
-
}
|
|
1694
|
-
declare function AttachmentPreview({ attachment, onPress, maxWidth, tone, }: AttachmentPreviewProps): react_jsx_runtime.JSX.Element;
|
|
1695
|
-
|
|
1696
|
-
interface LinkPreviewCardProps {
|
|
1697
|
-
preview: LinkPreview;
|
|
1698
|
-
/** Shows a × on the card; the long-press sheet's "Remove preview" is the usual way. */
|
|
1699
|
-
onRemove?: () => void;
|
|
1700
|
-
/** Card width cap in px. Defaults to 320. */
|
|
1701
|
-
maxWidth?: number;
|
|
1702
|
-
/** `'onBrand'` for a card inside your own (accent-filled) bubble. */
|
|
1703
|
-
tone?: 'default' | 'onBrand';
|
|
1704
|
-
/** Long-press on the card — rows pass their actions sheet. */
|
|
1705
|
-
onLongPress?: () => void;
|
|
1706
|
-
}
|
|
1707
|
-
/**
|
|
1708
|
-
* A link's preview under the message text. `website`: the page's image,
|
|
1709
|
-
* site name with favicon, title and description. `image`: the picture
|
|
1710
|
-
* itself, inline. Tapping opens the link.
|
|
1711
|
-
*/
|
|
1712
|
-
declare function LinkPreviewCard({ preview, onRemove, maxWidth, tone, onLongPress, }: LinkPreviewCardProps): react_jsx_runtime.JSX.Element | null;
|
|
1713
|
-
|
|
1714
|
-
interface EmojiPickerProps {
|
|
1715
|
-
visible: boolean;
|
|
1716
|
-
onClose: () => void;
|
|
1717
|
-
/** An emoji was tapped. The picker closes unless `keepOpen`. */
|
|
1718
|
-
onPick: (emoji: string) => void;
|
|
1719
|
-
/** Stay open after a pick (the composer's picker, to type several). */
|
|
1720
|
-
keepOpen?: boolean;
|
|
1721
|
-
/** Heading. Defaults to "Pick an emoji". */
|
|
1722
|
-
title?: string;
|
|
1723
|
-
}
|
|
1724
|
-
/**
|
|
1725
|
-
* Bottom-sheet emoji picker with search, recently used and categories.
|
|
1726
|
-
* Built in and dependency-free: a compact set of common emoji, parsed
|
|
1727
|
-
* the first time a picker opens.
|
|
1728
|
-
*/
|
|
1729
|
-
declare function EmojiPicker({ visible, onClose, onPick, keepOpen, title, }: EmojiPickerProps): react_jsx_runtime.JSX.Element;
|
|
1730
|
-
|
|
1731
|
-
/**
|
|
1732
|
-
* Horizontal scrolling preview row of pending / in-flight / ready
|
|
1733
|
-
* uploads. Image attachments render as 64×64 thumbnails sourced from
|
|
1734
|
-
* the original local file URI; file attachments render as a row card
|
|
1735
|
-
* with icon + name + size. A small × overlay on each tile lets the
|
|
1736
|
-
* user drop the upload before send.
|
|
1737
|
-
*
|
|
1738
|
-
* Reads queue state from the shared `<UploadProvider>` (mounted by
|
|
1739
|
-
* `<ConversationView>`), so the composer's "ready attachment ids"
|
|
1740
|
-
* pickup and the strip's display always agree.
|
|
1741
|
-
*/
|
|
1742
|
-
declare function UploadQueueStrip(): react_jsx_runtime.JSX.Element | null;
|
|
1743
|
-
|
|
1744
|
-
interface ReactionStripProps {
|
|
1745
|
-
messageId: Uuid;
|
|
1746
|
-
conversationId: Uuid;
|
|
1747
|
-
meId: string | null;
|
|
1748
|
-
/** Seed map from a known message (e.g. `useMessages`). */
|
|
1749
|
-
initialReactions?: Record<string, Uuid[]>;
|
|
1750
|
-
/** A "+" chip after the reactions — open an emoji picker (see `<EmojiPicker>`). */
|
|
1751
|
-
onMorePress?: () => void;
|
|
1752
|
-
}
|
|
1753
|
-
declare function ReactionStrip({ messageId, conversationId, meId, initialReactions, onMorePress, }: ReactionStripProps): react_jsx_runtime.JSX.Element | null;
|
|
1754
|
-
interface ReactionPickerProps {
|
|
1755
|
-
visible: boolean;
|
|
1756
|
-
onClose: () => void;
|
|
1757
|
-
onPick: (emoji: string) => void;
|
|
1758
|
-
/** Override the default 6-emoji set. */
|
|
1759
|
-
emojis?: string[];
|
|
1760
|
-
}
|
|
1761
|
-
declare function ReactionPicker({ visible, onClose, onPick, emojis, }: ReactionPickerProps): react_jsx_runtime.JSX.Element;
|
|
1762
|
-
|
|
1763
|
-
interface MentionInputProps extends Omit<MessageComposerProps, 'onSend'> {
|
|
1764
|
-
conversationId: Uuid;
|
|
1765
|
-
/** Same callback as MessageComposer.onSend, plus the mentioned user_ids. */
|
|
1766
|
-
onSend: (body: string, opts?: ComposerSendOptions & {
|
|
1767
|
-
mentions?: Uuid[];
|
|
1768
|
-
}) => Promise<unknown> | void;
|
|
1769
|
-
/** Most suggestions shown at once. Defaults to 6. */
|
|
1770
|
-
maxSuggestions?: number;
|
|
1771
|
-
/**
|
|
1772
|
-
* User groups to offer after matching members (MS9): `@design`,
|
|
1773
|
-
* `@oncall`. Picking one inserts `@handle`; the Workspace expands it
|
|
1774
|
-
* when the message arrives, so nothing extra is sent.
|
|
1775
|
-
*/
|
|
1776
|
-
groups?: readonly MentionGroup[];
|
|
1777
|
-
}
|
|
1778
|
-
/**
|
|
1779
|
-
* Composer with @-mentions: typing `@` (at the start or after a space)
|
|
1780
|
-
* shows matching conversation members above the input, filtered by
|
|
1781
|
-
* name or id as you type. Picking one inserts `@Name ` and the send
|
|
1782
|
-
* carries their user id in `mentions` — for as long as `@Name` is
|
|
1783
|
-
* still in the text.
|
|
1784
|
-
*/
|
|
1785
|
-
declare function MentionInput({ conversationId, onSend, maxSuggestions, labelFor, value: valueProp, onChangeText, onSelectionChange, groups, ...composerProps }: MentionInputProps): react_jsx_runtime.JSX.Element;
|
|
1786
|
-
|
|
1787
|
-
interface AttachmentPickerProps {
|
|
1788
|
-
visible: boolean;
|
|
1789
|
-
onClose: () => void;
|
|
1790
|
-
/**
|
|
1791
|
-
* Optional adapter that produces upload inputs from a picked file.
|
|
1792
|
-
* Override to plug in custom storage / transcoding. Default reads
|
|
1793
|
-
* from `expo-image-picker` / `expo-document-picker`.
|
|
1794
|
-
*/
|
|
1795
|
-
onPickInputs?: (kind: 'image' | 'document' | 'camera') => Promise<{
|
|
1796
|
-
body: {
|
|
1797
|
-
uri: string;
|
|
1798
|
-
name: string;
|
|
1799
|
-
type: string;
|
|
1800
|
-
} | Blob | unknown;
|
|
1801
|
-
contentType: string;
|
|
1802
|
-
byteSize: number;
|
|
1803
|
-
filename?: string;
|
|
1804
|
-
}[]>;
|
|
1805
|
-
/**
|
|
1806
|
-
* Show the Camera item alongside Photo and File. Defaults true.
|
|
1807
|
-
* Disable if your app explicitly doesn't want camera access (some
|
|
1808
|
-
* App Store reviewers require an explicit usage description even
|
|
1809
|
-
* for the picker entry). Add `NSCameraUsageDescription` to your
|
|
1810
|
-
* iOS Info.plist when leaving this on.
|
|
1811
|
-
*/
|
|
1812
|
-
camera?: boolean;
|
|
1813
|
-
/** Largest file accepted, in bytes (checked after image compression). */
|
|
1814
|
-
maxFileSize?: number;
|
|
1815
|
-
/** Accepted types: MIME types, wildcards (`'image/*'`) or extensions (`'.pdf'`). */
|
|
1816
|
-
acceptedTypes?: string[];
|
|
1817
|
-
/**
|
|
1818
|
-
* A picked file was refused (too large, a type not accepted) or the
|
|
1819
|
-
* picker failed (e.g. camera permission denied). Receives a sentence
|
|
1820
|
-
* to show; `<ConversationView>` shows it above the composer.
|
|
1821
|
-
*/
|
|
1822
|
-
onError?: (message: string) => void;
|
|
1823
|
-
/** Pick several photos at once from the library. Defaults to true. */
|
|
1824
|
-
multiple?: boolean;
|
|
1825
|
-
}
|
|
1826
|
-
/**
|
|
1827
|
-
* Picker sheet wrapping `expo-image-picker` and `expo-document-picker`.
|
|
1828
|
-
* Both must be installed (`npx expo install expo-image-picker
|
|
1829
|
-
* expo-document-picker`) when this component is mounted — they're
|
|
1830
|
-
* declared as optional peers because consumers who pass
|
|
1831
|
-
* `attachments={false}` to ConversationView never render this file.
|
|
1832
|
-
*/
|
|
1833
|
-
declare function AttachmentPicker({ visible, onClose, onPickInputs, camera, maxFileSize, acceptedTypes, onError, multiple, }: AttachmentPickerProps): react_jsx_runtime.JSX.Element;
|
|
1834
|
-
|
|
1835
|
-
interface ImageMosaicProps {
|
|
1836
|
-
images: Attachment[];
|
|
1837
|
-
/**
|
|
1838
|
-
* Pixel ceiling on the mosaic's width. The mosaic itself fills its
|
|
1839
|
-
* parent (`width: '100%'`) and caps at this value, so it always
|
|
1840
|
-
* fits inside whatever the bubble's actual content area is at
|
|
1841
|
-
* render time — no more hardcoded 280px overflowing on small
|
|
1842
|
-
* screens or inside narrow bubbles.
|
|
1843
|
-
*/
|
|
1844
|
-
maxWidth?: number;
|
|
1845
|
-
radius?: number;
|
|
1846
|
-
/**
|
|
1847
|
-
* Square off the bottom corners (a small 5px instead of `radius`).
|
|
1848
|
-
* Pass when a caption or file cards follow the mosaic, so the media
|
|
1849
|
-
* flows into the text block instead of leaving "ears" of bubble
|
|
1850
|
-
* color between the image and the caption.
|
|
1851
|
-
*/
|
|
1852
|
-
squareBottom?: boolean;
|
|
1853
|
-
/**
|
|
1854
|
-
* Long-press on any tile. The tiles are Pressables (tap opens the
|
|
1855
|
-
* viewer), and a nested Pressable wins the gesture — so without
|
|
1856
|
-
* this, holding an image-only message never reached the row's
|
|
1857
|
-
* actions sheet. MessageRow threads its long-press down through
|
|
1858
|
-
* here.
|
|
1859
|
-
*/
|
|
1860
|
-
onLongPress?: () => void;
|
|
1861
|
-
}
|
|
1862
|
-
/**
|
|
1863
|
-
* WhatsApp-style multi-image grid for inside the message bubble.
|
|
1864
|
-
* Uses flex-based widths (with `%` and `aspectRatio`) so the layout
|
|
1865
|
-
* scales to whatever the bubble's content area is — no fixed pixel
|
|
1866
|
-
* positioning that can overflow when the bubble is narrower than
|
|
1867
|
-
* the configured max.
|
|
1868
|
-
*
|
|
1869
|
-
* * n = 1 → single tile, 16:10 aspect.
|
|
1870
|
-
* * n = 2 → row of 2 squares.
|
|
1871
|
-
* * n = 3 → 16:9 hero on top + row of 2 squares below.
|
|
1872
|
-
* * n ≥ 4 → 2×2 grid with "+N more" overlay on the 4th tile.
|
|
1873
|
-
*/
|
|
1874
|
-
declare function ImageMosaic({ images, maxWidth, radius, squareBottom, onLongPress, }: ImageMosaicProps): react_jsx_runtime.JSX.Element | null;
|
|
1875
|
-
|
|
1876
|
-
declare const ICONS: {
|
|
1877
|
-
readonly attachment: {
|
|
1878
|
-
readonly vb: "0 0 24 24";
|
|
1879
|
-
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\"/>";
|
|
1880
|
-
};
|
|
1881
|
-
readonly bell: {
|
|
1882
|
-
readonly vb: "0 0 24 24";
|
|
1883
|
-
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\"/>";
|
|
260
|
+
readonly bell: {
|
|
261
|
+
readonly vb: "0 0 24 24";
|
|
262
|
+
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\"/>";
|
|
1884
263
|
};
|
|
1885
264
|
readonly bluetooth: {
|
|
1886
265
|
readonly vb: "0 0 24 24";
|
|
@@ -2130,24 +509,1761 @@ declare const ICONS: {
|
|
|
2130
509
|
readonly vb: "0 0 24 24";
|
|
2131
510
|
readonly d: "<defs><mask id=\"poolse-cut-video\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"24\" height=\"24\"><rect width=\"24\" height=\"24\" fill=\"#fff\" stroke=\"none\"/><path d=\"M3.5 3.5 20.5 20.5\" stroke=\"#000\" stroke-width=\"5\"/></mask></defs><g mask=\"url(#poolse-cut-video)\"><rect x=\"2\" y=\"6\" width=\"13.6\" height=\"12\" rx=\"3\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M17.1 10.3 21 7.8a.7.7 0 0 1 1.1.6v7.2a.7.7 0 0 1-1.1.6l-3.9-2.5Z\" fill=\"currentColor\" stroke=\"none\"/></g><path d=\"M3.5 3.5 20.5 20.5\"/>";
|
|
2132
511
|
};
|
|
2133
|
-
readonly webhook: {
|
|
2134
|
-
readonly vb: "0 0 24 24";
|
|
2135
|
-
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\"/>";
|
|
512
|
+
readonly webhook: {
|
|
513
|
+
readonly vb: "0 0 24 24";
|
|
514
|
+
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\"/>";
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
type IconName = keyof typeof ICONS;
|
|
518
|
+
|
|
519
|
+
interface PoolseIconProps {
|
|
520
|
+
/** Icon name — see {@link IconName} for the full list. */
|
|
521
|
+
name: IconName;
|
|
522
|
+
/** Width + height in pixels. Defaults to `20` (matches a body-line). */
|
|
523
|
+
size?: number;
|
|
524
|
+
/** Stroke color. Defaults to the theme's `ink` color. */
|
|
525
|
+
color?: string;
|
|
526
|
+
/** Accessibility label. Defaults to the icon name. */
|
|
527
|
+
label?: string | null;
|
|
528
|
+
}
|
|
529
|
+
declare function PoolseIcon({ name, size, color, label }: PoolseIconProps): react_jsx_runtime.JSX.Element | null;
|
|
530
|
+
|
|
531
|
+
/** An app's own entry in the long-press menu (`extraActions`). */
|
|
532
|
+
interface MessageExtraAction {
|
|
533
|
+
label: string;
|
|
534
|
+
/** Defaults to `more-h`. */
|
|
535
|
+
icon?: IconName;
|
|
536
|
+
/** Called after the menu closes. */
|
|
537
|
+
onPress: () => void;
|
|
538
|
+
/** Red, like Delete. */
|
|
539
|
+
danger?: boolean;
|
|
540
|
+
}
|
|
541
|
+
interface MessageActionsProps {
|
|
542
|
+
visible: boolean;
|
|
543
|
+
onClose: () => void;
|
|
544
|
+
isSelf: boolean;
|
|
545
|
+
/**
|
|
546
|
+
* Quick-reaction emoji row rendered at the top of the sheet. Tap
|
|
547
|
+
* one to fire `onPickReaction(emoji)` and immediately close. When
|
|
548
|
+
* omitted (or `onPickReaction` is omitted) the row is hidden.
|
|
549
|
+
*/
|
|
550
|
+
emojis?: string[];
|
|
551
|
+
onPickReaction?: (emoji: string) => void;
|
|
552
|
+
onReply?: () => void;
|
|
553
|
+
onReplyInThread?: () => void;
|
|
554
|
+
onQuote?: () => void;
|
|
555
|
+
onEdit?: () => void;
|
|
556
|
+
onDelete?: () => void;
|
|
557
|
+
onCopy?: () => void;
|
|
558
|
+
/** "Mark unread" — offered on other people's messages. */
|
|
559
|
+
onMarkUnread?: () => void;
|
|
560
|
+
/**
|
|
561
|
+
* "Remove preview" (one per link when there are several) — offered to
|
|
562
|
+
* the sender. Receives the preview's `url`.
|
|
563
|
+
*/
|
|
564
|
+
onRemovePreview?: (url: string) => void;
|
|
565
|
+
/** The message's link-preview urls, for `onRemovePreview`. */
|
|
566
|
+
previewUrls?: string[];
|
|
567
|
+
/**
|
|
568
|
+
* A "+" after the quick reactions that opens the full emoji picker.
|
|
569
|
+
* Called after the sheet closes.
|
|
570
|
+
*/
|
|
571
|
+
onMoreReactions?: () => void;
|
|
572
|
+
/** Pin or unpin (MS13); `pinned` picks the label. */
|
|
573
|
+
onTogglePin?: () => void;
|
|
574
|
+
pinned?: boolean;
|
|
575
|
+
/** Forward to other conversations (MS13): open your target picker (`<ForwardSheet>`). */
|
|
576
|
+
onForward?: () => void;
|
|
577
|
+
/** Translate (MS21), or back to the original when `translated`. */
|
|
578
|
+
onTranslate?: () => void;
|
|
579
|
+
translated?: boolean;
|
|
580
|
+
/** The app's own actions, listed before Edit / Delete. */
|
|
581
|
+
extraActions?: readonly MessageExtraAction[];
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* Long-press action menu — modal bottom sheet. Renders a row of
|
|
585
|
+
* quick-react emojis at the top (one tap reacts + closes) plus the
|
|
586
|
+
* action items below. Matches WhatsApp / iMessage's "long-press
|
|
587
|
+
* shows everything inline" pattern.
|
|
588
|
+
*/
|
|
589
|
+
declare function MessageActions({ visible, onClose, isSelf, emojis, onPickReaction, onReply, onReplyInThread, onQuote, onEdit, onDelete, onCopy, onMarkUnread, onRemovePreview, previewUrls, onMoreReactions, onTogglePin, pinned, onForward, onTranslate, translated, extraActions, }: MessageActionsProps): react_jsx_runtime.JSX.Element;
|
|
590
|
+
|
|
591
|
+
/** `confirmDelete`: true deletes. May ask asynchronously (your own sheet). */
|
|
592
|
+
type ConfirmDelete = (msg: Message) => boolean | Promise<boolean>;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* - `bubbles` — chat bubbles, own messages on the right (the default).
|
|
596
|
+
* - `list` — Slack-style full-width rows: avatar, name and time once
|
|
597
|
+
* per run of messages.
|
|
598
|
+
* - `compact` — Discord/IRC-style dense lines: time, coloured name and
|
|
599
|
+
* text on one line.
|
|
600
|
+
*/
|
|
601
|
+
type ChatLayout = 'bubbles' | 'list' | 'compact';
|
|
602
|
+
type ChatDensity = 'comfortable' | 'compact';
|
|
603
|
+
/** `'12h'`, `'24h'`, or your own formatter. Omitted: the locale's default. */
|
|
604
|
+
type TimeFormat = '12h' | '24h' | ((date: Date) => string);
|
|
605
|
+
/** What each slot function receives. */
|
|
606
|
+
interface MessageSlotProps {
|
|
607
|
+
message: Message;
|
|
608
|
+
/** The viewer sent it. */
|
|
609
|
+
isSelf: boolean;
|
|
610
|
+
sender: MessageUser;
|
|
611
|
+
layout: ChatLayout;
|
|
612
|
+
/** First message of a same-sender run (always true in `compact`). */
|
|
613
|
+
isRunStart: boolean;
|
|
614
|
+
/**
|
|
615
|
+
* What the slot renders by default (may be `null` — e.g. no header on
|
|
616
|
+
* a continuation message). Return it to keep the default, wrap it,
|
|
617
|
+
* or return something else.
|
|
618
|
+
*/
|
|
619
|
+
children: ReactNode;
|
|
620
|
+
}
|
|
621
|
+
type MessageSlot = (props: MessageSlotProps) => ReactNode;
|
|
622
|
+
/**
|
|
623
|
+
* Replace or wrap one part of every message, in any layout:
|
|
624
|
+
*
|
|
625
|
+
* - `header` — sender name and time (the name label in `bubbles`)
|
|
626
|
+
* - `body` — the text (or "Message deleted")
|
|
627
|
+
* - `attachments` — images and files
|
|
628
|
+
* - `reactions` — the reaction pills
|
|
629
|
+
* - `thread` — the "N replies" link
|
|
630
|
+
* - `actions` — the long-press actions sheet
|
|
631
|
+
*/
|
|
632
|
+
interface MessageSlots {
|
|
633
|
+
header?: MessageSlot;
|
|
634
|
+
body?: MessageSlot;
|
|
635
|
+
attachments?: MessageSlot;
|
|
636
|
+
reactions?: MessageSlot;
|
|
637
|
+
thread?: MessageSlot;
|
|
638
|
+
actions?: MessageSlot;
|
|
639
|
+
}
|
|
640
|
+
type MessageSlotContext = Omit<MessageSlotProps, 'children'>;
|
|
641
|
+
/** Third argument to `renderMessage`. */
|
|
642
|
+
interface RenderMessageContext {
|
|
643
|
+
layout: ChatLayout;
|
|
644
|
+
groupPosition: GroupPosition;
|
|
645
|
+
isRunStart: boolean;
|
|
646
|
+
/** The row ConversationView would have rendered for this message. */
|
|
647
|
+
renderDefault: () => ReactElement;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
type BubbleGroupPosition = 'first' | 'middle' | 'last' | 'standalone';
|
|
651
|
+
interface MessageBubbleProps {
|
|
652
|
+
message: Message;
|
|
653
|
+
/** Used to decide left/right alignment, color, and read-receipt visibility. */
|
|
654
|
+
currentUserId: string | null;
|
|
655
|
+
/** `'sent'` → single tick, `'read'` → double tick (theme.colors.accent). */
|
|
656
|
+
readState?: 'sent' | 'read';
|
|
657
|
+
/** Label resolver keyed by `external_id` — falls back to the externalId itself. */
|
|
658
|
+
labelFor?: (externalId: string) => string;
|
|
659
|
+
/** Quoted-card tap handler. Typically used to scroll the list to the original message. */
|
|
660
|
+
onQuotedClick?: (quotedMessageId: Uuid) => void;
|
|
661
|
+
/** Position in a same-sender cluster — drives tail-corner rendering. */
|
|
662
|
+
groupPosition?: BubbleGroupPosition;
|
|
663
|
+
/** Truncate at this many chars and show a "Read more" toggle. Defaults to 0 (off). */
|
|
664
|
+
maxBodyLength?: number;
|
|
665
|
+
/** Show a colored sender label above other-side bubbles. Only meaningful in group chats. */
|
|
666
|
+
showSenderName?: boolean;
|
|
667
|
+
/** Makes the sender label (see `showSenderName`) tappable. */
|
|
668
|
+
onSenderPress?: () => void;
|
|
669
|
+
/** Slot for an actions trigger — typically a chevron rendered by `<MessageRow>`. */
|
|
670
|
+
actionsTrigger?: ReactNode;
|
|
671
|
+
/**
|
|
672
|
+
* Long-press, forwarded into the image tiles. The tiles are
|
|
673
|
+
* Pressables of their own and win the gesture, so a wrapper's
|
|
674
|
+
* onLongPress never fires over an image-only message without this.
|
|
675
|
+
*/
|
|
676
|
+
onLongPress?: () => void;
|
|
677
|
+
/** Render in-bubble attachments (images, file cards). Defaults to true. */
|
|
678
|
+
showAttachments?: boolean;
|
|
679
|
+
/**
|
|
680
|
+
* Render the body as Markdown (bold, italic, code, lists, links).
|
|
681
|
+
* Links open via `Linking.openURL`. Requires
|
|
682
|
+
* `react-native-markdown-display` to be installed in the host app;
|
|
683
|
+
* without it we fall back to plain text. Defaults to true.
|
|
684
|
+
*/
|
|
685
|
+
markdown?: boolean;
|
|
686
|
+
/**
|
|
687
|
+
* `'12h'` / `'24h'` for the time of day, or a formatter that returns
|
|
688
|
+
* the whole label. Defaults to the locale's.
|
|
689
|
+
*/
|
|
690
|
+
timeFormat?: TimeFormat;
|
|
691
|
+
/** `'compact'` tightens the text padding. Defaults to `'comfortable'`. */
|
|
692
|
+
density?: ChatDensity;
|
|
693
|
+
/**
|
|
694
|
+
* Replace or wrap the `header` (sender label), `attachments` and
|
|
695
|
+
* `body` parts. Needs `slotContext` (MessageRow passes both).
|
|
696
|
+
*/
|
|
697
|
+
slots?: MessageSlots;
|
|
698
|
+
slotContext?: MessageSlotContext;
|
|
699
|
+
/** Show `message.link_previews` as cards under the text. Defaults to true. */
|
|
700
|
+
linkPreviews?: boolean;
|
|
701
|
+
/** Makes the "edited" label tappable — `<MessageRow>` opens the edit history. */
|
|
702
|
+
onEditedPress?: () => void;
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* One message bubble, structured as stacked sections rather than one
|
|
706
|
+
* padded box: media bleeds to a 3px frame, text carries its own
|
|
707
|
+
* padding, and the timestamp shares the last text line when measured
|
|
708
|
+
* room allows — which is what makes "ok" a one-line bubble instead of
|
|
709
|
+
* a squat rectangle.
|
|
710
|
+
*/
|
|
711
|
+
declare function MessageBubble({ message, currentUserId, readState, labelFor, onQuotedClick, groupPosition, maxBodyLength, showSenderName, onSenderPress, actionsTrigger, showAttachments, markdown, onLongPress, timeFormat, density, slots, slotContext, linkPreviews, onEditedPress, }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
|
|
712
|
+
|
|
713
|
+
/** Who sent a message — what `onSenderPress` / `onAvatarPress` receive. */
|
|
714
|
+
interface MessageUser {
|
|
715
|
+
/** poolse user id. */
|
|
716
|
+
userId: Uuid | null;
|
|
717
|
+
/** Your own user id (`external_id`) — what `userResolver` takes. */
|
|
718
|
+
externalId: string | null;
|
|
719
|
+
/** Resolved name, or the fallback shown in its place. */
|
|
720
|
+
displayName: string;
|
|
721
|
+
avatarUrl: string | null;
|
|
722
|
+
}
|
|
723
|
+
interface MessageRowProps {
|
|
724
|
+
msg: Message;
|
|
725
|
+
meId: string | null;
|
|
726
|
+
reactions?: boolean;
|
|
727
|
+
attachments?: boolean;
|
|
728
|
+
actions?: boolean;
|
|
729
|
+
/** Pass false in ThreadView since nested threads aren't a thing in v1. */
|
|
730
|
+
threads?: boolean;
|
|
731
|
+
/** WhatsApp-style quote-reply. Defaults true on ConversationView. */
|
|
732
|
+
quotations?: boolean;
|
|
733
|
+
/** Forwarded to `<MessageBubble markdown>`. Defaults true. */
|
|
734
|
+
markdown?: boolean;
|
|
735
|
+
readState?: 'sent' | 'read';
|
|
736
|
+
/**
|
|
737
|
+
* Whether this row's message is the one currently being edited.
|
|
738
|
+
* Editing happens in the composer (see MessageComposer's
|
|
739
|
+
* `editingMessage` prop); this flag is only used to elevate the
|
|
740
|
+
* row above the dim backdrop ConversationView renders during
|
|
741
|
+
* edit mode.
|
|
742
|
+
*/
|
|
743
|
+
isEditing?: boolean;
|
|
744
|
+
/**
|
|
745
|
+
* Long-press → "Edit". Omitted entirely (no Edit option in the
|
|
746
|
+
* menu) when the parent has decided this message isn't editable
|
|
747
|
+
* (someone read it, it's deleted, it isn't yours).
|
|
748
|
+
*/
|
|
749
|
+
onStartEdit?: () => void;
|
|
750
|
+
onDelete?: () => void;
|
|
751
|
+
/** The app's own long-press menu entries for this message (before Edit / Delete). */
|
|
752
|
+
extraActions?: readonly MessageExtraAction[];
|
|
753
|
+
onOpenThread?: () => void;
|
|
754
|
+
onQuote?: () => void;
|
|
755
|
+
labelFor?: (externalId: string) => string;
|
|
756
|
+
onQuotedClick?: (quotedMessageId: Uuid) => void;
|
|
757
|
+
groupPosition?: BubbleGroupPosition;
|
|
758
|
+
maxBodyLength?: number;
|
|
759
|
+
/** Show a colored sender label above other-side bubbles. */
|
|
760
|
+
showSenderName?: boolean;
|
|
761
|
+
/** Render an avatar to the LEFT of other-side bubbles. */
|
|
762
|
+
showAvatar?: boolean;
|
|
763
|
+
/** Avatar resolver — same signature as `<MemberList avatarFor>`. */
|
|
764
|
+
avatarFor?: (externalId: string) => string | null;
|
|
765
|
+
/** Makes the sender label tappable (other people's messages). */
|
|
766
|
+
onSenderPress?: (user: MessageUser) => void;
|
|
767
|
+
/** Makes the avatar tappable (other people's messages). */
|
|
768
|
+
onAvatarPress?: (user: MessageUser) => void;
|
|
769
|
+
/** Call-log rows: offer "Call back" (see `<CallLogRow onCallBack>`). */
|
|
770
|
+
onCallBack?: (media: 'audio' | 'video') => void;
|
|
771
|
+
/**
|
|
772
|
+
* A poolse user id → display name, for system lines that name people
|
|
773
|
+
* by internal id (the recording notice). Unknown: the name is left out.
|
|
774
|
+
*/
|
|
775
|
+
nameForUserId?: (userId: string) => string | null | undefined;
|
|
776
|
+
/** `'bubbles'` (default), `'list'` or `'compact'` — see `ChatLayout`. */
|
|
777
|
+
layout?: ChatLayout;
|
|
778
|
+
/** `'comfortable'` (default) or `'compact'` spacing. */
|
|
779
|
+
density?: ChatDensity;
|
|
780
|
+
/** `'12h'`, `'24h'` or a formatter for timestamps. Defaults to the locale's. */
|
|
781
|
+
timeFormat?: TimeFormat;
|
|
782
|
+
/** Replace or wrap parts of the row — see `MessageSlots`. */
|
|
783
|
+
slots?: MessageSlots;
|
|
784
|
+
/**
|
|
785
|
+
* The message @-mentions the viewer: `list` and `compact` mark it
|
|
786
|
+
* with an accent bar.
|
|
787
|
+
*/
|
|
788
|
+
mentionsMe?: boolean;
|
|
789
|
+
/** Presence badge on the sender's avatar (needs `showAvatar`). */
|
|
790
|
+
showPresence?: boolean;
|
|
791
|
+
/** Show the message's link previews as cards under the text. Defaults to true. */
|
|
792
|
+
linkPreviews?: boolean;
|
|
793
|
+
/**
|
|
794
|
+
* Long-press → "Remove preview" on your own message (one per link).
|
|
795
|
+
* Receives the preview's url — `chat.messages.update(id, { remove_link_previews: [url] })`.
|
|
796
|
+
*/
|
|
797
|
+
onRemoveLinkPreview?: (url: string) => void;
|
|
798
|
+
/** Long-press → "Mark unread" on other people's messages. */
|
|
799
|
+
onMarkUnread?: () => void;
|
|
800
|
+
/** The "edited" label opens the edit history (`chat.messages.edits`). Defaults to true. */
|
|
801
|
+
editHistory?: boolean;
|
|
802
|
+
/** Unsent message (queued or failed in the outbox): the Retry under it. */
|
|
803
|
+
onRetrySend?: () => void;
|
|
804
|
+
/** Unsent message: the Delete under it. */
|
|
805
|
+
onDiscardSend?: () => void;
|
|
806
|
+
}
|
|
807
|
+
declare function MessageRow(props: MessageRowProps): react_jsx_runtime.JSX.Element | null;
|
|
808
|
+
|
|
809
|
+
/** What the composer held for a conversation. */
|
|
810
|
+
interface ConversationDraft {
|
|
811
|
+
text: string;
|
|
812
|
+
/** The message being quote-replied to, if any. */
|
|
813
|
+
quote: Message | null;
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* Where `persistDrafts` keeps drafts between launches — MMKV,
|
|
817
|
+
* AsyncStorage or anything with the same three calls. Values are JSON
|
|
818
|
+
* strings; each call may return a promise.
|
|
819
|
+
*/
|
|
820
|
+
interface DraftStorage {
|
|
821
|
+
get: (key: string) => string | null | undefined | Promise<string | null | undefined>;
|
|
822
|
+
set: (key: string, value: string) => void | Promise<void>;
|
|
823
|
+
remove: (key: string) => void | Promise<void>;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
interface ConversationViewProps {
|
|
827
|
+
conversationId: Uuid;
|
|
828
|
+
emptyState?: ReactElement | string;
|
|
829
|
+
/**
|
|
830
|
+
* Custom row renderer. Return `null` / `undefined` to fall back to
|
|
831
|
+
* the default row for that message (so you can override just the
|
|
832
|
+
* message kinds you care about). The third argument carries the
|
|
833
|
+
* layout and `renderDefault()`, the row this view would have drawn.
|
|
834
|
+
*/
|
|
835
|
+
renderMessage?: (msg: Message, currentUserId: string | null, context: RenderMessageContext) => ReactElement | null | undefined;
|
|
836
|
+
/**
|
|
837
|
+
* How messages are drawn:
|
|
838
|
+
* * `'bubbles'` (default) — chat bubbles, yours on the right.
|
|
839
|
+
* * `'list'` — Slack-style full-width rows; avatar, name and time
|
|
840
|
+
* once per run, later messages' time dimmed in the gutter,
|
|
841
|
+
* "N replies" under threads. Long-press for actions.
|
|
842
|
+
* * `'compact'` — Discord/IRC-style dense lines: time, the name in
|
|
843
|
+
* the sender's colour, the text; an accent bar on messages that
|
|
844
|
+
* mention you.
|
|
845
|
+
*/
|
|
846
|
+
layout?: ChatLayout;
|
|
847
|
+
/** `'comfortable'` (default) or `'compact'` spacing, in any layout. */
|
|
848
|
+
density?: ChatDensity;
|
|
849
|
+
/**
|
|
850
|
+
* Show avatars. Defaults: `list` on, `compact` off, `bubbles` per
|
|
851
|
+
* `avatars` (others' messages in group chats). Overrides `avatars`.
|
|
852
|
+
*/
|
|
853
|
+
showAvatars?: boolean;
|
|
854
|
+
/** `'12h'`, `'24h'` or a formatter. Defaults to the locale's. */
|
|
855
|
+
timeFormat?: TimeFormat;
|
|
856
|
+
/**
|
|
857
|
+
* Same-sender messages less than this many minutes apart form one
|
|
858
|
+
* run (one bubble cluster, one `list` header). Default 5.
|
|
859
|
+
*/
|
|
860
|
+
groupWindowMinutes?: number;
|
|
861
|
+
/** Day dividers between messages on different days. Defaults to `true`. */
|
|
862
|
+
daySeparators?: boolean;
|
|
863
|
+
/**
|
|
864
|
+
* Replace or wrap one part of every message — `header`, `body`,
|
|
865
|
+
* `attachments`, `reactions`, `thread`, `actions` — in any layout.
|
|
866
|
+
* Each receives the message, sender, layout and its default
|
|
867
|
+
* rendering as `children`.
|
|
868
|
+
*/
|
|
869
|
+
slots?: MessageSlots;
|
|
870
|
+
labelFor?: (externalId: string) => string;
|
|
871
|
+
avatarFor?: (externalId: string) => string | null;
|
|
872
|
+
/**
|
|
873
|
+
* Renders the default `<ChatHeader>` at the top of the chat surface.
|
|
874
|
+
* * `true` (default) — auto chat header (other user / group name).
|
|
875
|
+
* * `false` — no header (you supply your own above).
|
|
876
|
+
* * `ReactElement` — custom header node, rendered as-is.
|
|
877
|
+
*/
|
|
878
|
+
header?: boolean | ReactElement;
|
|
879
|
+
/** Tap on the header's members icon — typically opens a sheet. */
|
|
880
|
+
onHeaderMembersPress?: () => void;
|
|
881
|
+
/** Tap on the header itself — typically opens a conversation profile. */
|
|
882
|
+
onHeaderPress?: () => void;
|
|
883
|
+
reactions?: boolean;
|
|
884
|
+
mentions?: boolean;
|
|
885
|
+
attachments?: boolean;
|
|
886
|
+
actions?: boolean;
|
|
887
|
+
threads?: boolean;
|
|
888
|
+
quotations?: boolean;
|
|
889
|
+
/**
|
|
890
|
+
* Show read ticks on your own messages. Only the ticks: the view
|
|
891
|
+
* marks messages read either way, so unread counts stay right.
|
|
892
|
+
*/
|
|
893
|
+
readReceipts?: boolean;
|
|
894
|
+
/** Render message bodies as Markdown (links, bold, code). Defaults true. */
|
|
895
|
+
markdown?: boolean;
|
|
896
|
+
maxBodyLength?: number;
|
|
897
|
+
/** Show sender labels in group chats. `auto` (default), `always`, `never`. */
|
|
898
|
+
senderLabels?: 'auto' | 'always' | 'never';
|
|
899
|
+
/** Show avatars to the left of other-side bubbles in group chats. Same semantics. */
|
|
900
|
+
avatars?: 'auto' | 'always' | 'never';
|
|
901
|
+
/**
|
|
902
|
+
* Fires once the server accepts a new read position (the view marks
|
|
903
|
+
* the newest message read as it arrives). Receives the conversation
|
|
904
|
+
* id + the message id marked as last-read. Every
|
|
905
|
+
* `useConversations()` under the same provider has already cleared
|
|
906
|
+
* the conversation's badge by then.
|
|
907
|
+
*/
|
|
908
|
+
onMarkedRead?: (conversationId: string, messageId: string) => void;
|
|
909
|
+
/**
|
|
910
|
+
* Fires after every successful message send — e.g. to refetch
|
|
911
|
+
* conversations from a list that isn't `useConversations()` (which
|
|
912
|
+
* gets the new preview over realtime already).
|
|
913
|
+
*/
|
|
914
|
+
onSent?: (conversationId: string) => void;
|
|
915
|
+
/**
|
|
916
|
+
* Jump to this message: older pages load until it's there, then it
|
|
917
|
+
* scrolls into view and is highlighted briefly. Set it again (or to
|
|
918
|
+
* another id) to jump again. When it can't be found — deleted, a
|
|
919
|
+
* thread reply, or not in this conversation — a short notice shows
|
|
920
|
+
* and `onFocusMessageNotFound` fires.
|
|
921
|
+
*/
|
|
922
|
+
focusMessageId?: Uuid | null;
|
|
923
|
+
/** `focusMessageId` couldn't be found in this conversation. */
|
|
924
|
+
onFocusMessageNotFound?: (messageId: Uuid) => void;
|
|
925
|
+
/** Makes the sender label on other people's messages tappable. */
|
|
926
|
+
onSenderPress?: (user: MessageUser) => void;
|
|
927
|
+
/** Makes the avatar next to other people's messages tappable. */
|
|
928
|
+
onAvatarPress?: (user: MessageUser) => void;
|
|
929
|
+
/**
|
|
930
|
+
* `false` hides the composer (and with it quote-reply and the
|
|
931
|
+
* attachment picker) — for an archived conversation or a viewer who
|
|
932
|
+
* can't post. Defaults to `true`.
|
|
933
|
+
*/
|
|
934
|
+
composer?: boolean;
|
|
935
|
+
/** Same as `composer={false}`. */
|
|
936
|
+
readOnly?: boolean;
|
|
937
|
+
/**
|
|
938
|
+
* keyboardVerticalOffset passed to the internal KeyboardAvoidingView.
|
|
939
|
+
* On iOS this MUST equal the distance from the screen top to the
|
|
940
|
+
* KAV's top (status bar + safe-area-top + any nav header above
|
|
941
|
+
* the chat). `<PoolseInbox>` computes this for you. Standalone
|
|
942
|
+
* consumers pass it manually.
|
|
943
|
+
*/
|
|
944
|
+
keyboardOffset?: number;
|
|
945
|
+
/**
|
|
946
|
+
* Offer "Call back" on call-log rows the viewer missed or declined,
|
|
947
|
+
* or placed with no answer. Receives the call's media; place the call
|
|
948
|
+
* on this conversation.
|
|
949
|
+
*/
|
|
950
|
+
onCallBack?: (media: 'audio' | 'video') => void;
|
|
951
|
+
/**
|
|
952
|
+
* Show a "Call in progress · Join" banner while a call runs on this
|
|
953
|
+
* conversation that the viewer is not on. Called with the live call
|
|
954
|
+
* when they tap Join.
|
|
955
|
+
*/
|
|
956
|
+
onJoinCall?: (call: LiveCall) => void;
|
|
957
|
+
/**
|
|
958
|
+
* The call this device is already on, if any — its banner is hidden
|
|
959
|
+
* (the viewer is in the room, or ringing out as its caller).
|
|
960
|
+
*/
|
|
961
|
+
currentCallId?: string | null;
|
|
962
|
+
/**
|
|
963
|
+
* A source under an assistant's answer was pressed (AG5). Without it,
|
|
964
|
+
* message sources in this conversation are focused here.
|
|
965
|
+
*/
|
|
966
|
+
onOpenCitation?: (citation: Citation, message: Message) => void;
|
|
967
|
+
/**
|
|
968
|
+
* A point in a call was pressed — a line or moment of a summary (RT6):
|
|
969
|
+
* open its recording at `moment.recordingMs` or transcript at `moment.startMs`.
|
|
970
|
+
*/
|
|
971
|
+
onOpenMoment?: (moment: MeetingMoment) => void;
|
|
972
|
+
/**
|
|
973
|
+
* Plays clips in chat (RT9): your media adapter (expo-video,
|
|
974
|
+
* expo-audio…) — see `RenderMedia` and the README. Without it a clip
|
|
975
|
+
* shows its time range only.
|
|
976
|
+
*/
|
|
977
|
+
renderMedia?: RenderMedia;
|
|
978
|
+
/** Presence badges on message avatars (where avatars show). Defaults to `false`. */
|
|
979
|
+
showPresence?: boolean;
|
|
980
|
+
/**
|
|
981
|
+
* Link previews (`message.link_previews`) as cards under the text,
|
|
982
|
+
* with "Remove preview" in the sender's long-press sheet. Defaults to `true`.
|
|
983
|
+
*/
|
|
984
|
+
linkPreviews?: boolean;
|
|
985
|
+
/**
|
|
986
|
+
* A "New messages" line above the first message that was unread when
|
|
987
|
+
* the conversation opened, and a pill that jumps to it (loading older
|
|
988
|
+
* pages as needed) while it's off screen. Defaults to `true`.
|
|
989
|
+
*/
|
|
990
|
+
newMessagesDivider?: boolean;
|
|
991
|
+
/**
|
|
992
|
+
* Unsent text and the quote target are kept per conversation in
|
|
993
|
+
* memory, across conversation switches, always. With a `draftStorage`
|
|
994
|
+
* they are also written there, so they survive a restart; set
|
|
995
|
+
* `persistDrafts={false}` to keep them in memory only. Defaults to
|
|
996
|
+
* `true` when `draftStorage` is given.
|
|
997
|
+
*/
|
|
998
|
+
persistDrafts?: boolean;
|
|
999
|
+
/**
|
|
1000
|
+
* Where drafts persist — `{ get, set, remove }` over string values
|
|
1001
|
+
* (MMKV, AsyncStorage, …); each may return a promise. Keys are
|
|
1002
|
+
* `poolse:draft:<conversationId>`.
|
|
1003
|
+
*/
|
|
1004
|
+
draftStorage?: DraftStorage;
|
|
1005
|
+
/** An emoji button in the composer. Defaults to `true`. */
|
|
1006
|
+
emojiPicker?: boolean;
|
|
1007
|
+
/** Largest attachment accepted, in bytes; larger picks show an error. */
|
|
1008
|
+
maxFileSize?: number;
|
|
1009
|
+
/** Accepted attachment types: MIME types, wildcards (`'image/*'`) or extensions (`'.pdf'`). */
|
|
1010
|
+
acceptedFileTypes?: string[];
|
|
1011
|
+
/**
|
|
1012
|
+
* Long-press → "Mark unread" on other people's messages. Defaults to
|
|
1013
|
+
* `true`. The view then stops marking messages read until you send
|
|
1014
|
+
* one or reopen the conversation.
|
|
1015
|
+
*/
|
|
1016
|
+
markUnread?: boolean;
|
|
1017
|
+
/** Fires after "Mark unread" succeeded (the unread counts follow over realtime). */
|
|
1018
|
+
onMarkedUnread?: (conversationId: string, messageId: string) => void;
|
|
1019
|
+
/**
|
|
1020
|
+
* Passed through to the composer (`placeholder`, `disabled`,
|
|
1021
|
+
* `formattingToolbar`, `commands`…). The text, sending, quoting and
|
|
1022
|
+
* editing stay the view's; `onTyping` runs alongside its own. Also used
|
|
1023
|
+
* by the thread sheet's composer.
|
|
1024
|
+
*/
|
|
1025
|
+
composerProps?: ComposerPassThroughProps;
|
|
1026
|
+
/** Rendered above the composer (a toolbar, a "scheduled" chip…). */
|
|
1027
|
+
composerAccessory?: ReactNode;
|
|
1028
|
+
/**
|
|
1029
|
+
* The composer's handle: `focus`, `insertText` (at the cursor),
|
|
1030
|
+
* `setText`, `getText`, `clear`, `setSelection`, `addFiles`.
|
|
1031
|
+
*/
|
|
1032
|
+
composerHandle?: Ref<MessageComposerHandle>;
|
|
1033
|
+
/**
|
|
1034
|
+
* Runs before every send here and in the thread sheet: return the
|
|
1035
|
+
* message (changed or not), or `false` to cancel — the text and files
|
|
1036
|
+
* stay in the composer.
|
|
1037
|
+
*/
|
|
1038
|
+
beforeSend?: BeforeSend;
|
|
1039
|
+
/** The app's own entries in a message's long-press menu, listed before Edit / Delete. */
|
|
1040
|
+
extraActions?: (msg: Message) => readonly MessageExtraAction[];
|
|
1041
|
+
/**
|
|
1042
|
+
* Asked before a message is deleted; resolve `true` to delete. Defaults
|
|
1043
|
+
* to a native "Delete message?" alert. Also used in the thread sheet.
|
|
1044
|
+
*/
|
|
1045
|
+
confirmDelete?: ConfirmDelete;
|
|
1046
|
+
}
|
|
1047
|
+
declare function ConversationView({ conversationId, emptyState, renderMessage, labelFor, avatarFor, header, onHeaderMembersPress, onHeaderPress, reactions, mentions, attachments, actions, threads, quotations, readReceipts, markdown, maxBodyLength, senderLabels, avatars, onMarkedRead, onSent, focusMessageId, onFocusMessageNotFound, onSenderPress, onAvatarPress, composer, readOnly, keyboardOffset, onCallBack, onJoinCall, currentCallId, onOpenCitation, onOpenMoment, renderMedia, layout, density, showAvatars: showAvatarsProp, timeFormat, groupWindowMinutes, daySeparators, slots, showPresence, linkPreviews, newMessagesDivider, persistDrafts, draftStorage, emojiPicker, maxFileSize, acceptedFileTypes, markUnread, onMarkedUnread, composerProps: appComposerProps, composerAccessory, composerHandle, beforeSend, extraActions, confirmDelete, }: ConversationViewProps): react_jsx_runtime.JSX.Element;
|
|
1048
|
+
|
|
1049
|
+
interface ChatHeaderProps {
|
|
1050
|
+
conversationId: Uuid;
|
|
1051
|
+
/**
|
|
1052
|
+
* Override the title resolver — useful when you want to derive the
|
|
1053
|
+
* direct-chat name from your own user directory instead of going
|
|
1054
|
+
* through the SDK's `userResolver`. When omitted, falls back to:
|
|
1055
|
+
* * direct → the other member's display name (via `useUser`)
|
|
1056
|
+
* * group → `conversation.name`
|
|
1057
|
+
*/
|
|
1058
|
+
labelFor?: (externalId: string) => string;
|
|
1059
|
+
/** Optional avatar URL resolver for the other party (direct only). */
|
|
1060
|
+
avatarFor?: (externalId: string) => string | null;
|
|
1061
|
+
/** Right-side icon button — typically opens a member-list sheet. */
|
|
1062
|
+
onMembersPress?: () => void;
|
|
1063
|
+
/**
|
|
1064
|
+
* Tap handler for the whole header. Behavior:
|
|
1065
|
+
* * Direct chat → calls this if provided, otherwise no-op.
|
|
1066
|
+
* * Group chat → calls this if provided. If omitted, the header
|
|
1067
|
+
* opens a built-in group-details sheet showing the member
|
|
1068
|
+
* roster with live presence.
|
|
1069
|
+
*/
|
|
1070
|
+
onPress?: () => void;
|
|
1071
|
+
/**
|
|
1072
|
+
* When provided, renders a back arrow on the LEFT of the header
|
|
1073
|
+
* that calls this handler on tap. Used by `<PoolseInbox>` to
|
|
1074
|
+
* navigate back to the conversation list; safe to wire from your
|
|
1075
|
+
* own navigator too.
|
|
1076
|
+
*/
|
|
1077
|
+
onBack?: () => void;
|
|
1078
|
+
}
|
|
1079
|
+
/**
|
|
1080
|
+
* Top-of-chat header bar.
|
|
1081
|
+
* * 1:1 direct → other user's display name + avatar + presence badge,
|
|
1082
|
+
* and "Online" / "Away" / "In a call" / "Last seen …" under the name.
|
|
1083
|
+
* * Group → conversation name + "N members" + group-tile avatar.
|
|
1084
|
+
*
|
|
1085
|
+
* Sits above `<MessageList>` inside `<ConversationView>` by default;
|
|
1086
|
+
* pass `header={false}` to `<ConversationView>` if you mount your own.
|
|
1087
|
+
*/
|
|
1088
|
+
declare function ChatHeader({ conversationId, labelFor, avatarFor, onMembersPress, onPress, onBack, }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1089
|
+
|
|
1090
|
+
interface GroupDetailsSheetProps {
|
|
1091
|
+
visible: boolean;
|
|
1092
|
+
onClose: () => void;
|
|
1093
|
+
conversationId: Uuid;
|
|
1094
|
+
/** Resolve external_id → display name. Same shape as MemberList. */
|
|
1095
|
+
labelFor?: (externalId: string) => string;
|
|
1096
|
+
/** Resolve external_id → avatar URL. Same shape as MemberList. */
|
|
1097
|
+
avatarFor?: (externalId: string) => string | null;
|
|
1098
|
+
/**
|
|
1099
|
+
* Predicate for the per-row remove button. Defaults to "never show"
|
|
1100
|
+
* — wire it on the parent for owners/admins. Receives the
|
|
1101
|
+
* Membership row so you can scope to roles or exclude self.
|
|
1102
|
+
*/
|
|
1103
|
+
canRemoveMember?: (m: {
|
|
1104
|
+
user_id: string;
|
|
1105
|
+
external_id: string;
|
|
1106
|
+
role: string;
|
|
1107
|
+
}) => boolean;
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* Bottom-sheet (85% of screen) that opens when the user taps the
|
|
1111
|
+
* group chat header. Shows group name + member count at the top,
|
|
1112
|
+
* then a scrollable roster with avatars, display names (resolved
|
|
1113
|
+
* through `labelFor` / `userResolver`), role badges, and live
|
|
1114
|
+
* presence dots (driven by `MemberList` internally).
|
|
1115
|
+
*/
|
|
1116
|
+
declare function GroupDetailsSheet({ visible, onClose, conversationId, labelFor, avatarFor, canRemoveMember, }: GroupDetailsSheetProps): react_jsx_runtime.JSX.Element;
|
|
1117
|
+
|
|
1118
|
+
interface CallLogRowProps {
|
|
1119
|
+
/** The call-log message. Rows that aren't call logs render nothing. */
|
|
1120
|
+
msg: Pick<Message, 'type' | 'body' | 'inserted_at'> & {
|
|
1121
|
+
deleted_at?: string | null;
|
|
1122
|
+
};
|
|
1123
|
+
/** Current user's id — decides how the call is worded for them. */
|
|
1124
|
+
meId: string | null;
|
|
1125
|
+
/**
|
|
1126
|
+
* Offer "Call back" on calls the viewer missed or declined, or placed
|
|
1127
|
+
* with no answer. Receives the call's media. Omit to show no action.
|
|
1128
|
+
*/
|
|
1129
|
+
onCallBack?: (media: 'audio' | 'video') => void;
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Centered, compact timeline line for call-log system messages
|
|
1133
|
+
* ("Voice call · 3:12", "Missed call"). Same visual family as
|
|
1134
|
+
* `<DaySeparator>` — surface chip, hairline border, small semibold
|
|
1135
|
+
* label — so it reads as a separator between bubble clusters rather
|
|
1136
|
+
* than a message. No reactions, thread pill, swipe or long-press.
|
|
1137
|
+
*
|
|
1138
|
+
* `<MessageRow>` renders this automatically for call-log messages.
|
|
1139
|
+
*/
|
|
1140
|
+
declare function CallLogRow({ msg, meId, onCallBack }: CallLogRowProps): react_jsx_runtime.JSX.Element | null;
|
|
1141
|
+
|
|
1142
|
+
interface LiveCallBannerProps {
|
|
1143
|
+
call: LiveCall;
|
|
1144
|
+
/** How many people are in the room right now. */
|
|
1145
|
+
inCall: number;
|
|
1146
|
+
onJoin: (call: LiveCall) => void;
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
* "Voice call in progress · 2 on the call [Join]" — a strip across the
|
|
1150
|
+
* top of a conversation while a call runs that the viewer is not on.
|
|
1151
|
+
* `<ConversationView onJoinCall>` renders it for you; use it directly
|
|
1152
|
+
* to place it elsewhere (with `useLiveCall`).
|
|
1153
|
+
*/
|
|
1154
|
+
declare function LiveCallBanner({ call, inCall, onJoin }: LiveCallBannerProps): react_jsx_runtime.JSX.Element;
|
|
1155
|
+
|
|
1156
|
+
interface RecordingBannerProps {
|
|
1157
|
+
/** A recording is running. */
|
|
1158
|
+
recording: boolean;
|
|
1159
|
+
/** A live transcript is running. */
|
|
1160
|
+
transcribing?: boolean;
|
|
1161
|
+
mode?: RecordingMode | null;
|
|
1162
|
+
/** Capture needs consent here (`useRecording().consentRequired`). */
|
|
1163
|
+
consentRequired?: boolean;
|
|
1164
|
+
/** Your answer (`useRecording().myConsent`). `declined` shows "listen-only" and a way to change it. */
|
|
1165
|
+
myConsent?: ConsentDecision | null;
|
|
1166
|
+
/** Shows a Stop button (for whoever may stop it). */
|
|
1167
|
+
onStop?: () => void;
|
|
1168
|
+
/** After declining: reopen the prompt. */
|
|
1169
|
+
onChangeConsent?: () => void;
|
|
1170
|
+
/** Disable the buttons (a request is in flight). */
|
|
1171
|
+
pending?: boolean;
|
|
1172
|
+
style?: StyleProp<ViewStyle>;
|
|
1173
|
+
}
|
|
1174
|
+
/**
|
|
1175
|
+
* "● Recording · Everyone in the call is told [Stop]" — a strip across
|
|
1176
|
+
* a captured call, for everyone in it (late joiners too). Renders nothing
|
|
1177
|
+
* while nothing is captured.
|
|
1178
|
+
*/
|
|
1179
|
+
declare function RecordingBanner({ recording, transcribing, mode, consentRequired, myConsent, onStop, onChangeConsent, pending, style, }: RecordingBannerProps): react_jsx_runtime.JSX.Element | null;
|
|
1180
|
+
interface RecordingIndicatorProps {
|
|
1181
|
+
recording: boolean;
|
|
1182
|
+
transcribing?: boolean;
|
|
1183
|
+
mode?: RecordingMode | null;
|
|
1184
|
+
/** Text colour, e.g. white over video. Defaults to the theme's danger colour. */
|
|
1185
|
+
color?: string;
|
|
1186
|
+
style?: StyleProp<ViewStyle>;
|
|
1187
|
+
}
|
|
1188
|
+
/** A small "● REC" pill for a call header or tile. Nothing while nothing is captured. */
|
|
1189
|
+
declare function RecordingIndicator({ recording, transcribing, mode, color, style, }: RecordingIndicatorProps): react_jsx_runtime.JSX.Element | null;
|
|
1190
|
+
interface ConsentPromptProps {
|
|
1191
|
+
/** A recording is running. */
|
|
1192
|
+
recording: boolean;
|
|
1193
|
+
/** A live transcript is running. */
|
|
1194
|
+
transcribing?: boolean;
|
|
1195
|
+
mode?: RecordingMode | null;
|
|
1196
|
+
/** Who started it, if known. Never pass a raw id. */
|
|
1197
|
+
startedByName?: string | null;
|
|
1198
|
+
/** Answer (e.g. `useRecording().consent`). A `false` result keeps the prompt open with an error. */
|
|
1199
|
+
onAnswer: (decision: ConsentDecision) => Promise<boolean | void> | boolean | void;
|
|
1200
|
+
/**
|
|
1201
|
+
* Called once an accept went through: publishing is allowed again.
|
|
1202
|
+
* With the native call core, re-enable the microphone and camera here;
|
|
1203
|
+
* the SDK's `CallRoom` does it by itself.
|
|
1204
|
+
*/
|
|
1205
|
+
onAccepted?: () => void;
|
|
1206
|
+
/** Called after a decline went through (e.g. close the prompt). */
|
|
1207
|
+
onDeclined?: () => void;
|
|
1208
|
+
pending?: boolean;
|
|
1209
|
+
error?: string | null;
|
|
1210
|
+
/** Cover the parent with a scrim (absolute fill). Defaults to true; false renders the card only. */
|
|
1211
|
+
overlay?: boolean;
|
|
1212
|
+
style?: StyleProp<ViewStyle>;
|
|
1213
|
+
}
|
|
1214
|
+
/**
|
|
1215
|
+
* Asks someone in a captured call for consent — shown to anyone who
|
|
1216
|
+
* hasn't accepted, late joiners included, when the room requires it.
|
|
1217
|
+
* Until they agree their microphone and camera stay off; they still hear
|
|
1218
|
+
* and see everyone. Declining keeps them listen-only.
|
|
1219
|
+
*/
|
|
1220
|
+
declare function ConsentPrompt({ recording, transcribing, mode, startedByName, onAnswer, onAccepted, onDeclined, pending, error, overlay, style, }: ConsentPromptProps): react_jsx_runtime.JSX.Element;
|
|
1221
|
+
interface RecordingNoticeRowProps {
|
|
1222
|
+
/** The recording notice message. Rows that aren't one render nothing. */
|
|
1223
|
+
msg: Pick<Message, 'type' | 'body' | 'inserted_at'> & {
|
|
1224
|
+
deleted_at?: string | null;
|
|
2136
1225
|
};
|
|
1226
|
+
/** Current user's id — "by you". */
|
|
1227
|
+
meId: string | null;
|
|
1228
|
+
/** A poolse user id → display name. Unknown: the name is left out. */
|
|
1229
|
+
nameFor?: (userId: Uuid) => string | null | undefined;
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* "● Recording started · by Elena · 10:04" — the chat line the server
|
|
1233
|
+
* posts when a recording starts or stops. `<MessageRow>` renders it.
|
|
1234
|
+
*/
|
|
1235
|
+
declare function RecordingNoticeRow({ msg, meId, nameFor }: RecordingNoticeRowProps): react_jsx_runtime.JSX.Element | null;
|
|
1236
|
+
|
|
1237
|
+
interface LiveTranscriptPanelProps {
|
|
1238
|
+
/** The call. Null renders an empty panel. */
|
|
1239
|
+
callId: string | null;
|
|
1240
|
+
/** Keep the transcript topic open. Defaults to true; false while the panel is hidden. */
|
|
1241
|
+
enabled?: boolean;
|
|
1242
|
+
/** Start / Stop transcription buttons (someone in the call). Defaults to true. */
|
|
1243
|
+
showControls?: boolean;
|
|
1244
|
+
/** Shows a close button. */
|
|
1245
|
+
onClose?: () => void;
|
|
1246
|
+
title?: string;
|
|
1247
|
+
style?: StyleProp<ViewStyle>;
|
|
1248
|
+
}
|
|
1249
|
+
/**
|
|
1250
|
+
* The call's live transcript as it is spoken: speaker, time and text,
|
|
1251
|
+
* the current speaker's words in grey until they are final. Opens the
|
|
1252
|
+
* transcript topic while mounted (the last 200 lines arrive at once)
|
|
1253
|
+
* and sticks to the bottom unless you scroll up.
|
|
1254
|
+
*/
|
|
1255
|
+
declare function LiveTranscriptPanel({ callId, enabled, showControls, onClose, title, style, }: LiveTranscriptPanelProps): react_jsx_runtime.JSX.Element;
|
|
1256
|
+
interface TranscriptViewerProps {
|
|
1257
|
+
/** The call whose stored transcript to show. */
|
|
1258
|
+
callId: string | null;
|
|
1259
|
+
/**
|
|
1260
|
+
* Offer speaker renames. Defaults to true; the server allows it for
|
|
1261
|
+
* people who took part in the call and the conversation's owners and
|
|
1262
|
+
* admins, and anyone else gets an explanation instead.
|
|
1263
|
+
*/
|
|
1264
|
+
canRename?: boolean;
|
|
1265
|
+
/** Makes timestamps pressable, e.g. to seek a recording (ms since the transcript started). */
|
|
1266
|
+
onSeek?: (ms: number) => void;
|
|
1267
|
+
title?: string;
|
|
1268
|
+
style?: StyleProp<ViewStyle>;
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* A call's stored transcript: who spoke, when, and what they said;
|
|
1272
|
+
* search within it; and correct a speaker's name (everyone viewing sees
|
|
1273
|
+
* the change at once).
|
|
1274
|
+
*/
|
|
1275
|
+
declare function TranscriptViewer({ callId, canRename, onSeek, title, style, }: TranscriptViewerProps): react_jsx_runtime.JSX.Element | null;
|
|
1276
|
+
|
|
1277
|
+
interface AgentBadgeProps {
|
|
1278
|
+
/** `sm` (default) beside names in lists; `xs` in dense rows. */
|
|
1279
|
+
size?: 'xs' | 'sm';
|
|
1280
|
+
/** Defaults to "Agent". */
|
|
1281
|
+
label?: string;
|
|
1282
|
+
style?: StyleProp<ViewStyle>;
|
|
1283
|
+
}
|
|
1284
|
+
declare function AgentBadge({ size, label, style }: AgentBadgeProps): react_jsx_runtime.JSX.Element;
|
|
1285
|
+
/**
|
|
1286
|
+
* The badge as nested text, for inside a `<Text>` (a sender label that
|
|
1287
|
+
* is itself pressable text). Same wording and color as `<AgentBadge>`.
|
|
1288
|
+
*/
|
|
1289
|
+
declare function AgentBadgeInline({ label }: {
|
|
1290
|
+
label?: string;
|
|
1291
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1292
|
+
|
|
1293
|
+
interface CallAgentTagProps {
|
|
1294
|
+
agent: Pick<CallAgent, 'mode' | 'status' | 'speaking'>;
|
|
1295
|
+
/** Show what it's doing ("Taking notes"). Defaults to true. */
|
|
1296
|
+
showState?: boolean;
|
|
1297
|
+
/** The participant's live speaking flag; overrides the agent's. */
|
|
1298
|
+
speaking?: boolean;
|
|
1299
|
+
/** Over video: light text. */
|
|
1300
|
+
onMedia?: boolean;
|
|
1301
|
+
style?: StyleProp<ViewStyle>;
|
|
1302
|
+
}
|
|
1303
|
+
/** The Agent badge with the agent's state — beside its name wherever it's listed in a call. */
|
|
1304
|
+
declare function CallAgentTag({ agent, showState, speaking, onMedia, style, }: CallAgentTagProps): react_jsx_runtime.JSX.Element;
|
|
1305
|
+
interface InviteAgentMenuProps {
|
|
1306
|
+
/** `useCallAgents(conversationId, callId)`. */
|
|
1307
|
+
callAgents: UseCallAgents;
|
|
1308
|
+
onDone?: () => void;
|
|
1309
|
+
style?: StyleProp<ViewStyle>;
|
|
1310
|
+
}
|
|
1311
|
+
/**
|
|
1312
|
+
* Bring a note-taker (silent: transcript, summary and tasks) or an
|
|
1313
|
+
* assistant (answers when addressed by name) into the call, switch
|
|
1314
|
+
* one's mode, or send one out.
|
|
1315
|
+
*/
|
|
1316
|
+
declare function InviteAgentMenu({ callAgents, onDone, style }: InviteAgentMenuProps): react_jsx_runtime.JSX.Element;
|
|
1317
|
+
interface WhisperPanelProps {
|
|
1318
|
+
/** `useWhisper(callId)`. */
|
|
1319
|
+
whisper: UseWhisper;
|
|
1320
|
+
/** Height of the hint list before it scrolls. Defaults to 320. */
|
|
1321
|
+
maxHeight?: number;
|
|
1322
|
+
style?: StyleProp<ViewStyle>;
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* Private hints during a call — facts, what you promised last time,
|
|
1326
|
+
* questions to raise. Only you see them; the panel says so.
|
|
1327
|
+
*/
|
|
1328
|
+
declare function WhisperPanel({ whisper, maxHeight, style }: WhisperPanelProps): react_jsx_runtime.JSX.Element;
|
|
1329
|
+
interface EscalationCardProps {
|
|
1330
|
+
escalation: AgentEscalation;
|
|
1331
|
+
/** The agent's name; defaults to the directory's, else "Your agent". */
|
|
1332
|
+
agentName?: string | null;
|
|
1333
|
+
meetingTitle?: string | null;
|
|
1334
|
+
/** Defaults to `poolse.escalations.reply`. */
|
|
1335
|
+
reply?: (id: string, reply: EscalationReply) => Promise<unknown>;
|
|
1336
|
+
onReplied?: (escalation: AgentEscalation) => void;
|
|
1337
|
+
style?: StyleProp<ViewStyle>;
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Your agent, in a meeting for you, asking something its brief doesn't
|
|
1341
|
+
* cover: Approve, Decline, or write an answer.
|
|
1342
|
+
*/
|
|
1343
|
+
declare function EscalationCard({ escalation: e, agentName, meetingTitle, reply, onReplied, style, }: EscalationCardProps): react_jsx_runtime.JSX.Element;
|
|
1344
|
+
interface EscalationListProps {
|
|
1345
|
+
/** Only this call's. */
|
|
1346
|
+
callId?: string | null;
|
|
1347
|
+
/** Shown when nothing waits. Defaults to nothing. */
|
|
1348
|
+
empty?: string | null;
|
|
1349
|
+
style?: StyleProp<ViewStyle>;
|
|
1350
|
+
}
|
|
1351
|
+
/** Everything your agents wait for you to answer, live. */
|
|
1352
|
+
declare function EscalationList({ callId, empty, style }: EscalationListProps): react_jsx_runtime.JSX.Element | null;
|
|
1353
|
+
|
|
1354
|
+
interface ApprovalCardProps {
|
|
1355
|
+
/** The request — from `useApprovals()` or `useApproval(id)`. */
|
|
1356
|
+
approval: AgentApproval;
|
|
1357
|
+
/** The agent's name when the request leaves it out (e.g. the message's sender). */
|
|
1358
|
+
agentName?: string | null;
|
|
1359
|
+
/** After an answer went through. */
|
|
1360
|
+
onDecided?: (approval: AgentApproval) => void;
|
|
1361
|
+
/** How many detail lines show before "Show all". Defaults to 4. */
|
|
1362
|
+
maxDetails?: number;
|
|
1363
|
+
style?: StyleProp<ViewStyle>;
|
|
1364
|
+
}
|
|
1365
|
+
/**
|
|
1366
|
+
* An agent asking before it calls a tool with an effect outside the chat. One tap
|
|
1367
|
+
* approves or denies; a reason is optional. Follows the shared
|
|
1368
|
+
* approvals store, so an answer given anywhere shows here at once.
|
|
1369
|
+
*/
|
|
1370
|
+
declare function ApprovalCard({ approval: initial, agentName, onDecided, maxDetails, style, }: ApprovalCardProps): react_jsx_runtime.JSX.Element;
|
|
1371
|
+
interface MessageApprovalProps {
|
|
1372
|
+
/** `approvalIdOf(message)`. */
|
|
1373
|
+
approvalId: string;
|
|
1374
|
+
/** The asking agent's name (the message's sender) when the directory doesn't know it. */
|
|
1375
|
+
agentName?: string | null;
|
|
1376
|
+
style?: StyleProp<ViewStyle>;
|
|
1377
|
+
}
|
|
1378
|
+
/**
|
|
1379
|
+
* The approval an agent's message waits for (`agent_meta.approval_id`),
|
|
1380
|
+
* loaded and kept live. Nothing shows for someone else's approval.
|
|
1381
|
+
*/
|
|
1382
|
+
declare function MessageApproval({ approvalId, agentName, style }: MessageApprovalProps): react_jsx_runtime.JSX.Element | null;
|
|
1383
|
+
interface ApprovalListProps {
|
|
1384
|
+
emptyState?: ReactNode;
|
|
1385
|
+
/** Re-list every so often as a fallback to live events (ms; 0 = never). Defaults to 60 s. */
|
|
1386
|
+
pollMs?: number;
|
|
1387
|
+
style?: StyleProp<ViewStyle>;
|
|
1388
|
+
}
|
|
1389
|
+
/** Everything waiting for your approval, newest first, live. */
|
|
1390
|
+
declare function ApprovalList({ emptyState, pollMs, style }: ApprovalListProps): react_jsx_runtime.JSX.Element;
|
|
1391
|
+
interface MessageCitationsProps {
|
|
1392
|
+
message: Message;
|
|
1393
|
+
/** Defaults to `citationsOf(message)`. */
|
|
1394
|
+
citations?: Citation[];
|
|
1395
|
+
/** Defaults to the `MessageExtrasProvider`'s `onOpenCitation`. */
|
|
1396
|
+
onOpenCitation?: (citation: Citation, message: Message) => void;
|
|
1397
|
+
/** `onBrand` inside your own (coloured) bubble. */
|
|
1398
|
+
tone?: 'default' | 'onBrand';
|
|
1399
|
+
style?: StyleProp<ViewStyle>;
|
|
1400
|
+
}
|
|
1401
|
+
/** The sources of an assistant's answer as links. Plain text when nothing handles a press. */
|
|
1402
|
+
declare function MessageCitations({ message, citations, onOpenCitation, tone, style, }: MessageCitationsProps): react_jsx_runtime.JSX.Element | null;
|
|
1403
|
+
|
|
1404
|
+
interface SummaryCardProps {
|
|
1405
|
+
summary: CallSummary;
|
|
1406
|
+
/** A timed line or moment was pressed. Defaults to the provider's; without one, times are plain text. */
|
|
1407
|
+
onOpenMoment?: (moment: MeetingMoment) => void;
|
|
1408
|
+
/** A poolse user id → name, for assignees. Defaults to the provider's, then the conversation's members. */
|
|
1409
|
+
nameForUserId?: (userId: string) => string | null | undefined;
|
|
1410
|
+
/** Fetch the full copy when shortened and follow `summary:ready`. Defaults to true. */
|
|
1411
|
+
live?: boolean;
|
|
1412
|
+
style?: StyleProp<ViewStyle>;
|
|
1413
|
+
}
|
|
1414
|
+
/** A call's summary: overview, decisions, action items, open questions, sections and moments. */
|
|
1415
|
+
declare function SummaryCard({ summary: initial, onOpenMoment, nameForUserId, live, style, }: SummaryCardProps): react_jsx_runtime.JSX.Element;
|
|
1416
|
+
interface SummaryMessageRowProps {
|
|
1417
|
+
msg: Message;
|
|
1418
|
+
meId: string | null;
|
|
1419
|
+
nameForUserId?: (userId: string) => string | null | undefined;
|
|
1420
|
+
}
|
|
1421
|
+
/** A `kind: "call_summary"` message in a list: who posted it, then the card. */
|
|
1422
|
+
declare function SummaryMessageRow({ msg, nameForUserId }: SummaryMessageRowProps): react_jsx_runtime.JSX.Element | null;
|
|
1423
|
+
interface AskMeetingsProps {
|
|
1424
|
+
callId?: string | null;
|
|
1425
|
+
conversationId?: string | null;
|
|
1426
|
+
onOpenMoment?: (moment: MeetingMoment) => void;
|
|
1427
|
+
placeholder?: string;
|
|
1428
|
+
style?: StyleProp<ViewStyle>;
|
|
1429
|
+
}
|
|
1430
|
+
/** A question box over your meetings, answered with links to the moments. */
|
|
1431
|
+
declare function AskMeetings({ callId, conversationId, onOpenMoment, placeholder, style, }: AskMeetingsProps): react_jsx_runtime.JSX.Element;
|
|
1432
|
+
interface ClipPlayerProps {
|
|
1433
|
+
/** A clip shared in chat (an attachment) — plays its own file. */
|
|
1434
|
+
attachment?: Attachment | null;
|
|
1435
|
+
/** A clip by id — shows "Cutting…" until `clip:ready`. */
|
|
1436
|
+
clipId?: string | null;
|
|
1437
|
+
/** Or a range of a recording: plays from `startMs` and stops at `endMs`. */
|
|
1438
|
+
clip?: {
|
|
1439
|
+
recordingId: string;
|
|
1440
|
+
startMs: number;
|
|
1441
|
+
endMs: number;
|
|
1442
|
+
} | null;
|
|
1443
|
+
onOpenRecording?: (recordingId: string, startMs: number) => void;
|
|
1444
|
+
/** The media adapter. Defaults to the provider's `renderMedia`. */
|
|
1445
|
+
renderMedia?: RenderMedia;
|
|
1446
|
+
compact?: boolean;
|
|
1447
|
+
style?: StyleProp<ViewStyle>;
|
|
1448
|
+
}
|
|
1449
|
+
/** A short piece of a call's recording. */
|
|
1450
|
+
declare function ClipPlayer({ attachment, clipId, clip: rangeClip, onOpenRecording, renderMedia, compact, style, }: ClipPlayerProps): react_jsx_runtime.JSX.Element;
|
|
1451
|
+
interface RecordingPlayerProps {
|
|
1452
|
+
recordingId: string;
|
|
1453
|
+
showTranscript?: boolean;
|
|
1454
|
+
/** Start here (recording ms — a moment's `recordingMs`); a new value seeks. */
|
|
1455
|
+
startMs?: number | null;
|
|
1456
|
+
defaultSkipSilence?: boolean;
|
|
1457
|
+
/** The media adapter. Defaults to the provider's `renderMedia`. */
|
|
1458
|
+
renderMedia?: RenderMedia;
|
|
1459
|
+
style?: StyleProp<ViewStyle>;
|
|
1460
|
+
}
|
|
1461
|
+
interface RecordingPlayerHandle {
|
|
1462
|
+
/** Seek to recording time `ms` and play. */
|
|
1463
|
+
seek: (ms: number) => void;
|
|
1464
|
+
/** Seek to transcript time `ms` (a summary item's `startMs`) and play. */
|
|
1465
|
+
seekTranscript: (ms: number) => void;
|
|
1466
|
+
play: () => void;
|
|
1467
|
+
pause: () => void;
|
|
1468
|
+
}
|
|
1469
|
+
/**
|
|
1470
|
+
* A finished recording (`GET /v1/recordings/:id/playback`): 1×–2× speed,
|
|
1471
|
+
* skip silence, chapters, and the transcript scrolling along — tap a line
|
|
1472
|
+
* to play from there.
|
|
1473
|
+
*/
|
|
1474
|
+
declare const RecordingPlayer: react.ForwardRefExoticComponent<RecordingPlayerProps & react.RefAttributes<RecordingPlayerHandle>>;
|
|
1475
|
+
|
|
1476
|
+
/** Someone in the call, as the panels name them. */
|
|
1477
|
+
interface MeetingParticipant {
|
|
1478
|
+
userId: string;
|
|
1479
|
+
name?: string | null;
|
|
1480
|
+
/** Joined from a guest link: shown with a Guest mark. */
|
|
1481
|
+
guest?: boolean;
|
|
1482
|
+
avatarUrl?: string | null;
|
|
1483
|
+
/**
|
|
1484
|
+
* An agent in the call (AG13): named by its `label` and shown with the
|
|
1485
|
+
* Agent badge and what it's doing. `useCallAgents().agentFor(userId)`,
|
|
1486
|
+
* or pass the call's `agents` to the panel.
|
|
1487
|
+
*/
|
|
1488
|
+
agent?: CallAgent | null;
|
|
1489
|
+
/** Speaking now (the roster's flag) — an agent shows "Speaking". */
|
|
1490
|
+
speaking?: boolean;
|
|
1491
|
+
}
|
|
1492
|
+
type NameFor = (userId: string) => string | null | undefined;
|
|
1493
|
+
interface StagePanelProps {
|
|
1494
|
+
stage: UseStage;
|
|
1495
|
+
/** Everyone in the call (from the call roster). */
|
|
1496
|
+
participants: readonly MeetingParticipant[];
|
|
1497
|
+
selfUserId?: string | null;
|
|
1498
|
+
nameForUserId?: NameFor;
|
|
1499
|
+
/** The call's agents (`useCallAgents().agents`), listed with the Agent badge. */
|
|
1500
|
+
agents?: readonly CallAgent[];
|
|
1501
|
+
style?: StyleProp<ViewStyle>;
|
|
1502
|
+
}
|
|
1503
|
+
/**
|
|
1504
|
+
* Speakers and audience, your raise-hand button, and — for moderators —
|
|
1505
|
+
* raised hands with Bring up / Lower, and Move to audience on speakers.
|
|
1506
|
+
*/
|
|
1507
|
+
declare function StagePanel({ stage, participants, selfUserId, nameForUserId, agents, style, }: StagePanelProps): react_jsx_runtime.JSX.Element;
|
|
1508
|
+
interface QuestionsPanelProps {
|
|
1509
|
+
questions: UseQuestions;
|
|
1510
|
+
/** Show Answered / Dismiss on open questions. */
|
|
1511
|
+
canModerate?: boolean;
|
|
1512
|
+
/** Offer "Ask anonymously". Defaults to true. */
|
|
1513
|
+
allowAnonymous?: boolean;
|
|
1514
|
+
nameForUserId?: NameFor;
|
|
1515
|
+
style?: StyleProp<ViewStyle>;
|
|
1516
|
+
}
|
|
1517
|
+
/** Ask a question, upvote others', and (moderators) mark them answered. */
|
|
1518
|
+
declare function QuestionsPanel({ questions, canModerate, allowAnonymous, nameForUserId, style, }: QuestionsPanelProps): react_jsx_runtime.JSX.Element;
|
|
1519
|
+
interface BreakoutBannerProps {
|
|
1520
|
+
/** `useBreakouts(…)`, or `useNativeBreakouts(…)` on @poolse/native (which moves the call itself). */
|
|
1521
|
+
breakouts: UseBreakouts | UseNativeBreakouts;
|
|
1522
|
+
/** You are in your breakout room now (not the main call). Default: `useNativeBreakouts`' own. */
|
|
1523
|
+
inBreakout?: boolean;
|
|
1524
|
+
/** Connect to the room's session (switch the call's media to it). */
|
|
1525
|
+
onJoined?: (session: RoomSession) => void;
|
|
1526
|
+
/** Connect back to the main call. */
|
|
1527
|
+
onReturned?: (session: RoomSession) => void;
|
|
1528
|
+
style?: StyleProp<ViewStyle>;
|
|
1529
|
+
}
|
|
1530
|
+
/**
|
|
1531
|
+
* "Breakout · Room 2 · 12:30 left · Join room", then "Return to main";
|
|
1532
|
+
* while closing, "Returning to the main call in 0:45". Nothing without a
|
|
1533
|
+
* session or a room for you.
|
|
1534
|
+
*/
|
|
1535
|
+
declare function BreakoutBanner({ breakouts, inBreakout: inBreakoutProp, onJoined, onReturned, style, }: BreakoutBannerProps): react_jsx_runtime.JSX.Element | null;
|
|
1536
|
+
interface UseNativeBreakoutsOptions extends Omit<UseBreakoutsOptions, 'auto'> {
|
|
1537
|
+
/**
|
|
1538
|
+
* @poolse/native's `moveToRoom`: switches the live call's media to the
|
|
1539
|
+
* session's room and keeps the system call (CallKit / Android's call
|
|
1540
|
+
* service). Injected so this package doesn't depend on the native module.
|
|
1541
|
+
*/
|
|
1542
|
+
moveToRoom: (session: RoomSession) => Promise<boolean>;
|
|
1543
|
+
/** Follow the split by yourself (default true): join your room as it opens, come back as it closes. */
|
|
1544
|
+
auto?: boolean;
|
|
1545
|
+
}
|
|
1546
|
+
interface UseNativeBreakouts extends UseBreakouts {
|
|
1547
|
+
/** The call's media is in a breakout room now (not the main room). */
|
|
1548
|
+
inBreakout: boolean;
|
|
1549
|
+
/** Join a room and move the call into it. False when the server or the core refused. */
|
|
1550
|
+
joinRoom: (roomId: string) => Promise<boolean>;
|
|
1551
|
+
/** Back to the main room. */
|
|
1552
|
+
returnToMainRoom: () => Promise<boolean>;
|
|
1553
|
+
}
|
|
1554
|
+
/**
|
|
1555
|
+
* Breakout rooms on phones (CL5): `useBreakouts` with the native call
|
|
1556
|
+
* core doing the moving. With `auto` (the default) it joins your room
|
|
1557
|
+
* when the split gives you one and returns you when it closes; the
|
|
1558
|
+
* phone's call never ends, only its media changes rooms.
|
|
1559
|
+
*
|
|
1560
|
+
* import { moveToRoom } from '@poolse/native';
|
|
1561
|
+
* const breakouts = useNativeBreakouts(conversationId, callId, { moveToRoom });
|
|
1562
|
+
* <BreakoutBanner breakouts={breakouts} />
|
|
1563
|
+
*/
|
|
1564
|
+
declare function useNativeBreakouts(conversationId: string | null, callId: string | null, opts: UseNativeBreakoutsOptions): UseNativeBreakouts;
|
|
1565
|
+
interface LobbyWaitingProps {
|
|
1566
|
+
/** The name the guest gave. */
|
|
1567
|
+
name: string;
|
|
1568
|
+
/** Where the guest stands (`waitInLobby`'s status). */
|
|
1569
|
+
status: GuestLobbyStatus['status'];
|
|
1570
|
+
/** The meeting's title, when known. */
|
|
1571
|
+
title?: string | null;
|
|
1572
|
+
onLeave: () => void;
|
|
1573
|
+
style?: StyleProp<ViewStyle>;
|
|
1574
|
+
}
|
|
1575
|
+
/** A guest's waiting screen: "Waiting for the host to let you in", then denied or ended. */
|
|
1576
|
+
declare function LobbyWaiting({ name, status, title, onLeave, style }: LobbyWaitingProps): react_jsx_runtime.JSX.Element;
|
|
1577
|
+
interface LobbyAdmitListProps {
|
|
1578
|
+
lobby: UseLobby;
|
|
1579
|
+
style?: StyleProp<ViewStyle>;
|
|
1580
|
+
}
|
|
1581
|
+
/** For members: who is waiting, with Admit / Deny and Admit all. Nothing when nobody waits. */
|
|
1582
|
+
declare function LobbyAdmitList({ lobby, style }: LobbyAdmitListProps): react_jsx_runtime.JSX.Element | null;
|
|
1583
|
+
interface MarkMomentButtonProps {
|
|
1584
|
+
moments: UseMoments;
|
|
1585
|
+
/** Icon only (a call control); the label is still read out. */
|
|
1586
|
+
compact?: boolean;
|
|
1587
|
+
style?: StyleProp<ViewStyle>;
|
|
1588
|
+
}
|
|
1589
|
+
/** "Mark moment": highlights this point in the recording and the summary; says "Marked" for 2 s. */
|
|
1590
|
+
declare function MarkMomentButton({ moments, compact, style }: MarkMomentButtonProps): react_jsx_runtime.JSX.Element;
|
|
1591
|
+
interface AgendaPanelProps {
|
|
1592
|
+
agenda: UseAgenda;
|
|
1593
|
+
/** Show Start / Done / Reopen. */
|
|
1594
|
+
canEdit?: boolean;
|
|
1595
|
+
nameForUserId?: NameFor;
|
|
1596
|
+
style?: StyleProp<ViewStyle>;
|
|
1597
|
+
}
|
|
1598
|
+
/** The meeting's agenda: owner and minutes per item, the current one highlighted, an over-time nudge. */
|
|
1599
|
+
declare function AgendaPanel({ agenda, canEdit, nameForUserId, style }: AgendaPanelProps): react_jsx_runtime.JSX.Element | null;
|
|
1600
|
+
interface RoomPresenceProps {
|
|
1601
|
+
/**
|
|
1602
|
+
* Who's in (`useRoomPresence().presence[id]`), or a live call
|
|
1603
|
+
* (`useLiveCall(id).call`); nothing renders when empty.
|
|
1604
|
+
*/
|
|
1605
|
+
call: RoomPresenceEntry | LiveCall | null | undefined;
|
|
1606
|
+
/** Most avatars to show; the rest become "+N". Defaults to 3. */
|
|
1607
|
+
max?: number;
|
|
1608
|
+
nameForUserId?: NameFor;
|
|
1609
|
+
style?: StyleProp<ViewStyle>;
|
|
1610
|
+
}
|
|
1611
|
+
/** Who is in a room, for a sidebar row: overlapping avatars and "+N". */
|
|
1612
|
+
declare function RoomPresence({ call, max, nameForUserId, style }: RoomPresenceProps): react_jsx_runtime.JSX.Element | null;
|
|
1613
|
+
interface MeetingCardProps {
|
|
1614
|
+
card: MeetingCard$1;
|
|
1615
|
+
/** Your user id, to find your answer in the lists. */
|
|
1616
|
+
meId?: string | null;
|
|
1617
|
+
/**
|
|
1618
|
+
* Record your answer yourself. Default: `PUT /meetings/:id/rsvp`
|
|
1619
|
+
* through the provider's client; `false` hides the buttons. The card
|
|
1620
|
+
* updates when the server restates the message.
|
|
1621
|
+
*/
|
|
1622
|
+
onRsvp?: ((response: RsvpResponse) => void | Promise<void>) | false;
|
|
1623
|
+
/** Join the meeting's room. */
|
|
1624
|
+
onJoin?: (card: MeetingCard$1) => void;
|
|
1625
|
+
nameForUserId?: NameFor;
|
|
1626
|
+
style?: StyleProp<ViewStyle>;
|
|
1627
|
+
}
|
|
1628
|
+
/** An invite in chat: title, time, who's coming, Accept / Maybe / Decline and Join. */
|
|
1629
|
+
declare function MeetingCard({ card, meId, onRsvp, onJoin, nameForUserId, style, }: MeetingCardProps): react_jsx_runtime.JSX.Element;
|
|
1630
|
+
interface MeetingCardMessageRowProps extends Omit<MeetingCardProps, 'card'> {
|
|
1631
|
+
msg: Message;
|
|
1632
|
+
}
|
|
1633
|
+
/** A meeting-card message in a list; nothing for any other message. */
|
|
1634
|
+
declare function MeetingCardMessageRow({ msg, ...rest }: MeetingCardMessageRowProps): react_jsx_runtime.JSX.Element | null;
|
|
1635
|
+
|
|
1636
|
+
interface CaptionsOverlayProps {
|
|
1637
|
+
/** `useLiveTranscript(callId).segments`. */
|
|
1638
|
+
segments: readonly LiveTranscriptSegment[];
|
|
1639
|
+
/** How many lines to show. Defaults to 2. */
|
|
1640
|
+
lines?: number;
|
|
1641
|
+
style?: StyleProp<ViewStyle>;
|
|
1642
|
+
}
|
|
1643
|
+
/** The last lines of the live transcript, with speaker names; words still being spoken are dimmed. */
|
|
1644
|
+
declare function CaptionsOverlay({ segments, lines, style }: CaptionsOverlayProps): react_jsx_runtime.JSX.Element | null;
|
|
1645
|
+
interface ReactionsOverlayProps {
|
|
1646
|
+
/** `useCallReactions(room).reactions`. */
|
|
1647
|
+
reactions: readonly CallReaction[];
|
|
1648
|
+
style?: StyleProp<ViewStyle>;
|
|
1649
|
+
}
|
|
1650
|
+
/** Reactions rising over the call (still, with Reduce Motion). Never takes touches. */
|
|
1651
|
+
declare function ReactionsOverlay({ reactions, style }: ReactionsOverlayProps): react_jsx_runtime.JSX.Element;
|
|
1652
|
+
interface ReactionPickerBarProps {
|
|
1653
|
+
onReact: (emoji: string) => void;
|
|
1654
|
+
emojis?: readonly string[];
|
|
1655
|
+
style?: StyleProp<ViewStyle>;
|
|
1656
|
+
}
|
|
1657
|
+
/** A row of reaction buttons (`DEFAULT_CALL_REACTIONS`). */
|
|
1658
|
+
declare function ReactionPickerBar({ onReact, emojis, style, }: ReactionPickerBarProps): react_jsx_runtime.JSX.Element;
|
|
1659
|
+
interface ConnectionIndicatorProps {
|
|
1660
|
+
/** A web `CallConnectionQuality` or the native core's `'good' | 'poor' | 'lost' | 'unknown'`. */
|
|
1661
|
+
quality: CallConnectionQuality | 'good' | 'poor' | 'lost' | 'unknown' | null | undefined;
|
|
1662
|
+
/** Bar height in px. Defaults to 12. */
|
|
1663
|
+
size?: number;
|
|
1664
|
+
style?: StyleProp<ViewStyle>;
|
|
1665
|
+
}
|
|
1666
|
+
/** Three signal bars; a weak link turns amber, a lost one red. Labelled for screen readers. */
|
|
1667
|
+
declare function ConnectionIndicator({ quality, size, style }: ConnectionIndicatorProps): react_jsx_runtime.JSX.Element | null;
|
|
1668
|
+
interface NetworkBannerProps {
|
|
1669
|
+
/** `useCallQuality(room)?.issues`, or `diagnoseCallNetwork(…)` from a native snapshot. */
|
|
1670
|
+
issues: readonly CallNetworkIssue[];
|
|
1671
|
+
onDismiss?: () => void;
|
|
1672
|
+
style?: StyleProp<ViewStyle>;
|
|
1673
|
+
}
|
|
1674
|
+
/** The worst network problem in plain words ("Your network is dropping packets…"). */
|
|
1675
|
+
declare function NetworkBanner({ issues, onDismiss, style }: NetworkBannerProps): react_jsx_runtime.JSX.Element | null;
|
|
1676
|
+
interface WhiteboardViewProps {
|
|
1677
|
+
/** `useWhiteboard(callId, Y).items`. */
|
|
1678
|
+
items: readonly WhiteboardItem[];
|
|
1679
|
+
/** With a model and not `readOnly`, a finger draws pen strokes. */
|
|
1680
|
+
model?: WhiteboardModel | null;
|
|
1681
|
+
readOnly?: boolean;
|
|
1682
|
+
/** Pen colour and width (board units). */
|
|
1683
|
+
color?: string;
|
|
1684
|
+
width?: number;
|
|
1685
|
+
style?: StyleProp<ViewStyle>;
|
|
1686
|
+
}
|
|
1687
|
+
/**
|
|
1688
|
+
* The call's whiteboard, fit to the view (1600 × 900 board units). View
|
|
1689
|
+
* only by default; pass the model to draw simple pen strokes.
|
|
1690
|
+
*/
|
|
1691
|
+
declare function WhiteboardView({ items, model, readOnly, color, width, style, }: WhiteboardViewProps): react_jsx_runtime.JSX.Element;
|
|
1692
|
+
interface AnnotationOverlayProps {
|
|
1693
|
+
/** `useScreenAnnotations(room, sharerUserId).state` (room: `callData` on @poolse/native). */
|
|
1694
|
+
state: AnnotationState | null;
|
|
1695
|
+
/**
|
|
1696
|
+
* `useScreenAnnotations(…).annotations`: with it and `drawing`, a
|
|
1697
|
+
* finger draws lines everyone in the call sees.
|
|
1698
|
+
*/
|
|
1699
|
+
annotations?: ScreenAnnotations | null;
|
|
1700
|
+
/** Draw instead of passing touches through (a pen toggle). Default false. */
|
|
1701
|
+
drawing?: boolean;
|
|
1702
|
+
/** Pen colour. Default red. */
|
|
1703
|
+
color?: string;
|
|
1704
|
+
style?: StyleProp<ViewStyle>;
|
|
1705
|
+
}
|
|
1706
|
+
/**
|
|
1707
|
+
* Lines and pointers drawn on a shared screen, laid over the screen's
|
|
1708
|
+
* video (same box as the picture: size it to the `fit="contain"` area).
|
|
1709
|
+
* View only unless given `annotations` and `drawing`.
|
|
1710
|
+
*/
|
|
1711
|
+
declare function AnnotationOverlay({ state, annotations, drawing, color, style, }: AnnotationOverlayProps): react_jsx_runtime.JSX.Element;
|
|
1712
|
+
|
|
1713
|
+
/** 45 → "0:45", 3725 → "1:02:05". */
|
|
1714
|
+
declare function formatCountdown(seconds: number | null | undefined): string;
|
|
1715
|
+
/** Show at most `max` avatars; the rest become "+N". */
|
|
1716
|
+
declare function avatarOverflow<T>(list: readonly T[], max: number): {
|
|
1717
|
+
shown: T[];
|
|
1718
|
+
more: number;
|
|
1719
|
+
};
|
|
1720
|
+
/** One caption line: a speaker's run of text, interim when still talking. */
|
|
1721
|
+
interface CaptionLine {
|
|
1722
|
+
key: string;
|
|
1723
|
+
speaker: string;
|
|
1724
|
+
text: string;
|
|
1725
|
+
interim: boolean;
|
|
1726
|
+
}
|
|
1727
|
+
/**
|
|
1728
|
+
* The last `lines` caption lines: consecutive segments of one speaker are
|
|
1729
|
+
* joined, an interim segment after them shown as still being spoken.
|
|
1730
|
+
* Each line keeps only its last `maxChars` characters.
|
|
1731
|
+
*/
|
|
1732
|
+
declare function captionLines(segments: readonly LiveTranscriptSegment[], lines?: number, maxChars?: number): CaptionLine[];
|
|
1733
|
+
/** "Budget review is 3 min over" — null when not over by a whole minute. */
|
|
1734
|
+
declare function overrunText(title: string, overrunMs: number): string | null;
|
|
1735
|
+
/** "Tue 21 Nov · 10:00–10:30" in the device's locale. */
|
|
1736
|
+
declare function meetingTimeText(card: Pick<MeetingCard$1, 'startsAt' | 'endsAt'>): string | null;
|
|
1737
|
+
/** "4 accepted · 1 maybe · 2 declined" (empty parts left out), or null. */
|
|
1738
|
+
declare function rsvpSummary(card: Pick<MeetingCard$1, 'rsvps'> & Partial<Pick<MeetingCard$1, 'counts'>>): string | null;
|
|
1739
|
+
|
|
1740
|
+
interface FormattingToolbarProps {
|
|
1741
|
+
onFormat: (kind: FormatKind) => void;
|
|
1742
|
+
disabled?: boolean;
|
|
1743
|
+
/** Which buttons, in order. Defaults to all of `FORMAT_ACTIONS`. */
|
|
1744
|
+
actions?: readonly FormatKind[];
|
|
1745
|
+
}
|
|
1746
|
+
/** A horizontally scrolling row of formatting buttons. */
|
|
1747
|
+
declare function FormattingToolbar({ onFormat, disabled, actions, }: FormattingToolbarProps): react_jsx_runtime.JSX.Element;
|
|
1748
|
+
/** `/command` suggestions for the text and cursor, or `null` when none match. */
|
|
1749
|
+
declare function CommandSuggestions({ commands, text, cursor, onPick, }: {
|
|
1750
|
+
commands: readonly SlashCommand[];
|
|
1751
|
+
text: string;
|
|
1752
|
+
cursor: number;
|
|
1753
|
+
onPick: (command: SlashCommand) => void;
|
|
1754
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
1755
|
+
interface DlpWarningSheetProps {
|
|
1756
|
+
outcome: DlpOutcome;
|
|
1757
|
+
/** "Send anyway" (only offered for a warning, never for a block). */
|
|
1758
|
+
onSendAnyway?: () => void;
|
|
1759
|
+
/** "Edit message": back to the composer with the text kept. */
|
|
1760
|
+
onEdit: () => void;
|
|
1761
|
+
}
|
|
1762
|
+
/** The data-loss-prevention warning as a centred modal. */
|
|
1763
|
+
declare function DlpWarningSheet({ outcome, onSendAnyway, onEdit }: DlpWarningSheetProps): react_jsx_runtime.JSX.Element;
|
|
1764
|
+
|
|
1765
|
+
/**
|
|
1766
|
+
* Either a real message or a day-separator row. ConversationView
|
|
1767
|
+
* builds the list of items (interleaving separators where the day
|
|
1768
|
+
* changes) and hands it to MessageList; MessageList just renders.
|
|
1769
|
+
*/
|
|
1770
|
+
type MessageListItem = {
|
|
1771
|
+
kind: 'msg';
|
|
1772
|
+
msg: Message;
|
|
1773
|
+
} | {
|
|
1774
|
+
kind: 'separator';
|
|
1775
|
+
id: string;
|
|
1776
|
+
node: ReactElement;
|
|
2137
1777
|
};
|
|
2138
|
-
|
|
1778
|
+
interface MessageListProps {
|
|
1779
|
+
messages: Message[];
|
|
1780
|
+
/**
|
|
1781
|
+
* Optional pre-built item list (with day separators interleaved).
|
|
1782
|
+
* When omitted, a list with `{ kind: 'msg' }` items is derived
|
|
1783
|
+
* from `messages` and rendered without separators.
|
|
1784
|
+
*/
|
|
1785
|
+
items?: MessageListItem[];
|
|
1786
|
+
loading?: boolean;
|
|
1787
|
+
hasMore?: boolean;
|
|
1788
|
+
onLoadMore?: () => void;
|
|
1789
|
+
renderItem: (msg: Message, index: number) => ReactElement;
|
|
1790
|
+
/** Slot rendered above the latest message (typically the typing indicator). */
|
|
1791
|
+
ListHeader?: ReactElement | null;
|
|
1792
|
+
/** Slot rendered below the oldest message (rare — typically nothing). */
|
|
1793
|
+
ListFooter?: ReactElement | null;
|
|
1794
|
+
/** Custom empty state when there are no messages. */
|
|
1795
|
+
emptyState?: ReactElement | string;
|
|
1796
|
+
/**
|
|
1797
|
+
* The current user's id. When provided, MessageList will show a
|
|
1798
|
+
* "↓ N new messages" jump button at the bottom of the chat
|
|
1799
|
+
* whenever new messages from OTHER users arrive while the user is
|
|
1800
|
+
* scrolled away from the bottom. Tapping scrolls to the latest.
|
|
1801
|
+
*/
|
|
1802
|
+
meId?: string | null;
|
|
1803
|
+
/**
|
|
1804
|
+
* Scroll this message to the middle of the list (it must already be
|
|
1805
|
+
* in `messages`). Changing `scrollRequest` — e.g. a counter — scrolls
|
|
1806
|
+
* again to the same message.
|
|
1807
|
+
*/
|
|
1808
|
+
scrollToMessageId?: string | null;
|
|
1809
|
+
scrollRequest?: number;
|
|
1810
|
+
/**
|
|
1811
|
+
* The rows on screen changed: message ids and separator ids. Lets a
|
|
1812
|
+
* parent tell whether a row (e.g. the "New messages" line) was seen.
|
|
1813
|
+
*/
|
|
1814
|
+
onVisibleItemsChange?: (keys: string[]) => void;
|
|
1815
|
+
}
|
|
1816
|
+
/**
|
|
1817
|
+
* Inverted FlatList wrapper for chat history. Newest message at the
|
|
1818
|
+
* bottom (visually), oldest at the top. Calls `onLoadMore` when the
|
|
1819
|
+
* user scrolls near the top edge and `hasMore` is true.
|
|
1820
|
+
*
|
|
1821
|
+
* Pagination is owned by `useMessages` (hand it `messages` +
|
|
1822
|
+
* `hasMore` + `loadMore`); this component just renders + scrolls.
|
|
1823
|
+
*/
|
|
1824
|
+
declare function MessageList({ messages, items, loading, hasMore, onLoadMore, renderItem, ListHeader, ListFooter, emptyState, meId, scrollToMessageId, scrollRequest, onVisibleItemsChange, }: MessageListProps): react_jsx_runtime.JSX.Element;
|
|
1825
|
+
|
|
1826
|
+
interface DaySeparatorProps {
|
|
1827
|
+
label: string;
|
|
1828
|
+
/**
|
|
1829
|
+
* `'pill'` (default) — a centred chip, for bubbles. `'rule'` — a
|
|
1830
|
+
* hairline across the row with the chip on it, for the `list` and
|
|
1831
|
+
* `compact` layouts.
|
|
1832
|
+
*/
|
|
1833
|
+
variant?: 'pill' | 'rule';
|
|
1834
|
+
}
|
|
1835
|
+
/**
|
|
1836
|
+
* Centered date pill rendered between messages whose `inserted_at`
|
|
1837
|
+
* falls on a different calendar day from the previous message. Pair
|
|
1838
|
+
* with `formatDayLabel` from `@poolse/react` to compute the label
|
|
1839
|
+
* ("Today" / "Yesterday" / weekday / "26 May 2024").
|
|
1840
|
+
*/
|
|
1841
|
+
declare function DaySeparator({ label, variant }: DaySeparatorProps): react_jsx_runtime.JSX.Element;
|
|
1842
|
+
|
|
1843
|
+
interface TypingIndicatorProps {
|
|
1844
|
+
/** Set of `external_id`s currently typing — what `useTyping` returns. */
|
|
1845
|
+
typing: Set<string>;
|
|
1846
|
+
/**
|
|
1847
|
+
* Resolves an `external_id` to a display label. Defaults to the
|
|
1848
|
+
* SDK's `userResolver` (and falls back to the external_id itself
|
|
1849
|
+
* when the resolver isn't configured).
|
|
1850
|
+
*/
|
|
1851
|
+
labelFor?: (externalId: string) => string;
|
|
1852
|
+
}
|
|
1853
|
+
/**
|
|
1854
|
+
* Three animated dots + an inline "X is typing" label. Renders a
|
|
1855
|
+
* zero-height row when nobody is typing so the list doesn't jump.
|
|
1856
|
+
*/
|
|
1857
|
+
declare function TypingIndicator({ typing, labelFor }: TypingIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
1858
|
+
|
|
1859
|
+
interface ThreadViewProps {
|
|
1860
|
+
visible: boolean;
|
|
1861
|
+
onClose: () => void;
|
|
1862
|
+
conversationId: Uuid;
|
|
1863
|
+
rootMessage: Message;
|
|
1864
|
+
labelFor?: (externalId: string) => string;
|
|
1865
|
+
avatarFor?: (externalId: string) => string | null;
|
|
1866
|
+
/** Row layout for the root and replies — see `ChatLayout`. Defaults to `'bubbles'`. */
|
|
1867
|
+
layout?: ChatLayout;
|
|
1868
|
+
timeFormat?: TimeFormat;
|
|
1869
|
+
/** Row spacing for the root and replies, as on `ConversationView`. */
|
|
1870
|
+
density?: ChatDensity;
|
|
1871
|
+
/** Presence badges on reply avatars. Defaults to `false`. */
|
|
1872
|
+
showPresence?: boolean;
|
|
1873
|
+
/** Link previews under replies. Defaults to `true`. */
|
|
1874
|
+
linkPreviews?: boolean;
|
|
1875
|
+
/** A Follow / Following button in the header (MS19). Default `true`. */
|
|
1876
|
+
follow?: boolean;
|
|
1877
|
+
/** An "Also send to channel" switch above the composer (MS19). Default `true`; off in DMs. */
|
|
1878
|
+
alsoSendToChannel?: boolean;
|
|
1879
|
+
/** Passed through to the composer, as `ConversationView`'s `composerProps`. */
|
|
1880
|
+
composerProps?: ComposerPassThroughProps;
|
|
1881
|
+
/** Rendered above the composer. */
|
|
1882
|
+
composerAccessory?: ReactNode;
|
|
1883
|
+
/** The composer's handle, as `ConversationView`'s `composerHandle`. */
|
|
1884
|
+
composerHandle?: Ref<MessageComposerHandle>;
|
|
1885
|
+
/** Runs before every reply: return it (changed or not), or `false` to cancel. */
|
|
1886
|
+
beforeSend?: BeforeSend;
|
|
1887
|
+
/** The app's own entries in a reply's long-press menu. */
|
|
1888
|
+
extraActions?: (msg: Message) => readonly MessageExtraAction[];
|
|
1889
|
+
/** Asked before a reply is deleted. Defaults to a native "Delete message?" alert. */
|
|
1890
|
+
confirmDelete?: ConfirmDelete;
|
|
1891
|
+
}
|
|
1892
|
+
/**
|
|
1893
|
+
* Bottom-sheet modal for thread replies. Pull the drag handle / header
|
|
1894
|
+
* down to dismiss; tap the backdrop or close button too. The composer
|
|
1895
|
+
* inside the sheet supports attachments (paperclip → picker, shared
|
|
1896
|
+
* upload queue) and the reply rows support reactions, swipe-to-reply,
|
|
1897
|
+
* long-press actions, edit, delete — same surface as ConversationView.
|
|
1898
|
+
*
|
|
1899
|
+
* Keyboard handling: the modal is translucent (edge-to-edge) on both
|
|
1900
|
+
* platforms, so nothing resizes it for the keyboard — Android's
|
|
1901
|
+
* `adjustResize` doesn't reach an edge-to-edge window. The composer
|
|
1902
|
+
* needs its own `padding` KeyboardAvoidingView with
|
|
1903
|
+
* `keyboardVerticalOffset` = the distance from the screen top to the
|
|
1904
|
+
* sheet top (the gutter), since KAV measures its frame relative to
|
|
1905
|
+
* its parent (the sheet), not the screen.
|
|
1906
|
+
*/
|
|
1907
|
+
declare function ThreadView({ visible, onClose, conversationId, rootMessage, labelFor, avatarFor, layout, timeFormat, density, showPresence, linkPreviews, follow, alsoSendToChannel, ...hooks }: ThreadViewProps): react_jsx_runtime.JSX.Element;
|
|
1908
|
+
|
|
1909
|
+
interface ThreadSummaryProps {
|
|
1910
|
+
/** The thread's root: `reply_count`, `last_reply_at`, `thread_participants`. */
|
|
1911
|
+
message: Pick<Message, 'reply_count' | 'last_reply_at' | 'thread_participants'>;
|
|
1912
|
+
onPress: () => void;
|
|
1913
|
+
labelFor?: (externalId: string) => string;
|
|
1914
|
+
avatarFor?: (externalId: string) => string | null;
|
|
1915
|
+
/** Align to the right (under your own bubble). */
|
|
1916
|
+
alignEnd?: boolean;
|
|
1917
|
+
}
|
|
1918
|
+
/**
|
|
1919
|
+
* "3 replies · last reply 5m ago" with the last few repliers' avatars
|
|
1920
|
+
* stacked in front. Tap opens the thread. Draws nothing without replies.
|
|
1921
|
+
*/
|
|
1922
|
+
declare function ThreadSummary({ message, onPress, labelFor, avatarFor, alignEnd, }: ThreadSummaryProps): react_jsx_runtime.JSX.Element | null;
|
|
1923
|
+
|
|
1924
|
+
interface NewMessagesDividerProps {
|
|
1925
|
+
/** Defaults to "New messages". */
|
|
1926
|
+
label?: string;
|
|
1927
|
+
}
|
|
1928
|
+
/**
|
|
1929
|
+
* The line `<ConversationView>` draws above the first message you
|
|
1930
|
+
* hadn't read when the conversation opened. Full width, so it reads the
|
|
1931
|
+
* same in every layout.
|
|
1932
|
+
*/
|
|
1933
|
+
declare function NewMessagesDivider({ label }: NewMessagesDividerProps): react_jsx_runtime.JSX.Element;
|
|
1934
|
+
|
|
1935
|
+
interface EditHistorySheetProps {
|
|
1936
|
+
visible: boolean;
|
|
1937
|
+
onClose: () => void;
|
|
1938
|
+
messageId: Uuid;
|
|
1939
|
+
/** The text the message has now, shown on top as "Current". */
|
|
1940
|
+
currentBody?: string | null;
|
|
1941
|
+
/**
|
|
1942
|
+
* The server refused the history (403 — the workspace keeps it to
|
|
1943
|
+
* admins or the sender). The sheet closes itself.
|
|
1944
|
+
*/
|
|
1945
|
+
onForbidden?: () => void;
|
|
1946
|
+
}
|
|
1947
|
+
/**
|
|
1948
|
+
* Bottom sheet listing a message's earlier versions, newest first
|
|
1949
|
+
* (`chat.messages.edits(id)`). Opened from the "edited" label.
|
|
1950
|
+
*/
|
|
1951
|
+
declare function EditHistorySheet({ visible, onClose, messageId, currentBody, onForbidden, }: EditHistorySheetProps): react_jsx_runtime.JSX.Element;
|
|
1952
|
+
|
|
1953
|
+
interface UserNameProps {
|
|
1954
|
+
/** The user's external_id. Pass null to render the fallback. */
|
|
1955
|
+
externalId: string | null | undefined;
|
|
1956
|
+
/** Optional fallback when the resolver returns nothing. Defaults to the externalId itself. */
|
|
1957
|
+
fallback?: string;
|
|
1958
|
+
/** Caller-supplied label override; if it returns a string, it wins. */
|
|
1959
|
+
labelFor?: (externalId: string) => string;
|
|
1960
|
+
/** The Agent badge after an agent's name (AG1). Defaults to `true`. */
|
|
1961
|
+
agentBadge?: boolean;
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
* Display name for a user, looked up via the SDK's `userResolver`
|
|
1965
|
+
* with caller-overridable + fallback fallbacks. Renders a `<Text>`.
|
|
1966
|
+
*/
|
|
1967
|
+
declare function UserName({ externalId, fallback, labelFor, agentBadge }: UserNameProps): react_jsx_runtime.JSX.Element;
|
|
1968
|
+
/**
|
|
1969
|
+
* Resolves a user's display name via the 3-tier chain:
|
|
1970
|
+
* 1. `labelFor(externalId)` — caller-supplied override
|
|
1971
|
+
* 2. SDK `userResolver` (memoized via `useUser`)
|
|
1972
|
+
* 3. The externalId itself (so something always renders)
|
|
1973
|
+
*/
|
|
1974
|
+
declare function useDisplayName(externalId: string | null | undefined, labelFor?: (externalId: string) => string): string;
|
|
1975
|
+
|
|
1976
|
+
/** One section of `<ConversationList sections>`. */
|
|
1977
|
+
interface ConversationSection {
|
|
1978
|
+
title: string;
|
|
1979
|
+
/** Conversations this section holds. Each conversation goes to the first section that takes it. */
|
|
1980
|
+
filter: (conversation: Conversation) => boolean;
|
|
1981
|
+
}
|
|
1982
|
+
/** `<ConversationList groupBy>`: `'type'` → "Channels" (groups), then "Direct messages". */
|
|
1983
|
+
type ConversationGroupBy = 'type';
|
|
1984
|
+
|
|
1985
|
+
interface ConversationListProps {
|
|
1986
|
+
selectedId?: string | null;
|
|
1987
|
+
onSelect?: (conv: Conversation) => void;
|
|
1988
|
+
/** Optional override for each row's rendering. */
|
|
1989
|
+
renderItem?: (conv: Conversation, selected: boolean) => ReactNode;
|
|
1990
|
+
/**
|
|
1991
|
+
* What an empty list shows. Defaults to "No conversations yet" with a
|
|
1992
|
+
* hint at the next step.
|
|
1993
|
+
*/
|
|
1994
|
+
emptyState?: ReactNode | string;
|
|
1995
|
+
/** Show only conversations matching this text (a search field in `header`). */
|
|
1996
|
+
query?: string;
|
|
1997
|
+
/** What shows when `query` matches nothing. Receives the query. */
|
|
1998
|
+
noResultsState?: ReactNode | ((query: string) => ReactNode);
|
|
1999
|
+
/** Controlled-mode: skip `useConversations()` and render from these. */
|
|
2000
|
+
conversations?: Conversation[];
|
|
2001
|
+
loading?: boolean;
|
|
2002
|
+
error?: Error | null;
|
|
2003
|
+
/**
|
|
2004
|
+
* Controlled mode paging: more conversations exist. Uncontrolled, the
|
|
2005
|
+
* list pages through `useConversations()` itself.
|
|
2006
|
+
*/
|
|
2007
|
+
hasMore?: boolean;
|
|
2008
|
+
/** Controlled mode paging: a page is loading (a spinner shows at the end). */
|
|
2009
|
+
loadingMore?: boolean;
|
|
2010
|
+
/** Controlled mode paging: called near the end of the list while `hasMore`. */
|
|
2011
|
+
onLoadMore?: () => void;
|
|
2012
|
+
/** Per-conversation unread counts rendered as a Pulse Coral pill. */
|
|
2013
|
+
unreadCounts?: Record<Uuid, number>;
|
|
2014
|
+
/**
|
|
2015
|
+
* Explicit overrides for direct-chat names + avatars, keyed by the
|
|
2016
|
+
* OTHER member's external_id. When omitted, the row falls back to
|
|
2017
|
+
* `PoolseConfig.userResolver` and finally to the external_id.
|
|
2018
|
+
*/
|
|
2019
|
+
labelFor?: (externalId: string) => string;
|
|
2020
|
+
avatarFor?: (externalId: string) => string | null;
|
|
2021
|
+
/** Scrolls with the list, above the first row (a search field, a title). */
|
|
2022
|
+
header?: ReactElement | null;
|
|
2023
|
+
/**
|
|
2024
|
+
* Split the list into titled sections; each conversation goes to the
|
|
2025
|
+
* first section whose `filter` takes it, empty sections are hidden.
|
|
2026
|
+
* Overrides `groupBy`.
|
|
2027
|
+
*/
|
|
2028
|
+
sections?: ConversationSection[];
|
|
2029
|
+
/** `'type'` → "Channels" (groups), then "Direct messages". */
|
|
2030
|
+
groupBy?: ConversationGroupBy;
|
|
2031
|
+
/** `'comfortable'` (default) or `'compact'` rows (smaller avatar, one line). */
|
|
2032
|
+
density?: ChatDensity;
|
|
2033
|
+
/** Presence badges on direct chats' avatars. Defaults to `true`. */
|
|
2034
|
+
showPresence?: boolean;
|
|
2035
|
+
}
|
|
2036
|
+
declare function ConversationList({ selectedId, onSelect, renderItem, emptyState, query, noResultsState, conversations: controlled, loading: controlledLoading, error: controlledError, hasMore: controlledHasMore, loadingMore: controlledLoadingMore, onLoadMore, unreadCounts, labelFor, avatarFor, header, sections, groupBy, density, showPresence, }: ConversationListProps): react_jsx_runtime.JSX.Element;
|
|
2139
2037
|
|
|
2140
|
-
interface
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2038
|
+
interface MemberListProps {
|
|
2039
|
+
conversationId: Uuid;
|
|
2040
|
+
labelFor?: (externalId: string) => string;
|
|
2041
|
+
avatarFor?: (externalId: string) => string | null;
|
|
2042
|
+
onlineExternalIds?: Set<string>;
|
|
2043
|
+
canRemove?: (m: Membership) => boolean;
|
|
2044
|
+
renderItem?: (m: Membership) => ReactNode;
|
|
2045
|
+
emptyState?: ReactNode | string;
|
|
2046
|
+
/**
|
|
2047
|
+
* Presence badges on the avatars (online / away / in a call / do not
|
|
2048
|
+
* disturb, via `useUserPresence`). Defaults to `true`. With
|
|
2049
|
+
* `onlineExternalIds` given, those drive a plain online dot instead.
|
|
2050
|
+
*/
|
|
2051
|
+
showPresence?: boolean;
|
|
2052
|
+
}
|
|
2053
|
+
declare function MemberList({ conversationId, labelFor, avatarFor, onlineExternalIds, canRemove, renderItem, emptyState, showPresence, }: MemberListProps): react_jsx_runtime.JSX.Element;
|
|
2054
|
+
|
|
2055
|
+
interface PresenceBadgeProps {
|
|
2056
|
+
/** `online`, `away`, `in_call` or `offline` (draws nothing), as `useUserPresence` gives it. */
|
|
2057
|
+
state: PresenceState | null | undefined;
|
|
2058
|
+
/** Do not disturb: a moon instead of the online / away dot. */
|
|
2059
|
+
doNotDisturb?: boolean;
|
|
2060
|
+
/** Diameter in px. Defaults to 12. */
|
|
2144
2061
|
size?: number;
|
|
2145
|
-
/**
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
label?: string | null;
|
|
2062
|
+
/** The ring around the badge — the colour it sits on. Defaults to `colors.surface`. */
|
|
2063
|
+
ringColor?: string;
|
|
2064
|
+
style?: StyleProp<ViewStyle>;
|
|
2149
2065
|
}
|
|
2150
|
-
|
|
2066
|
+
/**
|
|
2067
|
+
* A presence dot: online = `success`, away = `warning`, in a call =
|
|
2068
|
+
* `accent` with a phone, do not disturb = a moon. Offline (or unknown)
|
|
2069
|
+
* draws nothing.
|
|
2070
|
+
*/
|
|
2071
|
+
declare function PresenceBadge({ state, doNotDisturb, size, ringColor, style, }: PresenceBadgeProps): react_jsx_runtime.JSX.Element | null;
|
|
2072
|
+
|
|
2073
|
+
interface AttachmentPreviewProps {
|
|
2074
|
+
attachment: Attachment;
|
|
2075
|
+
/** Optional tap handler. For images defaults to opening the source URL. */
|
|
2076
|
+
onPress?: () => void;
|
|
2077
|
+
/** Render at this max width. Defaults to 280. */
|
|
2078
|
+
maxWidth?: number;
|
|
2079
|
+
/**
|
|
2080
|
+
* `'onBrand'` restyles the file card for a brand-colored self
|
|
2081
|
+
* bubble — translucent white instead of surface grey, so the card
|
|
2082
|
+
* reads as part of the bubble rather than a patch cut out of it.
|
|
2083
|
+
*/
|
|
2084
|
+
tone?: 'default' | 'onBrand';
|
|
2085
|
+
}
|
|
2086
|
+
declare function AttachmentPreview({ attachment, onPress, maxWidth, tone, }: AttachmentPreviewProps): react_jsx_runtime.JSX.Element;
|
|
2087
|
+
|
|
2088
|
+
interface LinkPreviewCardProps {
|
|
2089
|
+
preview: LinkPreview;
|
|
2090
|
+
/** Shows a × on the card; the long-press sheet's "Remove preview" is the usual way. */
|
|
2091
|
+
onRemove?: () => void;
|
|
2092
|
+
/** Card width cap in px. Defaults to 320. */
|
|
2093
|
+
maxWidth?: number;
|
|
2094
|
+
/** `'onBrand'` for a card inside your own (accent-filled) bubble. */
|
|
2095
|
+
tone?: 'default' | 'onBrand';
|
|
2096
|
+
/** Long-press on the card — rows pass their actions sheet. */
|
|
2097
|
+
onLongPress?: () => void;
|
|
2098
|
+
}
|
|
2099
|
+
/**
|
|
2100
|
+
* A link's preview under the message text. `website`: the page's image,
|
|
2101
|
+
* site name with favicon, title and description. `image`: the picture
|
|
2102
|
+
* itself, inline. Tapping opens the link.
|
|
2103
|
+
*/
|
|
2104
|
+
declare function LinkPreviewCard({ preview, onRemove, maxWidth, tone, onLongPress, }: LinkPreviewCardProps): react_jsx_runtime.JSX.Element | null;
|
|
2105
|
+
|
|
2106
|
+
interface EmojiPickerProps {
|
|
2107
|
+
visible: boolean;
|
|
2108
|
+
onClose: () => void;
|
|
2109
|
+
/** An emoji was tapped. The picker closes unless `keepOpen`. */
|
|
2110
|
+
onPick: (emoji: string) => void;
|
|
2111
|
+
/** Stay open after a pick (the composer's picker, to type several). */
|
|
2112
|
+
keepOpen?: boolean;
|
|
2113
|
+
/** Heading. Defaults to "Pick an emoji". */
|
|
2114
|
+
title?: string;
|
|
2115
|
+
}
|
|
2116
|
+
/**
|
|
2117
|
+
* Bottom-sheet emoji picker with search, recently used and categories.
|
|
2118
|
+
* Built in and dependency-free: a compact set of common emoji, parsed
|
|
2119
|
+
* the first time a picker opens.
|
|
2120
|
+
*/
|
|
2121
|
+
declare function EmojiPicker({ visible, onClose, onPick, keepOpen, title, }: EmojiPickerProps): react_jsx_runtime.JSX.Element;
|
|
2122
|
+
|
|
2123
|
+
/**
|
|
2124
|
+
* Horizontal scrolling preview row of pending / in-flight / ready
|
|
2125
|
+
* uploads. Image attachments render as 64×64 thumbnails sourced from
|
|
2126
|
+
* the original local file URI; file attachments render as a row card
|
|
2127
|
+
* with icon + name + size. A small × overlay on each tile lets the
|
|
2128
|
+
* user drop the upload before send.
|
|
2129
|
+
*
|
|
2130
|
+
* Reads queue state from the shared `<UploadProvider>` (mounted by
|
|
2131
|
+
* `<ConversationView>`), so the composer's "ready attachment ids"
|
|
2132
|
+
* pickup and the strip's display always agree.
|
|
2133
|
+
*/
|
|
2134
|
+
declare function UploadQueueStrip(): react_jsx_runtime.JSX.Element | null;
|
|
2135
|
+
|
|
2136
|
+
interface ReactionStripProps {
|
|
2137
|
+
messageId: Uuid;
|
|
2138
|
+
conversationId: Uuid;
|
|
2139
|
+
meId: string | null;
|
|
2140
|
+
/** Seed map from a known message (e.g. `useMessages`). */
|
|
2141
|
+
initialReactions?: Record<string, Uuid[]>;
|
|
2142
|
+
/** A "+" chip after the reactions — open an emoji picker (see `<EmojiPicker>`). */
|
|
2143
|
+
onMorePress?: () => void;
|
|
2144
|
+
}
|
|
2145
|
+
declare function ReactionStrip({ messageId, conversationId, meId, initialReactions, onMorePress, }: ReactionStripProps): react_jsx_runtime.JSX.Element | null;
|
|
2146
|
+
interface ReactionPickerProps {
|
|
2147
|
+
visible: boolean;
|
|
2148
|
+
onClose: () => void;
|
|
2149
|
+
onPick: (emoji: string) => void;
|
|
2150
|
+
/** Override the default 6-emoji set. */
|
|
2151
|
+
emojis?: string[];
|
|
2152
|
+
}
|
|
2153
|
+
declare function ReactionPicker({ visible, onClose, onPick, emojis, }: ReactionPickerProps): react_jsx_runtime.JSX.Element;
|
|
2154
|
+
|
|
2155
|
+
interface MentionInputProps extends Omit<MessageComposerProps, 'onSend'> {
|
|
2156
|
+
conversationId: Uuid;
|
|
2157
|
+
/** Same callback as MessageComposer.onSend, plus the mentioned user_ids. */
|
|
2158
|
+
onSend: (body: string, opts?: ComposerSendOptions & {
|
|
2159
|
+
mentions?: Uuid[];
|
|
2160
|
+
}) => Promise<unknown> | void;
|
|
2161
|
+
/** Most suggestions shown at once. Defaults to 6. */
|
|
2162
|
+
maxSuggestions?: number;
|
|
2163
|
+
/**
|
|
2164
|
+
* User groups to offer after matching members (MS9): `@design`,
|
|
2165
|
+
* `@oncall`. Picking one inserts `@handle`; the Workspace expands it
|
|
2166
|
+
* when the message arrives, so nothing extra is sent.
|
|
2167
|
+
*/
|
|
2168
|
+
groups?: readonly MentionGroup[];
|
|
2169
|
+
}
|
|
2170
|
+
/**
|
|
2171
|
+
* Composer with @-mentions: typing `@` (at the start or after a space)
|
|
2172
|
+
* shows matching conversation members above the input, filtered by
|
|
2173
|
+
* name or id as you type. Picking one inserts `@Name ` and the send
|
|
2174
|
+
* carries their user id in `mentions` — for as long as `@Name` is
|
|
2175
|
+
* still in the text.
|
|
2176
|
+
*/
|
|
2177
|
+
declare const MentionInput: react.ForwardRefExoticComponent<MentionInputProps & react.RefAttributes<MessageComposerHandle>>;
|
|
2178
|
+
|
|
2179
|
+
interface AttachmentPickerProps {
|
|
2180
|
+
visible: boolean;
|
|
2181
|
+
onClose: () => void;
|
|
2182
|
+
/**
|
|
2183
|
+
* Optional adapter that produces upload inputs from a picked file.
|
|
2184
|
+
* Override to plug in custom storage / transcoding. Default reads
|
|
2185
|
+
* from `expo-image-picker` / `expo-document-picker`.
|
|
2186
|
+
*/
|
|
2187
|
+
onPickInputs?: (kind: 'image' | 'document' | 'camera') => Promise<{
|
|
2188
|
+
body: {
|
|
2189
|
+
uri: string;
|
|
2190
|
+
name: string;
|
|
2191
|
+
type: string;
|
|
2192
|
+
} | Blob | unknown;
|
|
2193
|
+
contentType: string;
|
|
2194
|
+
byteSize: number;
|
|
2195
|
+
filename?: string;
|
|
2196
|
+
}[]>;
|
|
2197
|
+
/**
|
|
2198
|
+
* Show the Camera item alongside Photo and File. Defaults true.
|
|
2199
|
+
* Disable if your app explicitly doesn't want camera access (some
|
|
2200
|
+
* App Store reviewers require an explicit usage description even
|
|
2201
|
+
* for the picker entry). Add `NSCameraUsageDescription` to your
|
|
2202
|
+
* iOS Info.plist when leaving this on.
|
|
2203
|
+
*/
|
|
2204
|
+
camera?: boolean;
|
|
2205
|
+
/** Largest file accepted, in bytes (checked after image compression). */
|
|
2206
|
+
maxFileSize?: number;
|
|
2207
|
+
/** Accepted types: MIME types, wildcards (`'image/*'`) or extensions (`'.pdf'`). */
|
|
2208
|
+
acceptedTypes?: string[];
|
|
2209
|
+
/**
|
|
2210
|
+
* A picked file was refused (too large, a type not accepted) or the
|
|
2211
|
+
* picker failed (e.g. camera permission denied). Receives a sentence
|
|
2212
|
+
* to show; `<ConversationView>` shows it above the composer.
|
|
2213
|
+
*/
|
|
2214
|
+
onError?: (message: string) => void;
|
|
2215
|
+
/** Pick several photos at once from the library. Defaults to true. */
|
|
2216
|
+
multiple?: boolean;
|
|
2217
|
+
}
|
|
2218
|
+
/**
|
|
2219
|
+
* Picker sheet wrapping `expo-image-picker` and `expo-document-picker`.
|
|
2220
|
+
* Both must be installed (`npx expo install expo-image-picker
|
|
2221
|
+
* expo-document-picker`) when this component is mounted — they're
|
|
2222
|
+
* declared as optional peers because consumers who pass
|
|
2223
|
+
* `attachments={false}` to ConversationView never render this file.
|
|
2224
|
+
*/
|
|
2225
|
+
declare function AttachmentPicker({ visible, onClose, onPickInputs, camera, maxFileSize, acceptedTypes, onError, multiple, }: AttachmentPickerProps): react_jsx_runtime.JSX.Element;
|
|
2226
|
+
|
|
2227
|
+
interface ImageMosaicProps {
|
|
2228
|
+
images: Attachment[];
|
|
2229
|
+
/**
|
|
2230
|
+
* Pixel ceiling on the mosaic's width. The mosaic itself fills its
|
|
2231
|
+
* parent (`width: '100%'`) and caps at this value, so it always
|
|
2232
|
+
* fits inside whatever the bubble's actual content area is at
|
|
2233
|
+
* render time — no more hardcoded 280px overflowing on small
|
|
2234
|
+
* screens or inside narrow bubbles.
|
|
2235
|
+
*/
|
|
2236
|
+
maxWidth?: number;
|
|
2237
|
+
radius?: number;
|
|
2238
|
+
/**
|
|
2239
|
+
* Square off the bottom corners (a small 5px instead of `radius`).
|
|
2240
|
+
* Pass when a caption or file cards follow the mosaic, so the media
|
|
2241
|
+
* flows into the text block instead of leaving "ears" of bubble
|
|
2242
|
+
* color between the image and the caption.
|
|
2243
|
+
*/
|
|
2244
|
+
squareBottom?: boolean;
|
|
2245
|
+
/**
|
|
2246
|
+
* Long-press on any tile. The tiles are Pressables (tap opens the
|
|
2247
|
+
* viewer), and a nested Pressable wins the gesture — so without
|
|
2248
|
+
* this, holding an image-only message never reached the row's
|
|
2249
|
+
* actions sheet. MessageRow threads its long-press down through
|
|
2250
|
+
* here.
|
|
2251
|
+
*/
|
|
2252
|
+
onLongPress?: () => void;
|
|
2253
|
+
}
|
|
2254
|
+
/**
|
|
2255
|
+
* WhatsApp-style multi-image grid for inside the message bubble.
|
|
2256
|
+
* Uses flex-based widths (with `%` and `aspectRatio`) so the layout
|
|
2257
|
+
* scales to whatever the bubble's content area is — no fixed pixel
|
|
2258
|
+
* positioning that can overflow when the bubble is narrower than
|
|
2259
|
+
* the configured max.
|
|
2260
|
+
*
|
|
2261
|
+
* * n = 1 → single tile, 16:10 aspect.
|
|
2262
|
+
* * n = 2 → row of 2 squares.
|
|
2263
|
+
* * n = 3 → 16:9 hero on top + row of 2 squares below.
|
|
2264
|
+
* * n ≥ 4 → 2×2 grid with "+N more" overlay on the 4th tile.
|
|
2265
|
+
*/
|
|
2266
|
+
declare function ImageMosaic({ images, maxWidth, radius, squareBottom, onLongPress, }: ImageMosaicProps): react_jsx_runtime.JSX.Element | null;
|
|
2151
2267
|
|
|
2152
2268
|
type PoolseLogoVariant = 'lockup' | 'mark' | 'wordmark' | 'mono';
|
|
2153
2269
|
interface PoolseLogoProps {
|
|
@@ -2161,7 +2277,7 @@ interface PoolseLogoProps {
|
|
|
2161
2277
|
declare function PoolseLogo({ variant, size, color, label }: PoolseLogoProps): react_jsx_runtime.JSX.Element;
|
|
2162
2278
|
|
|
2163
2279
|
interface AvatarProps {
|
|
2164
|
-
/** URL to a profile image. Falls back to initials when omitted. */
|
|
2280
|
+
/** URL to a profile image. Falls back to initials when omitted or it fails to load. */
|
|
2165
2281
|
src?: string | null;
|
|
2166
2282
|
/** Used for initials. */
|
|
2167
2283
|
name?: string | null;
|
|
@@ -2733,4 +2849,4 @@ declare function formatBytes(n: number): string;
|
|
|
2733
2849
|
/** The note id in a Workspace note link, or `null`. */
|
|
2734
2850
|
declare function noteIdFromLink(url: string): string | null;
|
|
2735
2851
|
|
|
2736
|
-
export { AgendaPanel, type AgendaPanelProps, AgentBadge, AgentBadgeInline, type AgentBadgeProps, AnnotationOverlay, type AnnotationOverlayProps, ApprovalCard, type ApprovalCardProps, ApprovalList, type ApprovalListProps, AskMeetings, type AskMeetingsProps, AttachmentPicker, type AttachmentPickerProps, AttachmentPreview, type AttachmentPreviewProps, type AudioRecorderAdapter, type AudioRoute, type AudioRouteKind, AudioRouteSheet, type AudioRouteSheetProps, Avatar, type AvatarProps, type BackgroundClientsOptions, BlockRenderer, type BlockRendererProps, BreakoutBanner, type BreakoutBannerProps, CallAgentTag, type CallAgentTagProps, CallAvatar, type CallAvatarProps, CallControlButton, type CallControlButtonProps, CallLogRow, type CallLogRowProps, type CaptionLine, CaptionsOverlay, type CaptionsOverlayProps, CatchUpCard, type CatchUpCardProps, type ChatDensity, ChatHeader, type ChatHeaderProps, type ChatLayout, ClipPlayer, type ClipPlayerProps, CommandSuggestions, type ComposerSendOptions, ConnectionIndicator, type ConnectionIndicatorProps, ConsentPrompt, type ConsentPromptProps, type ConversationDraft, type ConversationGroupBy, ConversationList, type ConversationListProps, type ConversationSection, ConversationView, type ConversationViewProps, DaySeparator, type DaySeparatorProps, DlpWarningSheet, type DlpWarningSheetProps, type DraftStorage, EditHistorySheet, type EditHistorySheetProps, EmojiGlyph, EmojiPicker, type EmojiPickerProps, EmptyState, type EmptyStateProps, EscalationCard, type EscalationCardProps, EscalationList, type EscalationListProps, FilesList, type FilesListProps, FormattingToolbar, type FormattingToolbarProps, type ForumPost, ForumPostList, type ForumPostListProps, ForwardSheet, type ForwardSheetProps, type ForwardTarget, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, ImageMosaic, type ImageMosaicProps, type InboxUser, InviteAgentMenu, type InviteAgentMenuProps, LinkPreviewCard, type LinkPreviewCardProps, LiveCallBanner, type LiveCallBannerProps, LiveTranscriptPanel, type LiveTranscriptPanelProps, LobbyAdmitList, type LobbyAdmitListProps, LobbyWaiting, type LobbyWaitingProps, MarkMomentButton, type MarkMomentButtonProps, type MediaPlayback, MeetingCard, MeetingCardMessageRow, type MeetingCardMessageRowProps, type MeetingCardProps, type MeetingParticipant, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageApproval, type MessageApprovalProps, MessageBubble, type MessageBubbleProps, MessageCitations, type MessageCitationsProps, MessageComposer, type MessageComposerHandle, type MessageComposerProps, type MessageExtrasHandlers, MessageExtrasProvider, MessageList, type MessageListItem, type MessageListProps, MessageRow, type MessageRowProps, type MessageSlot, type MessageSlotProps, type MessageSlots, type MessageUser, NetworkBanner, type NetworkBannerProps, NewMessagesDivider, type NewMessagesDividerProps, NoteCard, type NoteCardProps, PinsList, type PinsListProps, PollCard, type PollCardProps, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, type PoolseMediaProps, type PoolseRNTheme, type PoolseRNThemeOverrides, PoolseTheme, type PoolseThemeProps, PresenceBadge, type PresenceBadgeProps, primitives as Primitives, QuestionsPanel, type QuestionsPanelProps, ReactionPicker, ReactionPickerBar, type ReactionPickerBarProps, type ReactionPickerProps, ReactionStrip, type ReactionStripProps, ReactionsOverlay, type ReactionsOverlayProps, RecordingBanner, type RecordingBannerProps, RecordingIndicator, type RecordingIndicatorProps, RecordingNoticeRow, type RecordingNoticeRowProps, RecordingPlayer, type RecordingPlayerHandle, type RecordingPlayerProps, type RenderMedia, type RenderMessageContext, RoomPresence, type RoomPresenceProps, SendStatus, type SendStatusProps, StagePanel, type StagePanelProps, SummaryCard, type SummaryCardProps, SummaryMessageRow, type SummaryMessageRowProps, type ThemeColors, type ThemeRadii, type ThemeShadows, type ThemeSpacing, type ThemeType, ThreadSummary, type ThreadSummaryProps, ThreadView, type ThreadViewProps, type TimeFormat, TranscriptViewer, type TranscriptViewerProps, TranslatedText, type TranslatedTextProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, UserName, type UserNameProps, VideoMessagePlayer, type VideoMessagePlayerProps, VoiceMessagePlayer, type VoiceMessagePlayerProps, VoiceRecorder, type VoiceRecorderProps, WhisperPanel, type WhisperPanelProps, WhiteboardView, type WhiteboardViewProps, applyBackground, avatarOverflow, callColors, captionLines, defaultDarkTheme, defaultLightTheme, formatBytes, formatCountdown, meetingTimeText, noteIdFromLink, overrunText, rsvpSummary, stripMarkdown, useAppStateLifecycle, useAppStatePresence, useBackgroundClients, useCallDuration, useDisplayName, useMessageExtras, usePoolseTheme, useTheme };
|
|
2852
|
+
export { AgendaPanel, type AgendaPanelProps, AgentBadge, AgentBadgeInline, type AgentBadgeProps, AnnotationOverlay, type AnnotationOverlayProps, ApprovalCard, type ApprovalCardProps, ApprovalList, type ApprovalListProps, AskMeetings, type AskMeetingsProps, AttachmentPicker, type AttachmentPickerProps, AttachmentPreview, type AttachmentPreviewProps, type AudioRecorderAdapter, type AudioRoute, type AudioRouteKind, AudioRouteSheet, type AudioRouteSheetProps, Avatar, type AvatarProps, type BackgroundClientsOptions, type BeforeSend, BlockRenderer, type BlockRendererProps, BreakoutBanner, type BreakoutBannerProps, CallAgentTag, type CallAgentTagProps, CallAvatar, type CallAvatarProps, CallControlButton, type CallControlButtonProps, CallLogRow, type CallLogRowProps, type CaptionLine, CaptionsOverlay, type CaptionsOverlayProps, CatchUpCard, type CatchUpCardProps, type ChatDensity, ChatHeader, type ChatHeaderProps, type ChatLayout, ClipPlayer, type ClipPlayerProps, CommandSuggestions, type ComposerPassThroughProps, type ComposerSendOptions, type ConfirmDelete, ConnectionIndicator, type ConnectionIndicatorProps, ConsentPrompt, type ConsentPromptProps, type ConversationDraft, type ConversationGroupBy, ConversationList, type ConversationListProps, type ConversationSection, ConversationView, type ConversationViewProps, DaySeparator, type DaySeparatorProps, DlpWarningSheet, type DlpWarningSheetProps, type DraftStorage, EditHistorySheet, type EditHistorySheetProps, EmojiGlyph, EmojiPicker, type EmojiPickerProps, EmptyState, type EmptyStateProps, EscalationCard, type EscalationCardProps, EscalationList, type EscalationListProps, FilesList, type FilesListProps, FormattingToolbar, type FormattingToolbarProps, type ForumPost, ForumPostList, type ForumPostListProps, ForwardSheet, type ForwardSheetProps, type ForwardTarget, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, ImageMosaic, type ImageMosaicProps, type InboxUser, InviteAgentMenu, type InviteAgentMenuProps, LinkPreviewCard, type LinkPreviewCardProps, LiveCallBanner, type LiveCallBannerProps, LiveTranscriptPanel, type LiveTranscriptPanelProps, LobbyAdmitList, type LobbyAdmitListProps, LobbyWaiting, type LobbyWaitingProps, MarkMomentButton, type MarkMomentButtonProps, type MediaPlayback, MeetingCard, MeetingCardMessageRow, type MeetingCardMessageRowProps, type MeetingCardProps, type MeetingParticipant, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageApproval, type MessageApprovalProps, MessageBubble, type MessageBubbleProps, MessageCitations, type MessageCitationsProps, MessageComposer, type MessageComposerHandle, type MessageComposerProps, type MessageExtraAction, type MessageExtrasHandlers, MessageExtrasProvider, MessageList, type MessageListItem, type MessageListProps, MessageRow, type MessageRowProps, type MessageSlot, type MessageSlotProps, type MessageSlots, type MessageUser, NetworkBanner, type NetworkBannerProps, NewMessagesDivider, type NewMessagesDividerProps, NoteCard, type NoteCardProps, PinsList, type PinsListProps, PollCard, type PollCardProps, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, type PoolseMediaProps, type PoolseRNTheme, type PoolseRNThemeOverrides, PoolseTheme, type PoolseThemeProps, PresenceBadge, type PresenceBadgeProps, primitives as Primitives, QuestionsPanel, type QuestionsPanelProps, ReactionPicker, ReactionPickerBar, type ReactionPickerBarProps, type ReactionPickerProps, ReactionStrip, type ReactionStripProps, ReactionsOverlay, type ReactionsOverlayProps, RecordingBanner, type RecordingBannerProps, RecordingIndicator, type RecordingIndicatorProps, RecordingNoticeRow, type RecordingNoticeRowProps, RecordingPlayer, type RecordingPlayerHandle, type RecordingPlayerProps, type RenderMedia, type RenderMessageContext, RoomPresence, type RoomPresenceProps, SendStatus, type SendStatusProps, StagePanel, type StagePanelProps, SummaryCard, type SummaryCardProps, SummaryMessageRow, type SummaryMessageRowProps, type ThemeColors, type ThemeRadii, type ThemeShadows, type ThemeSpacing, type ThemeType, ThreadSummary, type ThreadSummaryProps, ThreadView, type ThreadViewProps, type TimeFormat, TranscriptViewer, type TranscriptViewerProps, TranslatedText, type TranslatedTextProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, type UseNativeBreakouts, type UseNativeBreakoutsOptions, UserName, type UserNameProps, VideoMessagePlayer, type VideoMessagePlayerProps, VoiceMessagePlayer, type VoiceMessagePlayerProps, VoiceRecorder, type VoiceRecorderProps, WhisperPanel, type WhisperPanelProps, WhiteboardView, type WhiteboardViewProps, applyBackground, avatarOverflow, callColors, captionLines, defaultDarkTheme, defaultLightTheme, formatBytes, formatCountdown, meetingTimeText, noteIdFromLink, overrunText, rsvpSummary, stripMarkdown, useAppStateLifecycle, useAppStatePresence, useBackgroundClients, useCallDuration, useDisplayName, useMessageExtras, useNativeBreakouts, usePoolseTheme, useTheme };
|