@poolse/react-native 3.10.0 → 3.10.1
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 +14 -0
- package/README.md +12 -3
- package/dist/index.cjs +83 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -10
- package/dist/index.d.ts +50 -10
- package/dist/index.js +84 -5
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
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, AttachmentUploadInput, Membership, PresenceState, LinkPreview, Poolse, Block, BlockActionRequest, CatchUp, Poll } from '@poolse/sdk';
|
|
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, ScreenAnnotations, LiveTranscriptSegment, CallConnectionQuality, CallNetworkIssue, CallReaction, WhiteboardItem, WhiteboardModel, AttachmentUploadInput, 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, FormatKind, SlashCommand, DlpOutcome, MentionGroup, CustomEmoji } from '@poolse/react';
|
|
6
|
+
import { GroupPosition, UseCallAgents, UseWhisper, UseAgenda, UseBreakouts, UseLobby, UseMoments, UseQuestions, UseStage, UseBreakoutsOptions, FormatKind, SlashCommand, 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
|
|
|
@@ -1040,8 +1040,9 @@ interface QuestionsPanelProps {
|
|
|
1040
1040
|
/** Ask a question, upvote others', and (moderators) mark them answered. */
|
|
1041
1041
|
declare function QuestionsPanel({ questions, canModerate, allowAnonymous, nameForUserId, style, }: QuestionsPanelProps): react_jsx_runtime.JSX.Element;
|
|
1042
1042
|
interface BreakoutBannerProps {
|
|
1043
|
-
|
|
1044
|
-
|
|
1043
|
+
/** `useBreakouts(…)`, or `useNativeBreakouts(…)` on @poolse/native (which moves the call itself). */
|
|
1044
|
+
breakouts: UseBreakouts | UseNativeBreakouts;
|
|
1045
|
+
/** You are in your breakout room now (not the main call). Default: `useNativeBreakouts`' own. */
|
|
1045
1046
|
inBreakout?: boolean;
|
|
1046
1047
|
/** Connect to the room's session (switch the call's media to it). */
|
|
1047
1048
|
onJoined?: (session: RoomSession) => void;
|
|
@@ -1054,7 +1055,36 @@ interface BreakoutBannerProps {
|
|
|
1054
1055
|
* while closing, "Returning to the main call in 0:45". Nothing without a
|
|
1055
1056
|
* session or a room for you.
|
|
1056
1057
|
*/
|
|
1057
|
-
declare function BreakoutBanner({ breakouts, inBreakout, onJoined, onReturned, style, }: BreakoutBannerProps): react_jsx_runtime.JSX.Element | null;
|
|
1058
|
+
declare function BreakoutBanner({ breakouts, inBreakout: inBreakoutProp, onJoined, onReturned, style, }: BreakoutBannerProps): react_jsx_runtime.JSX.Element | null;
|
|
1059
|
+
interface UseNativeBreakoutsOptions extends Omit<UseBreakoutsOptions, 'auto'> {
|
|
1060
|
+
/**
|
|
1061
|
+
* @poolse/native's `moveToRoom`: switches the live call's media to the
|
|
1062
|
+
* session's room and keeps the system call (CallKit / Android's call
|
|
1063
|
+
* service). Injected so this package doesn't depend on the native module.
|
|
1064
|
+
*/
|
|
1065
|
+
moveToRoom: (session: RoomSession) => Promise<boolean>;
|
|
1066
|
+
/** Follow the split by yourself (default true): join your room as it opens, come back as it closes. */
|
|
1067
|
+
auto?: boolean;
|
|
1068
|
+
}
|
|
1069
|
+
interface UseNativeBreakouts extends UseBreakouts {
|
|
1070
|
+
/** The call's media is in a breakout room now (not the main room). */
|
|
1071
|
+
inBreakout: boolean;
|
|
1072
|
+
/** Join a room and move the call into it. False when the server or the core refused. */
|
|
1073
|
+
joinRoom: (roomId: string) => Promise<boolean>;
|
|
1074
|
+
/** Back to the main room. */
|
|
1075
|
+
returnToMainRoom: () => Promise<boolean>;
|
|
1076
|
+
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Breakout rooms on phones (CL5): `useBreakouts` with the native call
|
|
1079
|
+
* core doing the moving. With `auto` (the default) it joins your room
|
|
1080
|
+
* when the split gives you one and returns you when it closes; the
|
|
1081
|
+
* phone's call never ends, only its media changes rooms.
|
|
1082
|
+
*
|
|
1083
|
+
* import { moveToRoom } from '@poolse/native';
|
|
1084
|
+
* const breakouts = useNativeBreakouts(conversationId, callId, { moveToRoom });
|
|
1085
|
+
* <BreakoutBanner breakouts={breakouts} />
|
|
1086
|
+
*/
|
|
1087
|
+
declare function useNativeBreakouts(conversationId: string | null, callId: string | null, opts: UseNativeBreakoutsOptions): UseNativeBreakouts;
|
|
1058
1088
|
interface LobbyWaitingProps {
|
|
1059
1089
|
/** The name the guest gave. */
|
|
1060
1090
|
name: string;
|
|
@@ -1183,15 +1213,25 @@ interface WhiteboardViewProps {
|
|
|
1183
1213
|
*/
|
|
1184
1214
|
declare function WhiteboardView({ items, model, readOnly, color, width, style, }: WhiteboardViewProps): react_jsx_runtime.JSX.Element;
|
|
1185
1215
|
interface AnnotationOverlayProps {
|
|
1186
|
-
/** `useScreenAnnotations(room, sharerUserId).state
|
|
1216
|
+
/** `useScreenAnnotations(room, sharerUserId).state` (room: `callData` on @poolse/native). */
|
|
1187
1217
|
state: AnnotationState | null;
|
|
1218
|
+
/**
|
|
1219
|
+
* `useScreenAnnotations(…).annotations`: with it and `drawing`, a
|
|
1220
|
+
* finger draws lines everyone in the call sees.
|
|
1221
|
+
*/
|
|
1222
|
+
annotations?: ScreenAnnotations | null;
|
|
1223
|
+
/** Draw instead of passing touches through (a pen toggle). Default false. */
|
|
1224
|
+
drawing?: boolean;
|
|
1225
|
+
/** Pen colour. Default red. */
|
|
1226
|
+
color?: string;
|
|
1188
1227
|
style?: StyleProp<ViewStyle>;
|
|
1189
1228
|
}
|
|
1190
1229
|
/**
|
|
1191
|
-
* Lines and pointers
|
|
1192
|
-
*
|
|
1230
|
+
* Lines and pointers drawn on a shared screen, laid over the screen's
|
|
1231
|
+
* video (same box as the picture: size it to the `fit="contain"` area).
|
|
1232
|
+
* View only unless given `annotations` and `drawing`.
|
|
1193
1233
|
*/
|
|
1194
|
-
declare function AnnotationOverlay({ state, style }: AnnotationOverlayProps): react_jsx_runtime.JSX.Element;
|
|
1234
|
+
declare function AnnotationOverlay({ state, annotations, drawing, color, style, }: AnnotationOverlayProps): react_jsx_runtime.JSX.Element;
|
|
1195
1235
|
|
|
1196
1236
|
/** 45 → "0:45", 3725 → "1:02:05". */
|
|
1197
1237
|
declare function formatCountdown(seconds: number | null | undefined): string;
|
|
@@ -2733,4 +2773,4 @@ declare function formatBytes(n: number): string;
|
|
|
2733
2773
|
/** The note id in a Workspace note link, or `null`. */
|
|
2734
2774
|
declare function noteIdFromLink(url: string): string | null;
|
|
2735
2775
|
|
|
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 };
|
|
2776
|
+
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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
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, AttachmentUploadInput, Membership, PresenceState, LinkPreview, Poolse, Block, BlockActionRequest, CatchUp, Poll } from '@poolse/sdk';
|
|
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, ScreenAnnotations, LiveTranscriptSegment, CallConnectionQuality, CallNetworkIssue, CallReaction, WhiteboardItem, WhiteboardModel, AttachmentUploadInput, 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, FormatKind, SlashCommand, DlpOutcome, MentionGroup, CustomEmoji } from '@poolse/react';
|
|
6
|
+
import { GroupPosition, UseCallAgents, UseWhisper, UseAgenda, UseBreakouts, UseLobby, UseMoments, UseQuestions, UseStage, UseBreakoutsOptions, FormatKind, SlashCommand, 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
|
|
|
@@ -1040,8 +1040,9 @@ interface QuestionsPanelProps {
|
|
|
1040
1040
|
/** Ask a question, upvote others', and (moderators) mark them answered. */
|
|
1041
1041
|
declare function QuestionsPanel({ questions, canModerate, allowAnonymous, nameForUserId, style, }: QuestionsPanelProps): react_jsx_runtime.JSX.Element;
|
|
1042
1042
|
interface BreakoutBannerProps {
|
|
1043
|
-
|
|
1044
|
-
|
|
1043
|
+
/** `useBreakouts(…)`, or `useNativeBreakouts(…)` on @poolse/native (which moves the call itself). */
|
|
1044
|
+
breakouts: UseBreakouts | UseNativeBreakouts;
|
|
1045
|
+
/** You are in your breakout room now (not the main call). Default: `useNativeBreakouts`' own. */
|
|
1045
1046
|
inBreakout?: boolean;
|
|
1046
1047
|
/** Connect to the room's session (switch the call's media to it). */
|
|
1047
1048
|
onJoined?: (session: RoomSession) => void;
|
|
@@ -1054,7 +1055,36 @@ interface BreakoutBannerProps {
|
|
|
1054
1055
|
* while closing, "Returning to the main call in 0:45". Nothing without a
|
|
1055
1056
|
* session or a room for you.
|
|
1056
1057
|
*/
|
|
1057
|
-
declare function BreakoutBanner({ breakouts, inBreakout, onJoined, onReturned, style, }: BreakoutBannerProps): react_jsx_runtime.JSX.Element | null;
|
|
1058
|
+
declare function BreakoutBanner({ breakouts, inBreakout: inBreakoutProp, onJoined, onReturned, style, }: BreakoutBannerProps): react_jsx_runtime.JSX.Element | null;
|
|
1059
|
+
interface UseNativeBreakoutsOptions extends Omit<UseBreakoutsOptions, 'auto'> {
|
|
1060
|
+
/**
|
|
1061
|
+
* @poolse/native's `moveToRoom`: switches the live call's media to the
|
|
1062
|
+
* session's room and keeps the system call (CallKit / Android's call
|
|
1063
|
+
* service). Injected so this package doesn't depend on the native module.
|
|
1064
|
+
*/
|
|
1065
|
+
moveToRoom: (session: RoomSession) => Promise<boolean>;
|
|
1066
|
+
/** Follow the split by yourself (default true): join your room as it opens, come back as it closes. */
|
|
1067
|
+
auto?: boolean;
|
|
1068
|
+
}
|
|
1069
|
+
interface UseNativeBreakouts extends UseBreakouts {
|
|
1070
|
+
/** The call's media is in a breakout room now (not the main room). */
|
|
1071
|
+
inBreakout: boolean;
|
|
1072
|
+
/** Join a room and move the call into it. False when the server or the core refused. */
|
|
1073
|
+
joinRoom: (roomId: string) => Promise<boolean>;
|
|
1074
|
+
/** Back to the main room. */
|
|
1075
|
+
returnToMainRoom: () => Promise<boolean>;
|
|
1076
|
+
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Breakout rooms on phones (CL5): `useBreakouts` with the native call
|
|
1079
|
+
* core doing the moving. With `auto` (the default) it joins your room
|
|
1080
|
+
* when the split gives you one and returns you when it closes; the
|
|
1081
|
+
* phone's call never ends, only its media changes rooms.
|
|
1082
|
+
*
|
|
1083
|
+
* import { moveToRoom } from '@poolse/native';
|
|
1084
|
+
* const breakouts = useNativeBreakouts(conversationId, callId, { moveToRoom });
|
|
1085
|
+
* <BreakoutBanner breakouts={breakouts} />
|
|
1086
|
+
*/
|
|
1087
|
+
declare function useNativeBreakouts(conversationId: string | null, callId: string | null, opts: UseNativeBreakoutsOptions): UseNativeBreakouts;
|
|
1058
1088
|
interface LobbyWaitingProps {
|
|
1059
1089
|
/** The name the guest gave. */
|
|
1060
1090
|
name: string;
|
|
@@ -1183,15 +1213,25 @@ interface WhiteboardViewProps {
|
|
|
1183
1213
|
*/
|
|
1184
1214
|
declare function WhiteboardView({ items, model, readOnly, color, width, style, }: WhiteboardViewProps): react_jsx_runtime.JSX.Element;
|
|
1185
1215
|
interface AnnotationOverlayProps {
|
|
1186
|
-
/** `useScreenAnnotations(room, sharerUserId).state
|
|
1216
|
+
/** `useScreenAnnotations(room, sharerUserId).state` (room: `callData` on @poolse/native). */
|
|
1187
1217
|
state: AnnotationState | null;
|
|
1218
|
+
/**
|
|
1219
|
+
* `useScreenAnnotations(…).annotations`: with it and `drawing`, a
|
|
1220
|
+
* finger draws lines everyone in the call sees.
|
|
1221
|
+
*/
|
|
1222
|
+
annotations?: ScreenAnnotations | null;
|
|
1223
|
+
/** Draw instead of passing touches through (a pen toggle). Default false. */
|
|
1224
|
+
drawing?: boolean;
|
|
1225
|
+
/** Pen colour. Default red. */
|
|
1226
|
+
color?: string;
|
|
1188
1227
|
style?: StyleProp<ViewStyle>;
|
|
1189
1228
|
}
|
|
1190
1229
|
/**
|
|
1191
|
-
* Lines and pointers
|
|
1192
|
-
*
|
|
1230
|
+
* Lines and pointers drawn on a shared screen, laid over the screen's
|
|
1231
|
+
* video (same box as the picture: size it to the `fit="contain"` area).
|
|
1232
|
+
* View only unless given `annotations` and `drawing`.
|
|
1193
1233
|
*/
|
|
1194
|
-
declare function AnnotationOverlay({ state, style }: AnnotationOverlayProps): react_jsx_runtime.JSX.Element;
|
|
1234
|
+
declare function AnnotationOverlay({ state, annotations, drawing, color, style, }: AnnotationOverlayProps): react_jsx_runtime.JSX.Element;
|
|
1195
1235
|
|
|
1196
1236
|
/** 45 → "0:45", 3725 → "1:02:05". */
|
|
1197
1237
|
declare function formatCountdown(seconds: number | null | undefined): string;
|
|
@@ -2733,4 +2773,4 @@ declare function formatBytes(n: number): string;
|
|
|
2733
2773
|
/** The note id in a Workspace note link, or `null`. */
|
|
2734
2774
|
declare function noteIdFromLink(url: string): string | null;
|
|
2735
2775
|
|
|
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 };
|
|
2776
|
+
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, 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 };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { applySlashCommand, useUser, useRecordingPlayback, silencesOf, silencesFromSegments, activeSegmentIndex, chapterIndexAt, meetingsErrorMessage, skipSilenceTarget, formatClock, PLAYBACK_RATES, speakerName, useMe, useConversations, useUserPresence, formatCallLogPreview, formatRecordingNoticePreview, formatCallSummaryPreview, useAttachmentUpload, slashQuery, filterSlashCommands, FORMAT_ACTIONS, applyFormat, readDlpError, usePoolse, filterConversations, useConversation, useMembers, usePresence, receiptsOf, useMessages, useTyping, useMessageStreams, useRealtimeStatus, isMessageVisibleTo, computeGroupPosition, canEditOwnMessage, isTombstone, formatDayLabel, useCustomEmoji, customEmojiToken, searchCustomEmoji, recordingNoticeDisplayFor, callLogDisplayFor, parseCallSummary, useLiveCall, sameDay, rankMentionGroups, useReactions, messageAgent, clipOf, citationsOf, approvalIdOf, mentionGroupMeta, useThreadFollow, useThread, findCustomEmoji, useCallSummary, summaryStyleLabel, summaryStatusText, formatDue, momentOf, useAttachmentUrl, useClip, useRecordingUrl, formatTimeRange, citationLabel, useApproval, useAgent, approvalStatusLabel, APPROVAL_REASON_MAX, approvalErrorMessage, useAskMeetings, ASK_QUESTION_MAX, captureLabel, useApprovals, useLiveTranscript, groupTranscript, formatCallDuration, useTranscript, findInText, ApiError, captureErrorMessage, callAgentStateOf, callAgentStateLabel, callAgentModeLabel, whisperHintKindLabel, whisperErrorMessage, escalationStatusLabel, ESCALATION_ANSWER_MAX, escalationErrorMessage, useEscalations, useOptionalPoolse, waveformBars, playbackRateLabel, nextPlaybackRate } from '@poolse/react';
|
|
1
|
+
import { applySlashCommand, useUser, useRecordingPlayback, silencesOf, silencesFromSegments, activeSegmentIndex, chapterIndexAt, meetingsErrorMessage, skipSilenceTarget, formatClock, PLAYBACK_RATES, speakerName, useMe, useConversations, useUserPresence, formatCallLogPreview, formatRecordingNoticePreview, formatCallSummaryPreview, useAttachmentUpload, slashQuery, filterSlashCommands, FORMAT_ACTIONS, applyFormat, readDlpError, usePoolse, filterConversations, useConversation, useMembers, usePresence, receiptsOf, useMessages, useTyping, useMessageStreams, useRealtimeStatus, isMessageVisibleTo, computeGroupPosition, canEditOwnMessage, isTombstone, formatDayLabel, useCustomEmoji, customEmojiToken, searchCustomEmoji, recordingNoticeDisplayFor, callLogDisplayFor, parseCallSummary, useLiveCall, sameDay, rankMentionGroups, useReactions, messageAgent, clipOf, citationsOf, approvalIdOf, mentionGroupMeta, useThreadFollow, useThread, findCustomEmoji, useCallSummary, summaryStyleLabel, summaryStatusText, formatDue, momentOf, useAttachmentUrl, useClip, useRecordingUrl, formatTimeRange, citationLabel, useApproval, useAgent, approvalStatusLabel, APPROVAL_REASON_MAX, approvalErrorMessage, useAskMeetings, ASK_QUESTION_MAX, captureLabel, useApprovals, useLiveTranscript, groupTranscript, formatCallDuration, useTranscript, findInText, ApiError, captureErrorMessage, callAgentStateOf, callAgentStateLabel, callAgentModeLabel, whisperHintKindLabel, whisperErrorMessage, escalationStatusLabel, ESCALATION_ANSWER_MAX, escalationErrorMessage, useEscalations, useBreakouts, useOptionalPoolse, waveformBars, playbackRateLabel, nextPlaybackRate } from '@poolse/react';
|
|
2
2
|
import { createContext, forwardRef, useRef, useState, useImperativeHandle, useEffect, useMemo, useCallback, useContext, createElement } from 'react';
|
|
3
3
|
import { StyleSheet, View, Pressable, TextInput, Text, Switch, ScrollView, useWindowDimensions, Animated, Easing, PanResponder, Keyboard, Platform, Modal, AppState, ActivityIndicator, SectionList, FlatList, KeyboardAvoidingView, Image, AccessibilityInfo, Linking, useColorScheme } from 'react-native';
|
|
4
4
|
import { toNativeTheme, isBuiltInThemeId } from '@poolse/theme';
|
|
@@ -11969,11 +11969,13 @@ function QuestionsPanel({
|
|
|
11969
11969
|
}
|
|
11970
11970
|
function BreakoutBanner({
|
|
11971
11971
|
breakouts,
|
|
11972
|
-
inBreakout
|
|
11972
|
+
inBreakout: inBreakoutProp,
|
|
11973
11973
|
onJoined,
|
|
11974
11974
|
onReturned,
|
|
11975
11975
|
style
|
|
11976
11976
|
}) {
|
|
11977
|
+
const native = "joinRoom" in breakouts ? breakouts : null;
|
|
11978
|
+
const inBreakout = inBreakoutProp ?? native?.inBreakout ?? false;
|
|
11977
11979
|
const { theme, text, muted, card } = useText2();
|
|
11978
11980
|
const s2 = breakouts.session;
|
|
11979
11981
|
const room = breakouts.myRoom;
|
|
@@ -12005,6 +12007,7 @@ function BreakoutBanner({
|
|
|
12005
12007
|
primary: true,
|
|
12006
12008
|
disabled: breakouts.pending,
|
|
12007
12009
|
onPress: async () => {
|
|
12010
|
+
if (native) return void await native.joinRoom(room.id);
|
|
12008
12011
|
const session = await breakouts.join(room.id);
|
|
12009
12012
|
if (session) onJoined?.(session);
|
|
12010
12013
|
}
|
|
@@ -12016,6 +12019,7 @@ function BreakoutBanner({
|
|
|
12016
12019
|
label: "Return to main",
|
|
12017
12020
|
disabled: breakouts.pending,
|
|
12018
12021
|
onPress: async () => {
|
|
12022
|
+
if (native) return void await native.returnToMainRoom();
|
|
12019
12023
|
const session = await breakouts.returnToMain();
|
|
12020
12024
|
if (session) onReturned?.(session);
|
|
12021
12025
|
}
|
|
@@ -12025,6 +12029,39 @@ function BreakoutBanner({
|
|
|
12025
12029
|
}
|
|
12026
12030
|
);
|
|
12027
12031
|
}
|
|
12032
|
+
function useNativeBreakouts(conversationId, callId, opts) {
|
|
12033
|
+
const optsRef = useRef(opts);
|
|
12034
|
+
optsRef.current = opts;
|
|
12035
|
+
const [inBreakout, setInBreakout] = useState(false);
|
|
12036
|
+
const move = useCallback(async (session, into) => {
|
|
12037
|
+
if (!session) return false;
|
|
12038
|
+
const ok = await optsRef.current.moveToRoom(session).catch(() => false);
|
|
12039
|
+
if (ok) setInBreakout(into);
|
|
12040
|
+
return ok;
|
|
12041
|
+
}, []);
|
|
12042
|
+
const breakouts = useBreakouts(conversationId, callId, {
|
|
12043
|
+
auto: opts.auto ?? true,
|
|
12044
|
+
onJoinRoom: (session, room) => {
|
|
12045
|
+
void move(session, true);
|
|
12046
|
+
optsRef.current.onJoinRoom?.(session, room);
|
|
12047
|
+
},
|
|
12048
|
+
onReturn: (session) => {
|
|
12049
|
+
void move(session, false);
|
|
12050
|
+
optsRef.current.onReturn?.(session);
|
|
12051
|
+
}
|
|
12052
|
+
});
|
|
12053
|
+
useEffect(() => setInBreakout(false), [callId]);
|
|
12054
|
+
const { join, returnToMain } = breakouts;
|
|
12055
|
+
const joinRoom = useCallback(
|
|
12056
|
+
async (roomId) => move(await join(roomId), true),
|
|
12057
|
+
[join, move]
|
|
12058
|
+
);
|
|
12059
|
+
const returnToMainRoom = useCallback(
|
|
12060
|
+
async () => move(await returnToMain(), false),
|
|
12061
|
+
[returnToMain, move]
|
|
12062
|
+
);
|
|
12063
|
+
return { ...breakouts, inBreakout, joinRoom, returnToMainRoom };
|
|
12064
|
+
}
|
|
12028
12065
|
function LobbyWaiting({ name, status, title, onLeave, style }) {
|
|
12029
12066
|
const { theme, text, muted } = useText2();
|
|
12030
12067
|
const headline = status === "denied" ? "The host didn\u2019t let you in" : status === "ended" ? "This meeting has ended" : status === "admitted" ? "You\u2019re in \u2014 joining\u2026" : "Waiting for the host to let you in";
|
|
@@ -12719,14 +12756,56 @@ function WhiteboardView({
|
|
|
12719
12756
|
}
|
|
12720
12757
|
);
|
|
12721
12758
|
}
|
|
12722
|
-
function AnnotationOverlay({
|
|
12759
|
+
function AnnotationOverlay({
|
|
12760
|
+
state,
|
|
12761
|
+
annotations,
|
|
12762
|
+
drawing = false,
|
|
12763
|
+
color = "#e5484d",
|
|
12764
|
+
style
|
|
12765
|
+
}) {
|
|
12723
12766
|
const [box, setBox] = useState({ w: 0, h: 0 });
|
|
12767
|
+
const stroke = useRef(null);
|
|
12768
|
+
const canDraw = drawing && !!annotations && box.w > 0 && box.h > 0;
|
|
12769
|
+
const pan = useMemo(
|
|
12770
|
+
() => PanResponder.create({
|
|
12771
|
+
onStartShouldSetPanResponder: () => canDraw,
|
|
12772
|
+
onMoveShouldSetPanResponder: () => canDraw,
|
|
12773
|
+
onPanResponderGrant: (e) => {
|
|
12774
|
+
if (!annotations) return;
|
|
12775
|
+
const id = annotations.begin({ color });
|
|
12776
|
+
stroke.current = id;
|
|
12777
|
+
annotations.extend(id, e.nativeEvent.locationX / box.w, e.nativeEvent.locationY / box.h);
|
|
12778
|
+
},
|
|
12779
|
+
onPanResponderMove: (e) => {
|
|
12780
|
+
if (!annotations || !stroke.current) return;
|
|
12781
|
+
annotations.extend(
|
|
12782
|
+
stroke.current,
|
|
12783
|
+
e.nativeEvent.locationX / box.w,
|
|
12784
|
+
e.nativeEvent.locationY / box.h
|
|
12785
|
+
);
|
|
12786
|
+
},
|
|
12787
|
+
onPanResponderRelease: () => {
|
|
12788
|
+
if (annotations && stroke.current) annotations.end(stroke.current);
|
|
12789
|
+
stroke.current = null;
|
|
12790
|
+
},
|
|
12791
|
+
onPanResponderTerminate: () => {
|
|
12792
|
+
if (annotations && stroke.current) annotations.end(stroke.current);
|
|
12793
|
+
stroke.current = null;
|
|
12794
|
+
}
|
|
12795
|
+
}),
|
|
12796
|
+
[canDraw, annotations, color, box.w, box.h]
|
|
12797
|
+
);
|
|
12724
12798
|
return /* @__PURE__ */ jsx(
|
|
12725
12799
|
View,
|
|
12726
12800
|
{
|
|
12727
12801
|
style: [StyleSheet.absoluteFill, style],
|
|
12728
|
-
pointerEvents: "none",
|
|
12802
|
+
pointerEvents: canDraw ? "auto" : "none",
|
|
12729
12803
|
onLayout: (e) => setBox({ w: e.nativeEvent.layout.width, h: e.nativeEvent.layout.height }),
|
|
12804
|
+
...canDraw ? {
|
|
12805
|
+
...pan.panHandlers,
|
|
12806
|
+
accessible: true,
|
|
12807
|
+
accessibilityLabel: "Shared screen. Draw with one finger"
|
|
12808
|
+
} : {},
|
|
12730
12809
|
children: state && box.w > 0 ? /* @__PURE__ */ jsxs(Svg, { width: box.w, height: box.h, children: [
|
|
12731
12810
|
state.strokes.map((s2) => /* @__PURE__ */ jsx(
|
|
12732
12811
|
Path,
|
|
@@ -14053,6 +14132,6 @@ var s = StyleSheet.create({
|
|
|
14053
14132
|
empty: { padding: 16, textAlign: "center" }
|
|
14054
14133
|
});
|
|
14055
14134
|
|
|
14056
|
-
export { AgendaPanel, AgentBadge, AgentBadgeInline, AnnotationOverlay, ApprovalCard, ApprovalList, AskMeetings, AttachmentPicker, AttachmentPreview, AudioRouteSheet, Avatar, BlockRenderer, BreakoutBanner, CallAgentTag, CallAvatar, CallControlButton, CallLogRow, CaptionsOverlay, CatchUpCard, ChatHeader, ClipPlayer, CommandSuggestions, ConnectionIndicator, ConsentPrompt, ConversationList, ConversationView, DaySeparator, DlpWarningSheet, EditHistorySheet, EmojiGlyph, EmojiPicker, EmptyState, EscalationCard, EscalationList, FilesList, FormattingToolbar, ForumPostList, ForwardSheet, GroupDetailsSheet, ImageMosaic, InviteAgentMenu, LinkPreviewCard, LiveCallBanner, LiveTranscriptPanel, LobbyAdmitList, LobbyWaiting, MarkMomentButton, MeetingCard, MeetingCardMessageRow, MemberList, MentionInput, MessageActions, MessageApproval, MessageBubble, MessageCitations, MessageComposer, MessageExtrasProvider, MessageList, MessageRow, NetworkBanner, NewMessagesDivider, NoteCard, PinsList, PollCard, PoolseIcon, PoolseInbox, PoolseLogo, PoolseTheme, PresenceBadge, primitives as Primitives, QuestionsPanel, ReactionPicker, ReactionPickerBar, ReactionStrip, ReactionsOverlay, RecordingBanner, RecordingIndicator, RecordingNoticeRow, RecordingPlayer, RoomPresence, SendStatus, StagePanel, SummaryCard, SummaryMessageRow, ThreadSummary, ThreadView, TranscriptViewer, TranslatedText, TypingIndicator, UploadQueueStrip, UserName, VideoMessagePlayer, VoiceMessagePlayer, VoiceRecorder, WhisperPanel, WhiteboardView, applyBackground, avatarOverflow, callColors, captionLines, defaultDarkTheme, defaultLightTheme, formatBytes4 as formatBytes, formatCountdown, meetingTimeText, noteIdFromLink, overrunText, rsvpSummary, stripMarkdown, useAppStateLifecycle, useAppStatePresence, useBackgroundClients, useCallDuration, useDisplayName, useMessageExtras, usePoolseTheme, useTheme };
|
|
14135
|
+
export { AgendaPanel, AgentBadge, AgentBadgeInline, AnnotationOverlay, ApprovalCard, ApprovalList, AskMeetings, AttachmentPicker, AttachmentPreview, AudioRouteSheet, Avatar, BlockRenderer, BreakoutBanner, CallAgentTag, CallAvatar, CallControlButton, CallLogRow, CaptionsOverlay, CatchUpCard, ChatHeader, ClipPlayer, CommandSuggestions, ConnectionIndicator, ConsentPrompt, ConversationList, ConversationView, DaySeparator, DlpWarningSheet, EditHistorySheet, EmojiGlyph, EmojiPicker, EmptyState, EscalationCard, EscalationList, FilesList, FormattingToolbar, ForumPostList, ForwardSheet, GroupDetailsSheet, ImageMosaic, InviteAgentMenu, LinkPreviewCard, LiveCallBanner, LiveTranscriptPanel, LobbyAdmitList, LobbyWaiting, MarkMomentButton, MeetingCard, MeetingCardMessageRow, MemberList, MentionInput, MessageActions, MessageApproval, MessageBubble, MessageCitations, MessageComposer, MessageExtrasProvider, MessageList, MessageRow, NetworkBanner, NewMessagesDivider, NoteCard, PinsList, PollCard, PoolseIcon, PoolseInbox, PoolseLogo, PoolseTheme, PresenceBadge, primitives as Primitives, QuestionsPanel, ReactionPicker, ReactionPickerBar, ReactionStrip, ReactionsOverlay, RecordingBanner, RecordingIndicator, RecordingNoticeRow, RecordingPlayer, RoomPresence, SendStatus, StagePanel, SummaryCard, SummaryMessageRow, ThreadSummary, ThreadView, TranscriptViewer, TranslatedText, TypingIndicator, UploadQueueStrip, UserName, VideoMessagePlayer, VoiceMessagePlayer, VoiceRecorder, WhisperPanel, WhiteboardView, applyBackground, avatarOverflow, callColors, captionLines, defaultDarkTheme, defaultLightTheme, formatBytes4 as formatBytes, formatCountdown, meetingTimeText, noteIdFromLink, overrunText, rsvpSummary, stripMarkdown, useAppStateLifecycle, useAppStatePresence, useBackgroundClients, useCallDuration, useDisplayName, useMessageExtras, useNativeBreakouts, usePoolseTheme, useTheme };
|
|
14057
14136
|
//# sourceMappingURL=index.js.map
|
|
14058
14137
|
//# sourceMappingURL=index.js.map
|