@poolse/react-ui 3.8.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +39 -1
- package/dist/index.cjs +593 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +133 -3
- package/dist/index.d.ts +133 -3
- package/dist/index.js +589 -7
- package/dist/index.js.map +1 -1
- package/dist/styles.css +464 -0
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { CallParticipant, CallDevice, CallDeviceKind, Message, Poolse, Uuid, LiveCall, Conversation, PresenceState, Presence, Membership, Attachment, LinkPreview, MessageCreateRequest } from '@poolse/sdk';
|
|
2
|
+
import { CallParticipant, CallDevice, CallDeviceKind, Message, Poolse, Uuid, LiveCall, Conversation, RecordingMode, ConsentDecision, PresenceState, Presence, Membership, Attachment, LinkPreview, MessageCreateRequest } from '@poolse/sdk';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { SVGProps, ReactElement, ReactNode, CSSProperties } from 'react';
|
|
5
5
|
import { GroupPosition, UseRoom, UploadItem, ReactionMap } from '@poolse/react';
|
|
@@ -1030,6 +1030,14 @@ interface RoomStageProps {
|
|
|
1030
1030
|
title?: string;
|
|
1031
1031
|
labelFor?: (userId: string) => string;
|
|
1032
1032
|
className?: string;
|
|
1033
|
+
/**
|
|
1034
|
+
* Show recording and transcript state: the banner, and the consent
|
|
1035
|
+
* prompt for anyone who hasn't accepted (late joiners too). Defaults
|
|
1036
|
+
* to true.
|
|
1037
|
+
*/
|
|
1038
|
+
capture?: boolean;
|
|
1039
|
+
/** A Record / Stop recording control in the bar, where the server can record. Defaults to false. */
|
|
1040
|
+
allowRecord?: boolean;
|
|
1033
1041
|
}
|
|
1034
1042
|
/**
|
|
1035
1043
|
* The room you are in: everyone's video (or their initial while their
|
|
@@ -1038,7 +1046,129 @@ interface RoomStageProps {
|
|
|
1038
1046
|
* screen sharing where the browser and the workspace allow it, and Leave. Fills its container: give it the
|
|
1039
1047
|
* space your layout has for the stage.
|
|
1040
1048
|
*/
|
|
1041
|
-
declare function RoomStage({ room, title, labelFor, className }: RoomStageProps): react_jsx_runtime.JSX.Element;
|
|
1049
|
+
declare function RoomStage({ room, title, labelFor, className, capture, allowRecord, }: RoomStageProps): react_jsx_runtime.JSX.Element;
|
|
1050
|
+
|
|
1051
|
+
interface RecordingBannerProps {
|
|
1052
|
+
/** A recording is running. */
|
|
1053
|
+
recording: boolean;
|
|
1054
|
+
/** A live transcript is running. */
|
|
1055
|
+
transcribing?: boolean;
|
|
1056
|
+
mode?: RecordingMode | null;
|
|
1057
|
+
/** Capture needs consent here (`useRecording().consentRequired`). */
|
|
1058
|
+
consentRequired?: boolean;
|
|
1059
|
+
/** Your answer (`useRecording().myConsent`). `declined` shows "listen-only" and a way to change it. */
|
|
1060
|
+
myConsent?: ConsentDecision | null;
|
|
1061
|
+
/** Shows a Stop button (for whoever may stop it). */
|
|
1062
|
+
onStop?: () => void;
|
|
1063
|
+
/** After declining: reopen the prompt. */
|
|
1064
|
+
onChangeConsent?: () => void;
|
|
1065
|
+
/** Disable the buttons (a request is in flight). */
|
|
1066
|
+
pending?: boolean;
|
|
1067
|
+
className?: string;
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* "● Recording · Everyone in the call is told [Stop]" — a strip across
|
|
1071
|
+
* a captured call, for everyone in it (late joiners too: it reads the
|
|
1072
|
+
* call snapshot). Renders nothing while nothing is captured.
|
|
1073
|
+
*/
|
|
1074
|
+
declare function RecordingBanner({ recording, transcribing, mode, consentRequired, myConsent, onStop, onChangeConsent, pending, className, }: RecordingBannerProps): react_jsx_runtime.JSX.Element | null;
|
|
1075
|
+
interface RecordingIndicatorProps {
|
|
1076
|
+
recording: boolean;
|
|
1077
|
+
transcribing?: boolean;
|
|
1078
|
+
mode?: RecordingMode | null;
|
|
1079
|
+
className?: string;
|
|
1080
|
+
}
|
|
1081
|
+
/** A small "● REC" pill for a call header or tile. Nothing while nothing is captured. */
|
|
1082
|
+
declare function RecordingIndicator({ recording, transcribing, mode, className, }: RecordingIndicatorProps): react_jsx_runtime.JSX.Element | null;
|
|
1083
|
+
interface ConsentPromptProps {
|
|
1084
|
+
/** A recording is running. */
|
|
1085
|
+
recording: boolean;
|
|
1086
|
+
/** A live transcript is running. */
|
|
1087
|
+
transcribing?: boolean;
|
|
1088
|
+
mode?: RecordingMode | null;
|
|
1089
|
+
/** Who started it, if known ("Elena started recording"). Never pass a raw id. */
|
|
1090
|
+
startedByName?: string | null;
|
|
1091
|
+
/** Answer (e.g. `useRecording().consent`). A `false` result keeps the prompt open with an error. */
|
|
1092
|
+
onAnswer: (decision: ConsentDecision) => Promise<boolean | void> | boolean | void;
|
|
1093
|
+
/**
|
|
1094
|
+
* Called once an accept went through: publishing is allowed again, so
|
|
1095
|
+
* bring your microphone and camera back (`useCallRoom().republish`;
|
|
1096
|
+
* `CallRoom` does it by itself unless `republishOnPermission: false`).
|
|
1097
|
+
*/
|
|
1098
|
+
onAccepted?: () => void;
|
|
1099
|
+
/** Called after a decline went through (e.g. close the prompt). */
|
|
1100
|
+
onDeclined?: () => void;
|
|
1101
|
+
/** Disable the buttons (a request is in flight). */
|
|
1102
|
+
pending?: boolean;
|
|
1103
|
+
/** An error to show under the buttons. */
|
|
1104
|
+
error?: string | null;
|
|
1105
|
+
/** Fill the nearest positioned ancestor with a scrim. Defaults to true; false renders the card only. */
|
|
1106
|
+
overlay?: boolean;
|
|
1107
|
+
className?: string;
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* Asks someone in a captured call for consent — shown to anyone who
|
|
1111
|
+
* hasn't accepted, late joiners included, when the room requires it.
|
|
1112
|
+
* Until they agree their microphone and camera stay off; they still
|
|
1113
|
+
* hear and see everyone. Declining keeps them listen-only.
|
|
1114
|
+
*/
|
|
1115
|
+
declare function ConsentPrompt({ recording, transcribing, mode, startedByName, onAnswer, onAccepted, onDeclined, pending, error, overlay, className, }: ConsentPromptProps): react_jsx_runtime.JSX.Element;
|
|
1116
|
+
interface RecordingNoticeRowProps {
|
|
1117
|
+
/** The recording notice message. Rows that aren't one render nothing. */
|
|
1118
|
+
msg: Pick<Message, 'type' | 'body' | 'inserted_at'> & {
|
|
1119
|
+
deleted_at?: string | null;
|
|
1120
|
+
};
|
|
1121
|
+
/** Current user's id — "by you". */
|
|
1122
|
+
meId: string | null;
|
|
1123
|
+
/** A poolse user id → display name. Unknown: the name is left out. */
|
|
1124
|
+
nameFor?: (userId: Uuid) => string | null | undefined;
|
|
1125
|
+
}
|
|
1126
|
+
/**
|
|
1127
|
+
* "● Recording started · by Elena · 10:04" — the chat line the server
|
|
1128
|
+
* posts when a recording starts or stops, the notice for anyone who
|
|
1129
|
+
* comes later. `<MessageRow>` renders it for you.
|
|
1130
|
+
*/
|
|
1131
|
+
declare function RecordingNoticeRow({ msg, meId, nameFor }: RecordingNoticeRowProps): react_jsx_runtime.JSX.Element | null;
|
|
1132
|
+
|
|
1133
|
+
interface LiveTranscriptPanelProps {
|
|
1134
|
+
/** The call. Null renders an empty panel. */
|
|
1135
|
+
callId: string | null;
|
|
1136
|
+
/** Keep the transcript topic open. Defaults to true; false while the panel is hidden. */
|
|
1137
|
+
enabled?: boolean;
|
|
1138
|
+
/** Start / Stop transcription buttons (someone in the call). Defaults to true. */
|
|
1139
|
+
showControls?: boolean;
|
|
1140
|
+
/** Shows a close button. */
|
|
1141
|
+
onClose?: () => void;
|
|
1142
|
+
title?: string;
|
|
1143
|
+
className?: string;
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* The call's live transcript as it is spoken: speaker, time and text,
|
|
1147
|
+
* the current speaker's words in grey until they are final. Opens the
|
|
1148
|
+
* transcript topic while mounted (the last 200 lines arrive at once)
|
|
1149
|
+
* and sticks to the bottom unless you scroll up.
|
|
1150
|
+
*/
|
|
1151
|
+
declare function LiveTranscriptPanel({ callId, enabled, showControls, onClose, title, className, }: LiveTranscriptPanelProps): react_jsx_runtime.JSX.Element;
|
|
1152
|
+
interface TranscriptViewerProps {
|
|
1153
|
+
/** The call whose stored transcript to show. */
|
|
1154
|
+
callId: string | null;
|
|
1155
|
+
/**
|
|
1156
|
+
* Offer speaker renames. Defaults to true; the server allows it for
|
|
1157
|
+
* people who took part in the call and the conversation's owners and
|
|
1158
|
+
* admins, and anyone else gets an explanation instead.
|
|
1159
|
+
*/
|
|
1160
|
+
canRename?: boolean;
|
|
1161
|
+
/** Makes timestamps buttons, e.g. to seek a recording (ms since the transcript started). */
|
|
1162
|
+
onSeek?: (ms: number) => void;
|
|
1163
|
+
title?: string;
|
|
1164
|
+
className?: string;
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* A call's stored transcript: who spoke, when, and what they said;
|
|
1168
|
+
* search within it; and correct a speaker's name (everyone viewing sees
|
|
1169
|
+
* the change at once).
|
|
1170
|
+
*/
|
|
1171
|
+
declare function TranscriptViewer({ callId, canRename, onSeek, title, className, }: TranscriptViewerProps): react_jsx_runtime.JSX.Element | null;
|
|
1042
1172
|
|
|
1043
1173
|
interface EditedLabelProps {
|
|
1044
1174
|
messageId: Uuid;
|
|
@@ -1651,4 +1781,4 @@ declare function usePoolseFonts(enabled?: boolean): void;
|
|
|
1651
1781
|
*/
|
|
1652
1782
|
declare function PoolseFonts(): null;
|
|
1653
1783
|
|
|
1654
|
-
export { AttachmentPreview, type AttachmentPreviewProps, Avatar, type AvatarProps, CallControlButton, type CallControlButtonProps, CallDeviceMenu, type CallDeviceMenuProps, CallLogRow, type CallLogRowProps, CallVideoGrid, type CallVideoGridProps, type ChatDensity, ChatHeader, type ChatHeaderProps, type ChatLayout, type ComposerKeymap, type ConversationDraft, ConversationList, type ConversationListProps, type ConversationListSection, ConversationView, type ConversationViewProps, DEFAULT_KEYMAP, DraftScope, type DraftStorage, EditableMessageBubble, type EditableMessageBubbleProps, EditedLabel, type EditedLabelProps, EmojiPicker, type EmojiPickerProps, EmptyState, type EmptyStateProps, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, type InboxUser, type KeyBinding, LinkPreviewCard, type LinkPreviewCardProps, LiveCallBanner, type LiveCallBannerProps, MOD_ENTER_COMPOSER, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, type MessageListKeymap, type MessageSlot, type MessageSlotProps, type MessageSlots, type MessageUser, PoolseFonts, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, type PoolseKeymap, type PoolseKeymapOverrides, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, PoolseTheme, type PoolseThemeProps, type PoolseThemeValue, PresenceBadge, type PresenceBadgeProps, ReactionPicker, ReactionStrip, type ReactionStripProps, type RenderMessageContext, RoomJoinBar, type RoomJoinBarProps, RoomStage, type RoomStageProps, SendStatus, type SendStatusProps, ThreadSummary, type ThreadSummaryProps, ThreadView, type ThreadViewProps, type TimeFormat, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, type UploadQueueStripProps, UserName, type UserNameProps, UserPickerSheet, type UserPickerSheetProps, draftsOf, formatRelativeTime, loadEmojiData, localDraftStorage, matchesAny, matchesKey, presenceStateLabel, presenceText, resolveKeymap, useDisplayName, useEditHistory, usePoolseFonts, useSystemColorScheme, useTheme };
|
|
1784
|
+
export { AttachmentPreview, type AttachmentPreviewProps, Avatar, type AvatarProps, CallControlButton, type CallControlButtonProps, CallDeviceMenu, type CallDeviceMenuProps, CallLogRow, type CallLogRowProps, CallVideoGrid, type CallVideoGridProps, type ChatDensity, ChatHeader, type ChatHeaderProps, type ChatLayout, type ComposerKeymap, ConsentPrompt, type ConsentPromptProps, type ConversationDraft, ConversationList, type ConversationListProps, type ConversationListSection, ConversationView, type ConversationViewProps, DEFAULT_KEYMAP, DraftScope, type DraftStorage, EditableMessageBubble, type EditableMessageBubbleProps, EditedLabel, type EditedLabelProps, EmojiPicker, type EmojiPickerProps, EmptyState, type EmptyStateProps, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, type InboxUser, type KeyBinding, LinkPreviewCard, type LinkPreviewCardProps, LiveCallBanner, type LiveCallBannerProps, LiveTranscriptPanel, type LiveTranscriptPanelProps, MOD_ENTER_COMPOSER, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, type MessageListKeymap, type MessageSlot, type MessageSlotProps, type MessageSlots, type MessageUser, PoolseFonts, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, type PoolseKeymap, type PoolseKeymapOverrides, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, PoolseTheme, type PoolseThemeProps, type PoolseThemeValue, PresenceBadge, type PresenceBadgeProps, ReactionPicker, ReactionStrip, type ReactionStripProps, RecordingBanner, type RecordingBannerProps, RecordingIndicator, type RecordingIndicatorProps, RecordingNoticeRow, type RecordingNoticeRowProps, type RenderMessageContext, RoomJoinBar, type RoomJoinBarProps, RoomStage, type RoomStageProps, SendStatus, type SendStatusProps, ThreadSummary, type ThreadSummaryProps, ThreadView, type ThreadViewProps, type TimeFormat, TranscriptViewer, type TranscriptViewerProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, type UploadQueueStripProps, UserName, type UserNameProps, UserPickerSheet, type UserPickerSheetProps, draftsOf, formatRelativeTime, loadEmojiData, localDraftStorage, matchesAny, matchesKey, presenceStateLabel, presenceText, resolveKeymap, useDisplayName, useEditHistory, usePoolseFonts, useSystemColorScheme, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { CallParticipant, CallDevice, CallDeviceKind, Message, Poolse, Uuid, LiveCall, Conversation, PresenceState, Presence, Membership, Attachment, LinkPreview, MessageCreateRequest } from '@poolse/sdk';
|
|
2
|
+
import { CallParticipant, CallDevice, CallDeviceKind, Message, Poolse, Uuid, LiveCall, Conversation, RecordingMode, ConsentDecision, PresenceState, Presence, Membership, Attachment, LinkPreview, MessageCreateRequest } from '@poolse/sdk';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { SVGProps, ReactElement, ReactNode, CSSProperties } from 'react';
|
|
5
5
|
import { GroupPosition, UseRoom, UploadItem, ReactionMap } from '@poolse/react';
|
|
@@ -1030,6 +1030,14 @@ interface RoomStageProps {
|
|
|
1030
1030
|
title?: string;
|
|
1031
1031
|
labelFor?: (userId: string) => string;
|
|
1032
1032
|
className?: string;
|
|
1033
|
+
/**
|
|
1034
|
+
* Show recording and transcript state: the banner, and the consent
|
|
1035
|
+
* prompt for anyone who hasn't accepted (late joiners too). Defaults
|
|
1036
|
+
* to true.
|
|
1037
|
+
*/
|
|
1038
|
+
capture?: boolean;
|
|
1039
|
+
/** A Record / Stop recording control in the bar, where the server can record. Defaults to false. */
|
|
1040
|
+
allowRecord?: boolean;
|
|
1033
1041
|
}
|
|
1034
1042
|
/**
|
|
1035
1043
|
* The room you are in: everyone's video (or their initial while their
|
|
@@ -1038,7 +1046,129 @@ interface RoomStageProps {
|
|
|
1038
1046
|
* screen sharing where the browser and the workspace allow it, and Leave. Fills its container: give it the
|
|
1039
1047
|
* space your layout has for the stage.
|
|
1040
1048
|
*/
|
|
1041
|
-
declare function RoomStage({ room, title, labelFor, className }: RoomStageProps): react_jsx_runtime.JSX.Element;
|
|
1049
|
+
declare function RoomStage({ room, title, labelFor, className, capture, allowRecord, }: RoomStageProps): react_jsx_runtime.JSX.Element;
|
|
1050
|
+
|
|
1051
|
+
interface RecordingBannerProps {
|
|
1052
|
+
/** A recording is running. */
|
|
1053
|
+
recording: boolean;
|
|
1054
|
+
/** A live transcript is running. */
|
|
1055
|
+
transcribing?: boolean;
|
|
1056
|
+
mode?: RecordingMode | null;
|
|
1057
|
+
/** Capture needs consent here (`useRecording().consentRequired`). */
|
|
1058
|
+
consentRequired?: boolean;
|
|
1059
|
+
/** Your answer (`useRecording().myConsent`). `declined` shows "listen-only" and a way to change it. */
|
|
1060
|
+
myConsent?: ConsentDecision | null;
|
|
1061
|
+
/** Shows a Stop button (for whoever may stop it). */
|
|
1062
|
+
onStop?: () => void;
|
|
1063
|
+
/** After declining: reopen the prompt. */
|
|
1064
|
+
onChangeConsent?: () => void;
|
|
1065
|
+
/** Disable the buttons (a request is in flight). */
|
|
1066
|
+
pending?: boolean;
|
|
1067
|
+
className?: string;
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* "● Recording · Everyone in the call is told [Stop]" — a strip across
|
|
1071
|
+
* a captured call, for everyone in it (late joiners too: it reads the
|
|
1072
|
+
* call snapshot). Renders nothing while nothing is captured.
|
|
1073
|
+
*/
|
|
1074
|
+
declare function RecordingBanner({ recording, transcribing, mode, consentRequired, myConsent, onStop, onChangeConsent, pending, className, }: RecordingBannerProps): react_jsx_runtime.JSX.Element | null;
|
|
1075
|
+
interface RecordingIndicatorProps {
|
|
1076
|
+
recording: boolean;
|
|
1077
|
+
transcribing?: boolean;
|
|
1078
|
+
mode?: RecordingMode | null;
|
|
1079
|
+
className?: string;
|
|
1080
|
+
}
|
|
1081
|
+
/** A small "● REC" pill for a call header or tile. Nothing while nothing is captured. */
|
|
1082
|
+
declare function RecordingIndicator({ recording, transcribing, mode, className, }: RecordingIndicatorProps): react_jsx_runtime.JSX.Element | null;
|
|
1083
|
+
interface ConsentPromptProps {
|
|
1084
|
+
/** A recording is running. */
|
|
1085
|
+
recording: boolean;
|
|
1086
|
+
/** A live transcript is running. */
|
|
1087
|
+
transcribing?: boolean;
|
|
1088
|
+
mode?: RecordingMode | null;
|
|
1089
|
+
/** Who started it, if known ("Elena started recording"). Never pass a raw id. */
|
|
1090
|
+
startedByName?: string | null;
|
|
1091
|
+
/** Answer (e.g. `useRecording().consent`). A `false` result keeps the prompt open with an error. */
|
|
1092
|
+
onAnswer: (decision: ConsentDecision) => Promise<boolean | void> | boolean | void;
|
|
1093
|
+
/**
|
|
1094
|
+
* Called once an accept went through: publishing is allowed again, so
|
|
1095
|
+
* bring your microphone and camera back (`useCallRoom().republish`;
|
|
1096
|
+
* `CallRoom` does it by itself unless `republishOnPermission: false`).
|
|
1097
|
+
*/
|
|
1098
|
+
onAccepted?: () => void;
|
|
1099
|
+
/** Called after a decline went through (e.g. close the prompt). */
|
|
1100
|
+
onDeclined?: () => void;
|
|
1101
|
+
/** Disable the buttons (a request is in flight). */
|
|
1102
|
+
pending?: boolean;
|
|
1103
|
+
/** An error to show under the buttons. */
|
|
1104
|
+
error?: string | null;
|
|
1105
|
+
/** Fill the nearest positioned ancestor with a scrim. Defaults to true; false renders the card only. */
|
|
1106
|
+
overlay?: boolean;
|
|
1107
|
+
className?: string;
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* Asks someone in a captured call for consent — shown to anyone who
|
|
1111
|
+
* hasn't accepted, late joiners included, when the room requires it.
|
|
1112
|
+
* Until they agree their microphone and camera stay off; they still
|
|
1113
|
+
* hear and see everyone. Declining keeps them listen-only.
|
|
1114
|
+
*/
|
|
1115
|
+
declare function ConsentPrompt({ recording, transcribing, mode, startedByName, onAnswer, onAccepted, onDeclined, pending, error, overlay, className, }: ConsentPromptProps): react_jsx_runtime.JSX.Element;
|
|
1116
|
+
interface RecordingNoticeRowProps {
|
|
1117
|
+
/** The recording notice message. Rows that aren't one render nothing. */
|
|
1118
|
+
msg: Pick<Message, 'type' | 'body' | 'inserted_at'> & {
|
|
1119
|
+
deleted_at?: string | null;
|
|
1120
|
+
};
|
|
1121
|
+
/** Current user's id — "by you". */
|
|
1122
|
+
meId: string | null;
|
|
1123
|
+
/** A poolse user id → display name. Unknown: the name is left out. */
|
|
1124
|
+
nameFor?: (userId: Uuid) => string | null | undefined;
|
|
1125
|
+
}
|
|
1126
|
+
/**
|
|
1127
|
+
* "● Recording started · by Elena · 10:04" — the chat line the server
|
|
1128
|
+
* posts when a recording starts or stops, the notice for anyone who
|
|
1129
|
+
* comes later. `<MessageRow>` renders it for you.
|
|
1130
|
+
*/
|
|
1131
|
+
declare function RecordingNoticeRow({ msg, meId, nameFor }: RecordingNoticeRowProps): react_jsx_runtime.JSX.Element | null;
|
|
1132
|
+
|
|
1133
|
+
interface LiveTranscriptPanelProps {
|
|
1134
|
+
/** The call. Null renders an empty panel. */
|
|
1135
|
+
callId: string | null;
|
|
1136
|
+
/** Keep the transcript topic open. Defaults to true; false while the panel is hidden. */
|
|
1137
|
+
enabled?: boolean;
|
|
1138
|
+
/** Start / Stop transcription buttons (someone in the call). Defaults to true. */
|
|
1139
|
+
showControls?: boolean;
|
|
1140
|
+
/** Shows a close button. */
|
|
1141
|
+
onClose?: () => void;
|
|
1142
|
+
title?: string;
|
|
1143
|
+
className?: string;
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* The call's live transcript as it is spoken: speaker, time and text,
|
|
1147
|
+
* the current speaker's words in grey until they are final. Opens the
|
|
1148
|
+
* transcript topic while mounted (the last 200 lines arrive at once)
|
|
1149
|
+
* and sticks to the bottom unless you scroll up.
|
|
1150
|
+
*/
|
|
1151
|
+
declare function LiveTranscriptPanel({ callId, enabled, showControls, onClose, title, className, }: LiveTranscriptPanelProps): react_jsx_runtime.JSX.Element;
|
|
1152
|
+
interface TranscriptViewerProps {
|
|
1153
|
+
/** The call whose stored transcript to show. */
|
|
1154
|
+
callId: string | null;
|
|
1155
|
+
/**
|
|
1156
|
+
* Offer speaker renames. Defaults to true; the server allows it for
|
|
1157
|
+
* people who took part in the call and the conversation's owners and
|
|
1158
|
+
* admins, and anyone else gets an explanation instead.
|
|
1159
|
+
*/
|
|
1160
|
+
canRename?: boolean;
|
|
1161
|
+
/** Makes timestamps buttons, e.g. to seek a recording (ms since the transcript started). */
|
|
1162
|
+
onSeek?: (ms: number) => void;
|
|
1163
|
+
title?: string;
|
|
1164
|
+
className?: string;
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* A call's stored transcript: who spoke, when, and what they said;
|
|
1168
|
+
* search within it; and correct a speaker's name (everyone viewing sees
|
|
1169
|
+
* the change at once).
|
|
1170
|
+
*/
|
|
1171
|
+
declare function TranscriptViewer({ callId, canRename, onSeek, title, className, }: TranscriptViewerProps): react_jsx_runtime.JSX.Element | null;
|
|
1042
1172
|
|
|
1043
1173
|
interface EditedLabelProps {
|
|
1044
1174
|
messageId: Uuid;
|
|
@@ -1651,4 +1781,4 @@ declare function usePoolseFonts(enabled?: boolean): void;
|
|
|
1651
1781
|
*/
|
|
1652
1782
|
declare function PoolseFonts(): null;
|
|
1653
1783
|
|
|
1654
|
-
export { AttachmentPreview, type AttachmentPreviewProps, Avatar, type AvatarProps, CallControlButton, type CallControlButtonProps, CallDeviceMenu, type CallDeviceMenuProps, CallLogRow, type CallLogRowProps, CallVideoGrid, type CallVideoGridProps, type ChatDensity, ChatHeader, type ChatHeaderProps, type ChatLayout, type ComposerKeymap, type ConversationDraft, ConversationList, type ConversationListProps, type ConversationListSection, ConversationView, type ConversationViewProps, DEFAULT_KEYMAP, DraftScope, type DraftStorage, EditableMessageBubble, type EditableMessageBubbleProps, EditedLabel, type EditedLabelProps, EmojiPicker, type EmojiPickerProps, EmptyState, type EmptyStateProps, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, type InboxUser, type KeyBinding, LinkPreviewCard, type LinkPreviewCardProps, LiveCallBanner, type LiveCallBannerProps, MOD_ENTER_COMPOSER, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, type MessageListKeymap, type MessageSlot, type MessageSlotProps, type MessageSlots, type MessageUser, PoolseFonts, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, type PoolseKeymap, type PoolseKeymapOverrides, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, PoolseTheme, type PoolseThemeProps, type PoolseThemeValue, PresenceBadge, type PresenceBadgeProps, ReactionPicker, ReactionStrip, type ReactionStripProps, type RenderMessageContext, RoomJoinBar, type RoomJoinBarProps, RoomStage, type RoomStageProps, SendStatus, type SendStatusProps, ThreadSummary, type ThreadSummaryProps, ThreadView, type ThreadViewProps, type TimeFormat, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, type UploadQueueStripProps, UserName, type UserNameProps, UserPickerSheet, type UserPickerSheetProps, draftsOf, formatRelativeTime, loadEmojiData, localDraftStorage, matchesAny, matchesKey, presenceStateLabel, presenceText, resolveKeymap, useDisplayName, useEditHistory, usePoolseFonts, useSystemColorScheme, useTheme };
|
|
1784
|
+
export { AttachmentPreview, type AttachmentPreviewProps, Avatar, type AvatarProps, CallControlButton, type CallControlButtonProps, CallDeviceMenu, type CallDeviceMenuProps, CallLogRow, type CallLogRowProps, CallVideoGrid, type CallVideoGridProps, type ChatDensity, ChatHeader, type ChatHeaderProps, type ChatLayout, type ComposerKeymap, ConsentPrompt, type ConsentPromptProps, type ConversationDraft, ConversationList, type ConversationListProps, type ConversationListSection, ConversationView, type ConversationViewProps, DEFAULT_KEYMAP, DraftScope, type DraftStorage, EditableMessageBubble, type EditableMessageBubbleProps, EditedLabel, type EditedLabelProps, EmojiPicker, type EmojiPickerProps, EmptyState, type EmptyStateProps, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, type InboxUser, type KeyBinding, LinkPreviewCard, type LinkPreviewCardProps, LiveCallBanner, type LiveCallBannerProps, LiveTranscriptPanel, type LiveTranscriptPanelProps, MOD_ENTER_COMPOSER, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, type MessageListKeymap, type MessageSlot, type MessageSlotProps, type MessageSlots, type MessageUser, PoolseFonts, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, type PoolseKeymap, type PoolseKeymapOverrides, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, PoolseTheme, type PoolseThemeProps, type PoolseThemeValue, PresenceBadge, type PresenceBadgeProps, ReactionPicker, ReactionStrip, type ReactionStripProps, RecordingBanner, type RecordingBannerProps, RecordingIndicator, type RecordingIndicatorProps, RecordingNoticeRow, type RecordingNoticeRowProps, type RenderMessageContext, RoomJoinBar, type RoomJoinBarProps, RoomStage, type RoomStageProps, SendStatus, type SendStatusProps, ThreadSummary, type ThreadSummaryProps, ThreadView, type ThreadViewProps, type TimeFormat, TranscriptViewer, type TranscriptViewerProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, type UploadQueueStripProps, UserName, type UserNameProps, UserPickerSheet, type UserPickerSheetProps, draftsOf, formatRelativeTime, loadEmojiData, localDraftStorage, matchesAny, matchesKey, presenceStateLabel, presenceText, resolveKeymap, useDisplayName, useEditHistory, usePoolseFonts, useSystemColorScheme, useTheme };
|