@poolse/react-native 2.24.0 → 2.25.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/dist/index.cjs +775 -536
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -7
- package/dist/index.d.ts +34 -7
- package/dist/index.js +778 -540
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -81,7 +81,12 @@ declare const PoolseInbox: react.ForwardRefExoticComponent<PoolseInboxProps & re
|
|
|
81
81
|
interface ConversationViewProps {
|
|
82
82
|
conversationId: Uuid;
|
|
83
83
|
emptyState?: ReactElement | string;
|
|
84
|
-
|
|
84
|
+
/**
|
|
85
|
+
* Custom row renderer. Return `null` / `undefined` to fall back to
|
|
86
|
+
* the default row for that message (so you can override just the
|
|
87
|
+
* message kinds you care about).
|
|
88
|
+
*/
|
|
89
|
+
renderMessage?: (msg: Message, currentUserId: string | null) => ReactElement | null | undefined;
|
|
85
90
|
labelFor?: (externalId: string) => string;
|
|
86
91
|
avatarFor?: (externalId: string) => string | null;
|
|
87
92
|
/**
|
|
@@ -290,7 +295,26 @@ interface MessageRowProps {
|
|
|
290
295
|
/** Avatar resolver — same signature as `<MemberList avatarFor>`. */
|
|
291
296
|
avatarFor?: (externalId: string) => string | null;
|
|
292
297
|
}
|
|
293
|
-
declare function MessageRow(
|
|
298
|
+
declare function MessageRow(props: MessageRowProps): react_jsx_runtime.JSX.Element | null;
|
|
299
|
+
|
|
300
|
+
interface CallLogRowProps {
|
|
301
|
+
/** The call-log message. Rows that aren't call logs render nothing. */
|
|
302
|
+
msg: Pick<Message, 'type' | 'body' | 'inserted_at'> & {
|
|
303
|
+
deleted_at?: string | null;
|
|
304
|
+
};
|
|
305
|
+
/** Current user's id — decides whether a missed-call marker is shown. */
|
|
306
|
+
meId: string | null;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Centered, compact timeline line for call-log system messages
|
|
310
|
+
* ("Voice call · 3:12", "Missed call"). Same visual family as
|
|
311
|
+
* `<DaySeparator>` — surface chip, hairline border, small semibold
|
|
312
|
+
* label — so it reads as a separator between bubble clusters rather
|
|
313
|
+
* than a message. No reactions, thread pill, swipe or long-press.
|
|
314
|
+
*
|
|
315
|
+
* `<MessageRow>` renders this automatically for call-log messages.
|
|
316
|
+
*/
|
|
317
|
+
declare function CallLogRow({ msg, meId }: CallLogRowProps): react_jsx_runtime.JSX.Element | null;
|
|
294
318
|
|
|
295
319
|
interface MessageComposerProps {
|
|
296
320
|
/**
|
|
@@ -467,10 +491,13 @@ interface ThreadViewProps {
|
|
|
467
491
|
* upload queue) and the reply rows support reactions, swipe-to-reply,
|
|
468
492
|
* long-press actions, edit, delete — same surface as ConversationView.
|
|
469
493
|
*
|
|
470
|
-
* Keyboard handling:
|
|
471
|
-
*
|
|
472
|
-
*
|
|
473
|
-
*
|
|
494
|
+
* Keyboard handling: the modal is translucent (edge-to-edge) on both
|
|
495
|
+
* platforms, so nothing resizes it for the keyboard — Android's
|
|
496
|
+
* `adjustResize` doesn't reach an edge-to-edge window. The composer
|
|
497
|
+
* needs its own `padding` KeyboardAvoidingView with
|
|
498
|
+
* `keyboardVerticalOffset` = the distance from the screen top to the
|
|
499
|
+
* sheet top (the gutter), since KAV measures its frame relative to
|
|
500
|
+
* its parent (the sheet), not the screen.
|
|
474
501
|
*/
|
|
475
502
|
declare function ThreadView({ visible, onClose, conversationId, rootMessage, labelFor, avatarFor, }: ThreadViewProps): react_jsx_runtime.JSX.Element;
|
|
476
503
|
|
|
@@ -1836,4 +1863,4 @@ declare function isStalePush(sentAt: number | undefined, now: number, staleAfter
|
|
|
1836
1863
|
*/
|
|
1837
1864
|
declare function useVoipCalls({ voipPush, callKeep, calls, onAnswer, onDecline, appName, apnsEnvironment, staleAfterMs, }: UseVoipCallsOptions): void;
|
|
1838
1865
|
|
|
1839
|
-
export { AttachmentPicker, type AttachmentPickerProps, AttachmentPreview, type AttachmentPreviewProps, type AudioRoute, type AudioRouteKind, AudioRouteSheet, type AudioRouteSheetProps, Avatar, type AvatarProps, type CallAudio, CallAvatar, type CallAvatarProps, CallControlButton, type CallControlButtonProps, type CallKeepModule, CallParticipantTile, type CallParticipantTileProps, CallScreen, type CallScreenProps, CallVideoGrid, type CallVideoGridProps, ChatHeader, type ChatHeaderProps, ConversationList, type ConversationListProps, ConversationView, type ConversationViewProps, DaySeparator, type DaySeparatorProps, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, ImageMosaic, type ImageMosaicProps, type InboxUser, type LiveKitAudioSession, type LiveKitReactNativeModule, LocalVideoPip, type LocalVideoPipProps, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, MessageList, type MessageListItem, type MessageListProps, MessageRow, type MessageRowProps, type NativeWebRtcModule, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, type PoolseRNTheme, type PoolseRNThemeOverrides, PoolseTheme, type PoolseThemeProps, primitives as Primitives, ReactionPicker, type ReactionPickerProps, ReactionStrip, type ReactionStripProps, type RingToneModule, type ThemeColors, type ThemeRadii, type ThemeShadows, type ThemeSpacing, type ThemeType, ThreadView, type ThreadViewProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, type UseCallAudioOptions, type UseVoipCallsOptions, UserName, type UserNameProps, VoiceRoomBar, type VoiceRoomBarProps, type VoipIncomingCall, type VoipPushModule, callColors, createNativeWebRtcAdapter, defaultDarkTheme, defaultLightTheme, describeRoute, isNativeWebRtcAvailable, isStalePush, useAppStateLifecycle, useCallAudio, useCallDuration, useDisplayName, usePoolseTheme, useVoipCalls };
|
|
1866
|
+
export { AttachmentPicker, type AttachmentPickerProps, AttachmentPreview, type AttachmentPreviewProps, type AudioRoute, type AudioRouteKind, AudioRouteSheet, type AudioRouteSheetProps, Avatar, type AvatarProps, type CallAudio, CallAvatar, type CallAvatarProps, CallControlButton, type CallControlButtonProps, type CallKeepModule, CallLogRow, type CallLogRowProps, CallParticipantTile, type CallParticipantTileProps, CallScreen, type CallScreenProps, CallVideoGrid, type CallVideoGridProps, ChatHeader, type ChatHeaderProps, ConversationList, type ConversationListProps, ConversationView, type ConversationViewProps, DaySeparator, type DaySeparatorProps, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, ImageMosaic, type ImageMosaicProps, type InboxUser, type LiveKitAudioSession, type LiveKitReactNativeModule, LocalVideoPip, type LocalVideoPipProps, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, MessageList, type MessageListItem, type MessageListProps, MessageRow, type MessageRowProps, type NativeWebRtcModule, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, type PoolseRNTheme, type PoolseRNThemeOverrides, PoolseTheme, type PoolseThemeProps, primitives as Primitives, ReactionPicker, type ReactionPickerProps, ReactionStrip, type ReactionStripProps, type RingToneModule, type ThemeColors, type ThemeRadii, type ThemeShadows, type ThemeSpacing, type ThemeType, ThreadView, type ThreadViewProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, type UseCallAudioOptions, type UseVoipCallsOptions, UserName, type UserNameProps, VoiceRoomBar, type VoiceRoomBarProps, type VoipIncomingCall, type VoipPushModule, callColors, createNativeWebRtcAdapter, defaultDarkTheme, defaultLightTheme, describeRoute, isNativeWebRtcAvailable, isStalePush, useAppStateLifecycle, useCallAudio, useCallDuration, useDisplayName, usePoolseTheme, useVoipCalls };
|
package/dist/index.d.ts
CHANGED
|
@@ -81,7 +81,12 @@ declare const PoolseInbox: react.ForwardRefExoticComponent<PoolseInboxProps & re
|
|
|
81
81
|
interface ConversationViewProps {
|
|
82
82
|
conversationId: Uuid;
|
|
83
83
|
emptyState?: ReactElement | string;
|
|
84
|
-
|
|
84
|
+
/**
|
|
85
|
+
* Custom row renderer. Return `null` / `undefined` to fall back to
|
|
86
|
+
* the default row for that message (so you can override just the
|
|
87
|
+
* message kinds you care about).
|
|
88
|
+
*/
|
|
89
|
+
renderMessage?: (msg: Message, currentUserId: string | null) => ReactElement | null | undefined;
|
|
85
90
|
labelFor?: (externalId: string) => string;
|
|
86
91
|
avatarFor?: (externalId: string) => string | null;
|
|
87
92
|
/**
|
|
@@ -290,7 +295,26 @@ interface MessageRowProps {
|
|
|
290
295
|
/** Avatar resolver — same signature as `<MemberList avatarFor>`. */
|
|
291
296
|
avatarFor?: (externalId: string) => string | null;
|
|
292
297
|
}
|
|
293
|
-
declare function MessageRow(
|
|
298
|
+
declare function MessageRow(props: MessageRowProps): react_jsx_runtime.JSX.Element | null;
|
|
299
|
+
|
|
300
|
+
interface CallLogRowProps {
|
|
301
|
+
/** The call-log message. Rows that aren't call logs render nothing. */
|
|
302
|
+
msg: Pick<Message, 'type' | 'body' | 'inserted_at'> & {
|
|
303
|
+
deleted_at?: string | null;
|
|
304
|
+
};
|
|
305
|
+
/** Current user's id — decides whether a missed-call marker is shown. */
|
|
306
|
+
meId: string | null;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Centered, compact timeline line for call-log system messages
|
|
310
|
+
* ("Voice call · 3:12", "Missed call"). Same visual family as
|
|
311
|
+
* `<DaySeparator>` — surface chip, hairline border, small semibold
|
|
312
|
+
* label — so it reads as a separator between bubble clusters rather
|
|
313
|
+
* than a message. No reactions, thread pill, swipe or long-press.
|
|
314
|
+
*
|
|
315
|
+
* `<MessageRow>` renders this automatically for call-log messages.
|
|
316
|
+
*/
|
|
317
|
+
declare function CallLogRow({ msg, meId }: CallLogRowProps): react_jsx_runtime.JSX.Element | null;
|
|
294
318
|
|
|
295
319
|
interface MessageComposerProps {
|
|
296
320
|
/**
|
|
@@ -467,10 +491,13 @@ interface ThreadViewProps {
|
|
|
467
491
|
* upload queue) and the reply rows support reactions, swipe-to-reply,
|
|
468
492
|
* long-press actions, edit, delete — same surface as ConversationView.
|
|
469
493
|
*
|
|
470
|
-
* Keyboard handling:
|
|
471
|
-
*
|
|
472
|
-
*
|
|
473
|
-
*
|
|
494
|
+
* Keyboard handling: the modal is translucent (edge-to-edge) on both
|
|
495
|
+
* platforms, so nothing resizes it for the keyboard — Android's
|
|
496
|
+
* `adjustResize` doesn't reach an edge-to-edge window. The composer
|
|
497
|
+
* needs its own `padding` KeyboardAvoidingView with
|
|
498
|
+
* `keyboardVerticalOffset` = the distance from the screen top to the
|
|
499
|
+
* sheet top (the gutter), since KAV measures its frame relative to
|
|
500
|
+
* its parent (the sheet), not the screen.
|
|
474
501
|
*/
|
|
475
502
|
declare function ThreadView({ visible, onClose, conversationId, rootMessage, labelFor, avatarFor, }: ThreadViewProps): react_jsx_runtime.JSX.Element;
|
|
476
503
|
|
|
@@ -1836,4 +1863,4 @@ declare function isStalePush(sentAt: number | undefined, now: number, staleAfter
|
|
|
1836
1863
|
*/
|
|
1837
1864
|
declare function useVoipCalls({ voipPush, callKeep, calls, onAnswer, onDecline, appName, apnsEnvironment, staleAfterMs, }: UseVoipCallsOptions): void;
|
|
1838
1865
|
|
|
1839
|
-
export { AttachmentPicker, type AttachmentPickerProps, AttachmentPreview, type AttachmentPreviewProps, type AudioRoute, type AudioRouteKind, AudioRouteSheet, type AudioRouteSheetProps, Avatar, type AvatarProps, type CallAudio, CallAvatar, type CallAvatarProps, CallControlButton, type CallControlButtonProps, type CallKeepModule, CallParticipantTile, type CallParticipantTileProps, CallScreen, type CallScreenProps, CallVideoGrid, type CallVideoGridProps, ChatHeader, type ChatHeaderProps, ConversationList, type ConversationListProps, ConversationView, type ConversationViewProps, DaySeparator, type DaySeparatorProps, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, ImageMosaic, type ImageMosaicProps, type InboxUser, type LiveKitAudioSession, type LiveKitReactNativeModule, LocalVideoPip, type LocalVideoPipProps, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, MessageList, type MessageListItem, type MessageListProps, MessageRow, type MessageRowProps, type NativeWebRtcModule, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, type PoolseRNTheme, type PoolseRNThemeOverrides, PoolseTheme, type PoolseThemeProps, primitives as Primitives, ReactionPicker, type ReactionPickerProps, ReactionStrip, type ReactionStripProps, type RingToneModule, type ThemeColors, type ThemeRadii, type ThemeShadows, type ThemeSpacing, type ThemeType, ThreadView, type ThreadViewProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, type UseCallAudioOptions, type UseVoipCallsOptions, UserName, type UserNameProps, VoiceRoomBar, type VoiceRoomBarProps, type VoipIncomingCall, type VoipPushModule, callColors, createNativeWebRtcAdapter, defaultDarkTheme, defaultLightTheme, describeRoute, isNativeWebRtcAvailable, isStalePush, useAppStateLifecycle, useCallAudio, useCallDuration, useDisplayName, usePoolseTheme, useVoipCalls };
|
|
1866
|
+
export { AttachmentPicker, type AttachmentPickerProps, AttachmentPreview, type AttachmentPreviewProps, type AudioRoute, type AudioRouteKind, AudioRouteSheet, type AudioRouteSheetProps, Avatar, type AvatarProps, type CallAudio, CallAvatar, type CallAvatarProps, CallControlButton, type CallControlButtonProps, type CallKeepModule, CallLogRow, type CallLogRowProps, CallParticipantTile, type CallParticipantTileProps, CallScreen, type CallScreenProps, CallVideoGrid, type CallVideoGridProps, ChatHeader, type ChatHeaderProps, ConversationList, type ConversationListProps, ConversationView, type ConversationViewProps, DaySeparator, type DaySeparatorProps, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, ImageMosaic, type ImageMosaicProps, type InboxUser, type LiveKitAudioSession, type LiveKitReactNativeModule, LocalVideoPip, type LocalVideoPipProps, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, MessageList, type MessageListItem, type MessageListProps, MessageRow, type MessageRowProps, type NativeWebRtcModule, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, type PoolseRNTheme, type PoolseRNThemeOverrides, PoolseTheme, type PoolseThemeProps, primitives as Primitives, ReactionPicker, type ReactionPickerProps, ReactionStrip, type ReactionStripProps, type RingToneModule, type ThemeColors, type ThemeRadii, type ThemeShadows, type ThemeSpacing, type ThemeType, ThreadView, type ThreadViewProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, type UseCallAudioOptions, type UseVoipCallsOptions, UserName, type UserNameProps, VoiceRoomBar, type VoiceRoomBarProps, type VoipIncomingCall, type VoipPushModule, callColors, createNativeWebRtcAdapter, defaultDarkTheme, defaultLightTheme, describeRoute, isNativeWebRtcAvailable, isStalePush, useAppStateLifecycle, useCallAudio, useCallDuration, useDisplayName, usePoolseTheme, useVoipCalls };
|